backported changes from youtube-dl

This commit is contained in:
Romain Bignon 2015-01-25 22:02:25 +01:00
commit 70cf2db1ea
2 changed files with 175 additions and 70 deletions

View file

@ -49,7 +49,7 @@ class YoutubeBrowser(Browser):
self.page.login(self.username, self.password)
def get_video_url(self, video, player_url):
self.location(player_url + '&has_verified=1')
self.location(player_url + '&has_verified=1&bpctr=9999999999')
assert self.is_on_page(VideoPage)
return self.page.get_video_url(video)