mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-05-10 13:44:44 +00:00
Fixed regex comparator to use search() not match() so it can match the new youtube detection regex.
- and rev bump
This commit is contained in:
parent
bde468db68
commit
f8693c3c2e
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ class NoIdFound(Exception):
|
|||
|
||||
|
||||
def detect_backend(url):
|
||||
if DETECT_YOUTUBE.match(url):
|
||||
if DETECT_YOUTUBE.search(url):
|
||||
return YoutubeBackend(url)
|
||||
elif DETECT_VIMEO.match(url):
|
||||
return VimeoBackend(url)
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -12,7 +12,7 @@ CHANGES = read('CHANGES.rst')
|
|||
setup(
|
||||
name='django-embed-video',
|
||||
packages=find_packages(),
|
||||
version='0.2.2',
|
||||
version='0.2.3',
|
||||
author='Juda Kaleta',
|
||||
author_email='juda.kaleta@gmail.com',
|
||||
url='https://github.com/yetty/django-embed-video',
|
||||
|
|
|
|||
Loading…
Reference in a new issue