steal youtube-dl code to fix youtube module
This commit is contained in:
parent
c85176f9b1
commit
d82cc615a3
3 changed files with 907 additions and 66 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue