From 3c864e930dd7533b404d03872d078e038883ac3d Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Fri, 12 Dec 2014 20:35:17 +0100 Subject: [PATCH] [comcarcoff] Adapt c62159ea91a04ef82560472b254aef1cc9f70a11 --- youtube_dl/extractor/comcarcoff.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/comcarcoff.py b/youtube_dl/extractor/comcarcoff.py index 46953c12e..67724139c 100644 --- a/youtube_dl/extractor/comcarcoff.py +++ b/youtube_dl/extractor/comcarcoff.py @@ -6,7 +6,7 @@ class ComCarCoffIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?comediansincarsgettingcoffee\.com/(?P[a-z0-9\-]+)/?' + _VALID_URL = r'http://(?:www\.)?comediansincarsgettingcoffee\.com/(?P[a-z0-9\-]*)' _TESTS = [{ 'url': 'http://comediansincarsgettingcoffee.com/miranda-sings-happy-thanksgiving-miranda/', 'info_dict': { @@ -25,6 +25,8 @@ class ComCarCoffIE(InfoExtractor): def _real_extract(self, url): display_id = self._match_id(url) + if not display_id: + display_id = 'comediansincarsgettingcoffee.com' webpage = self._download_webpage(url, display_id) full_data = json.loads(self._search_regex(