summary refs log tree commit diff
diff options
context:
space:
mode:
authorpishposhmcgee <pishposh.mcgee@gmail.com>2013-07-24 16:55:28 -0500
committerpishposhmcgee <pishposh.mcgee@gmail.com>2013-07-24 16:55:28 -0500
commite93aa81aa60fc9b44e10feba565586e82e56ba18 (patch)
treec2ab734dab7d86fb22e91474959bd3dbd6fbd92b
parent755eb0320ed127fe2f24af13343ae587a63daf22 (diff)
downloadyoutube-dl-e93aa81aa60fc9b44e10feba565586e82e56ba18.tar.gz
youtube-dl-e93aa81aa60fc9b44e10feba565586e82e56ba18.tar.xz
youtube-dl-e93aa81aa60fc9b44e10feba565586e82e56ba18.zip
Added an option 'e' to go with 'video' or 'embed'
Based on links that I've seen, /e/<videoid> also occurs in the wild, and making this substitution yields effective results.
-rw-r--r--youtube_dl/extractor/collegehumor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/collegehumor.py b/youtube_dl/extractor/collegehumor.py
index 4a0b0af5a..5badde03a 100644
--- a/youtube_dl/extractor/collegehumor.py
+++ b/youtube_dl/extractor/collegehumor.py
@@ -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',