Fix Youtube mplayer error "No stream found to handle url"
Set the "_play_proxy" boolean attribute to the video object to pipe the video to mplayer. Fix Youtube module test. Signed-off-by: Vincent Texier <vit@free.fr>
This commit is contained in:
parent
dec4d08184
commit
baa289a777
3 changed files with 10 additions and 5 deletions
|
|
@ -30,7 +30,7 @@ class YoutubeTest(BackendTest):
|
|||
self.assertTrue(len(l) > 0)
|
||||
v = l[0]
|
||||
self.backend.fillobj(v, ('url',))
|
||||
self.assertTrue(v.url and v.url.startswith('http://'), 'URL for video "%s" not found: %s' % (v.id, v.url))
|
||||
self.assertTrue(v.url and v.url.startswith('https://'), 'URL for video "%s" not found: %s' % (v.id, v.url))
|
||||
assert self.backend.get_video(v.shorturl)
|
||||
self.backend.browser.openurl(v.url)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue