From b92bf339035ac5aaa501814f9f47bb08a5cb1a93 Mon Sep 17 00:00:00 2001 From: Stefan Krulj Date: Wed, 24 Oct 2012 23:10:15 +0200 Subject: [PATCH] youtube regex bug fixed --- modules/active/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/active/youtube.py b/modules/active/youtube.py index b743c06..1b43aad 100644 --- a/modules/active/youtube.py +++ b/modules/active/youtube.py @@ -3,7 +3,7 @@ import gdata.youtube.service URL = r'((\w+)://((\w+\.)+\w+)([a-zA-Z0-9\~\!\@\#\$\%\^\&\*\(\)_\-\=\+\\/\?\.\:\;\"\,]*))' ID=r'[\w_-]'*11 -ID_URL=r'[=/]('+ID+r')[/&]|[=/]('+ID+r')$' +ID_URL=r'[=/]('+ID+r')[/&#]|[=/]('+ID+r')$' def get_id_from_url(url): groups=re.findall(ID_URL,url)