mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-17 05:40:24 +00:00
Detecting Vimeo without specified protocol
This commit is contained in:
parent
928926169c
commit
b8bbd985ee
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ class VimeoBackend(VideoBackend):
|
|||
Backend for Vimeo URLs.
|
||||
"""
|
||||
re_detect = re.compile(
|
||||
r'^(http(s)?://)?(www\.)?(player\.)?vimeo\.com/.*', re.I
|
||||
r'^((http(s)?:)?//)?(www\.)?(player\.)?vimeo\.com/.*', re.I
|
||||
)
|
||||
re_code = re.compile(r'''vimeo\.com/(video/)?(?P<code>[0-9]+)''', re.I)
|
||||
pattern_url = '//player.vimeo.com/video/%s'
|
||||
|
|
|
|||
Loading…
Reference in a new issue