Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Thu Nov 23, 2017 8:18 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Installing Youtube-DL
PostPosted: Wed Nov 11, 2015 6:08 pm 
Offline
Regular Member

Joined: Mon Jan 16, 2012 8:14 am
Posts: 85
Hello. I'm trying to install Youtube-DL in LS-CHLV2. Here's what I did:

ipkg update

ipkg install python27

wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl

chmod a+rx /usr/local/bin/youtube-dl

When I run

youtube-dl -h

nothing happens. I have to press ctrl-c to go back to the prompt.


Top
   
PostPosted: Wed Nov 11, 2015 6:30 pm 
Online
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2691
i get this error

root@DUO:~# youtube-dl -h
/usr/bin/python: can't find '__main__.py' in '/usr/local/bin/youtube-dl'


the script calls /usr/bin/python
maybe this is to old

root@DUO:~# /usr/bin/python -V
Python 2.6.2

you have installed python 2.7.3

where is it


/opt/bin/python2.7

modify the script
Code:
#!/opt/bin/python2.7


now its running

Quote:
root@DUO:~# /usr/local/bin/youtube-dl -h
Usage: youtube-dl [OPTIONS] URL [URL...]

Options:
General Options:
-h, --help Print this help text and exit
--version Print program version and exit


Top
   
PostPosted: Thu Nov 12, 2015 6:13 am 
Offline
Regular Member

Joined: Mon Jan 16, 2012 8:14 am
Posts: 85
Thanks! I did not study the error messages after I pressed ctrl-c, and it was looking for files in python2.6. I installed 2.6 instead, then ran youtube-dl. I just realized that there's some delay before the help screen appears, which means it is running correctly.


Top
   
PostPosted: Thu Nov 12, 2015 11:39 am 
Offline
Regular Member

Joined: Mon Jan 16, 2012 8:14 am
Posts: 85
Again, thanks for the help, Oxygen.

I am now looking for a web GUI or desktop client for Windows that can run youtube-dl remotely. I saw several web GUIs but could not get them to run correctly. There's YoutubeDLG but I think it can only run a local version of youtube-dl.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited