Added an option 'e' to go with 'video' or 'embed'
authorpishposhmcgee <pishposh.mcgee@gmail.com>
Wed, 24 Jul 2013 21:55:28 +0000 (16:55 -0500)
committerpishposhmcgee <pishposh.mcgee@gmail.com>
Wed, 24 Jul 2013 21:55:28 +0000 (16:55 -0500)
Based on links that I've seen, /e/<videoid> also occurs in the wild, and making this substitution yields effective results.

youtube_dl/extractor/collegehumor.py

index 4a0b0af5a90e25ace75da377604a7963414f1cf6..5badde03a028b80c7ec19a6329da9753310a227a 100644 (file)
@@ -10,7 +10,7 @@ from ..utils import (
 
 
 class CollegeHumorIE(InfoExtractor):
-    _VALID_URL = r'^(?:https?://)?(?:www\.)?collegehumor\.com/(video|embed)/(?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',