[collegehumor] support urls in the format www.collegehumor.com/e/{video_id} (fixes...
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 4 Aug 2013 14:36:48 +0000 (16:36 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 4 Aug 2013 14:36:48 +0000 (16:36 +0200)
youtube_dl/extractor/collegehumor.py

index 5badde03a028b80c7ec19a6329da9753310a227a..30b9c7549f76c8d65dd4f18bcc5023b0c86160d9 100644 (file)
@@ -10,7 +10,7 @@ from ..utils import (
 
 
 class CollegeHumorIE(InfoExtractor):
-    _VALID_URL = r'^(?:https?://)?(?:www\.)?collegehumor\.com/(video|embed|e)/(?P<videoid>[0-9]+)/(?P<shorttitle>.*)$'
+    _VALID_URL = r'^(?:https?://)?(?:www\.)?collegehumor\.com/(video|embed|e)/(?P<videoid>[0-9]+)/?(?P<shorttitle>.*)$'
 
     _TEST = {
         u'url': u'http://www.collegehumor.com/video/6902724/comic-con-cosplay-catastrophe',