Skip to content

Commit

Permalink
[comedcycentral] Give /shows/.+/full-episodes URLs to the COmedyCentr…
Browse files Browse the repository at this point in the history
…alFullEpisodesIE
  • Loading branch information
phihag committed Nov 30, 2016
1 parent db75f14 commit f882554
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions youtube_dl/extractor/comedycentral.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class ComedyCentralIE(MTVServicesInfoExtractor):
_VALID_URL = r'''(?x)https?://(?:www\.)?cc\.com/
(video-clips|episodes|cc-studios|video-collections|shows)
(video-clips|episodes|cc-studios|video-collections|shows(?=/[^/]+/(?!full-episodes)))
/(?P<title>.*)'''
_FEED_URL = 'http://comedycentral.com/feeds/mrss/'

Expand All @@ -29,7 +29,7 @@ class ComedyCentralIE(MTVServicesInfoExtractor):

class ComedyCentralFullEpisodesIE(MTVServicesInfoExtractor):
_VALID_URL = r'''(?x)https?://(?:www\.)?cc\.com/
(?:full-episodes)
(?:full-episodes|shows(?=/[^/]+/full-episodes))
/(?P<id>[^?]+)'''
_FEED_URL = 'http://comedycentral.com/feeds/mrss/'

Expand All @@ -40,6 +40,9 @@ class ComedyCentralFullEpisodesIE(MTVServicesInfoExtractor):
'title': 'November 28, 2016 - Ryan Speedo Green',
},
'playlist_count': 4,
}, {
'url': 'http://www.cc.com/shows/the-daily-show-with-trevor-noah/full-episodes',
'only_matching': True,
}]

def _real_extract(self, url):
Expand Down

0 comments on commit f882554

Please sign in to comment.