Support more YouTube URLs
The regular expression is also more strict, yet accepts the youtu.be short URLs and user page URLs.
This commit is contained in:
parent
740e7f12d2
commit
5e90c1f47c
3 changed files with 7 additions and 1 deletions
|
|
@ -29,4 +29,5 @@ class YoutubeTest(BackendTest):
|
|||
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))
|
||||
assert self.backend.get_video(v.shorturl)
|
||||
self.backend.browser.openurl(v.url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue