Browse Source

[comedycentral:shows] Add support for TDS special editions (Fixes #2733)

totalwebcasting
Philipp Hagemeister 11 years ago
parent
commit
7753cadbfa
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      test/test_all_urls.py
  2. +1
    -1
      youtube_dl/extractor/comedycentral.py

+ 3
- 0
test/test_all_urls.py View File

@ -165,6 +165,9 @@ class TestAllURLsMatching(unittest.TestCase):
self.assertMatch(
'http://thedailyshow.cc.com/video-playlists/npde3s/the-daily-show-19088-highlights',
['ComedyCentralShows'])
self.assertMatch(
'http://thedailyshow.cc.com/special-editions/2l8fdb/special-edition---a-look-back-at-food',
['ComedyCentralShows'])
def test_yahoo_https(self):
# https://github.com/rg3/youtube-dl/issues/2701


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

@ -43,7 +43,7 @@ class ComedyCentralShowsIE(InfoExtractor):
(?P<showname>thedailyshow|thecolbertreport)\.(?:cc\.)?com/
((?:full-)?episodes/(?:[0-9a-z]{6}/)?(?P<episode>.*)|
(?P<clip>
(?:(?:guests/[^/]+|videos|video-playlists)/[^/]+/(?P<videotitle>[^/?#]+))
(?:(?:guests/[^/]+|videos|video-playlists|special-editions)/[^/]+/(?P<videotitle>[^/?#]+))
|(the-colbert-report-(videos|collections)/(?P<clipID>[0-9]+)/[^/]*/(?P<cntitle>.*?))
|(watch/(?P<date>[^/]*)/(?P<tdstitle>.*))
)|


Loading…
Cancel
Save