mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-16 21:30:23 +00:00
Closes #10.
This commit is contained in:
parent
68c0d300e7
commit
070a05a02e
2 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,6 @@ class YoutubeBackend(VideoBackend):
|
|||
(ytscreeningroom\?v=)?
|
||||
(feeds/api/videos/)?
|
||||
(user\S*[^\w\-\s])?
|
||||
(\S*[^\w\-\s])?
|
||||
(?P<code>[\w\-]{11})[a-z0-9;:@?&%=+/\$_.-]* # match and extract
|
||||
''',
|
||||
re.I | re.X
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ class YoutubeBackendTestCase(BackendTestMixin, TestCase):
|
|||
('https://www.youtube.com/watch?v=iwGFalTRHDA&feature=related', 'iwGFalTRHDA'),
|
||||
('http://www.youtube.com/watch?feature=player_embedded&v=2NpZbaAIXag', '2NpZbaAIXag'),
|
||||
('https://www.youtube.com/watch?feature=player_embedded&v=2NpZbaAIXag', '2NpZbaAIXag'),
|
||||
('https://www.youtube.com/watch?v=XPk521voaOE&feature=youtube_gdata_player', 'XPk521voaOE'),
|
||||
)
|
||||
|
||||
instance = YoutubeBackend
|
||||
|
|
|
|||
Loading…
Reference in a new issue