{"id":4428,"date":"2022-04-26T22:31:00","date_gmt":"2022-04-27T03:31:00","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=4428"},"modified":"2022-04-26T15:52:21","modified_gmt":"2022-04-26T20:52:21","slug":"fix-peertube-youtube-dl-not-downloading","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/fix-peertube-youtube-dl-not-downloading\/","title":{"rendered":"Fix Peertube youtube-dl not Downloading"},"content":{"rendered":"\n<p>Issue was not being able to import a video into Peertube using a URL.<\/p>\n\n\n\n<p>Peertube was set up to use youtube-dl which is in \/var\/www\/peertube\/storage\/bin\/youtube-dl.  Further investigation showed that Peertube calls it with python.<\/p>\n\n\n\n<p>For example <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python youtube-dl video-to-download<\/pre>\n\n\n\n<p>Usually Python refers to Python 2 where as Python3 refers to Python 3.<\/p>\n\n\n\n<p>We can create a symlink so that python = python3<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo ln -s \/usr\/bin\/python3 \/usr\/bin\/python<\/pre>\n\n\n\n<p>This way when Peertube runs python, it technically will run it with python3.<\/p>\n\n\n\n<p>Note you will probably run into issues if you do have Python 2 installed and need it.  In my case, python was not installed and didn&#8217;t reference anything. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Issue was not being able to import a video into Peertube using a URL. Peertube was set up to use youtube-dl which is in \/var\/www\/peertube\/storage\/bin\/youtube-dl. Further investigation showed that Peertube calls it with python. For example python youtube-dl video-to-download Usually &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/fix-peertube-youtube-dl-not-downloading\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[7,1294,293,1020,1295],"class_list":["post-4428","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux-2","tag-peertube","tag-python","tag-python3","tag-youtube-dl"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=4428"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4428\/revisions"}],"predecessor-version":[{"id":4429,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4428\/revisions\/4429"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=4428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=4428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=4428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}