Closed nadav-dav closed 10 years ago
It seems like there is an issue accessing youtube-dl in your box. The faling lines just call "youtube-dl" command:
url = "http://www.youtube.com/watch?v=" + video
args = ['youtube-dl', '-F', url]
yt_dl = subprocess.Popen(args, stdout = subprocess.PIPE, stderr = subprocess.PIPE)
Can you verify your youtube-dl installation it's working properly? Please attach the output of this commands:
which youtube-dl
youtube-dl --version
after a long issues over this, i found out the problem was with the execution permissions for youtube-dl.
i did a quick chmod +x
and it was fixed!
maybe consider adding it to the installation sequence. .:)
Thanks for letting me know, great you figured it out.
I updated the install script to ensure execution permissions are granted for youtube-dl.
awesome :+1: glad i could be of assistance :)
10.0.0.4:54268 - - [17/Apr/2014 02:56:36] "HTTP/1.1 POST /playlist" - 303 See Other 10.0.0.4:54276 - - [17/Apr/2014 02:56:36] "HTTP/1.1 GET /playlist" - 200 OK 10.0.0.4:54276 - - [17/Apr/2014 02:56:36] "HTTP/1.1 GET /playlist" - 200 OK Locating URL for: TFHbAvY1kJ4 Exception in thread Thread-32: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 552, in *bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 760, in run self.function(_self.args, _self.kwargs) File "/home/pi/youtupi/youtupi/playlist.py", line 131, in autoPlay prepareVideo(nvideo) File "/home/pi/youtupi/youtupi/playlist.py", line 122, in prepareVideo url = youtube.getUrl(video.data) File "/home/pi/youtupi/youtupi/modules/youtube.py", line 11, in getUrl formats = getYoutubeFormats(data['id']) File "/home/pi/youtupi/youtupi/modules/youtube.py", line 24, in getYoutubeFormats yt_dl = subprocess.Popen(args, stdout = subprocess.PIPE, stderr = subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 679, in __init** errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child raise child_exception OSError: [Errno 13] Permission denied