diff options
author | Rogério Brito <rbrito@ime.usp.br> | 2017-10-19 15:24:13 -0200 |
---|---|---|
committer | Rogério Brito <rbrito@ime.usp.br> | 2017-10-19 15:24:13 -0200 |
commit | 4231113a7be907539052ce59df44e23c54d21d38 (patch) | |
tree | 60ac9873daf0428612155884c512f7934612bf78 /youtube_dl/extractor/comedycentral.py | |
parent | fd552b246272b2ccc3051ce4a112669cf19b81d8 (diff) | |
parent | 4eb7d8923b3bad26edab01df0fd2650b0563ea8b (diff) | |
download | youtube-dl-4231113a7be907539052ce59df44e23c54d21d38.zip youtube-dl-4231113a7be907539052ce59df44e23c54d21d38.tar.gz youtube-dl-4231113a7be907539052ce59df44e23c54d21d38.tar.bz2 |
Updated version 2017.10.15.1 from 'upstream/2017.10.15.1'
with Debian dir e04fc0593bd02862ee48ad1d1a4629d9f3e1df96
Diffstat (limited to 'youtube_dl/extractor/comedycentral.py')
-rw-r--r-- | youtube_dl/extractor/comedycentral.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/comedycentral.py b/youtube_dl/extractor/comedycentral.py index 4cac294..d08b909 100644 --- a/youtube_dl/extractor/comedycentral.py +++ b/youtube_dl/extractor/comedycentral.py @@ -120,13 +120,16 @@ class ComedyCentralTVIE(MTVServicesInfoExtractor): class ComedyCentralShortnameIE(InfoExtractor): - _VALID_URL = r'^:(?P<id>tds|thedailyshow)$' + _VALID_URL = r'^:(?P<id>tds|thedailyshow|theopposition)$' _TESTS = [{ 'url': ':tds', 'only_matching': True, }, { 'url': ':thedailyshow', 'only_matching': True, + }, { + 'url': ':theopposition', + 'only_matching': True, }] def _real_extract(self, url): @@ -134,5 +137,6 @@ class ComedyCentralShortnameIE(InfoExtractor): shortcut_map = { 'tds': 'http://www.cc.com/shows/the-daily-show-with-trevor-noah/full-episodes', 'thedailyshow': 'http://www.cc.com/shows/the-daily-show-with-trevor-noah/full-episodes', + 'theopposition': 'http://www.cc.com/shows/the-opposition-with-jordan-klepper/full-episodes', } return self.url_result(shortcut_map[video_id]) |