steal youtube-dl code to fix youtube module

This commit is contained in:
Romain Bignon 2014-03-04 20:56:38 +01:00
commit d82cc615a3
3 changed files with 907 additions and 66 deletions

View file

@ -92,7 +92,7 @@ class YoutubeBackend(BaseBackend, ICapVideo, ICapCollection):
player_url = YoutubeVideo.id2url(video.id)
with self.browser:
url, ext = self.browser.get_video_url(player_url)
url, ext = self.browser.get_video_url(video, player_url)
video.url = unicode(url)
video.ext = unicode(ext)