From f8693c3c2e918d2a1685ea1c746ad9e15075b514 Mon Sep 17 00:00:00 2001 From: techdragon Date: Sat, 27 Jul 2013 21:26:00 +0800 Subject: [PATCH] Fixed regex comparator to use search() not match() so it can match the new youtube detection regex. - and rev bump --- embed_video/base.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/embed_video/base.py b/embed_video/base.py index c1c35c4..24b73a3 100644 --- a/embed_video/base.py +++ b/embed_video/base.py @@ -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) diff --git a/setup.py b/setup.py index 7b88af4..68b0a51 100644 --- a/setup.py +++ b/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',