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:
techdragon 2013-07-27 21:26:00 +08:00
parent bde468db68
commit f8693c3c2e
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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',