2016-01-07, 13:43
(2016-01-07, 06:01)Sleuteltje Wrote: I see know youtube_dl fails to get a stream url. This is very strange. The video you're trying to play (videoid: TrvefxktlTg) does play in YT Library on my end. So not sure how to fix this. I can remove the error, but the video still wouldn't play.
You could try to change line 52-58 in resources/lib/play.py (in addons/plugin.video.youtubelibrary) from:
toCode:try:
#url = id #a youtube ID will work as well and of course you could pass the url of another site
vid = YDStreamExtractor.getVideoInfo(id,quality=1) #quality is 0=SD, 1=720p, 2=1080p and is a maximum
stream_url = vid.streamURL() #This is what Kodi (XBMC) will play
except:
dev.log('Failed to get a valid stream_url!')
return False #Failed to grab a video title
and see what kind of error you get in the log file. Maybe it would hint to the problem. I can repack a zip for you tomorrow that has this if it's to much trouble.Code:vid = YDStreamExtractor.getVideoInfo(id,quality=1) #quality is 0=SD, 1=720p, 2=1080p and is a maximum
stream_url = vid.streamURL() #This is what Kodi (XBMC) will play
Is the other error (regarding updating playlists) gone tho?
Yes, downgrading below Python 2.7.8 would probably fix your problems, but than other python 2.7.9 users will probably report the same problem as you, so it wouldnt be real solution.
The playlist error weirdly only came up once for me (before 0.9.5.1) so I think that's working fine in the new version
I changed the lines in play.py but sadly this still doesn't allow me to play the video ( I hope i did it correctly)
Results