Browse Source

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.
rtmp_test
pishposhmcgee 11 years ago
parent
commit
e93aa81aa6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/collegehumor.py

+ 1
- 1
youtube_dl/extractor/collegehumor.py View File

@ -10,7 +10,7 @@ from ..utils import (
class CollegeHumorIE(InfoExtractor): 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 = { _TEST = {
u'url': u'http://www.collegehumor.com/video/6902724/comic-con-cosplay-catastrophe', u'url': u'http://www.collegehumor.com/video/6902724/comic-con-cosplay-catastrophe',


Loading…
Cancel
Save