aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/comcarcoff.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-12-12 20:35:17 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-12-12 20:35:17 +0100
commit3c864e930dd7533b404d03872d078e038883ac3d (patch)
treebcf616b048f429f9e6d08f57d777850d877263dd /youtube_dl/extractor/comcarcoff.py
parentdc5596ff54860dc470579c17f4b072266f44cf5c (diff)
downloadyoutube-dl-3c864e930dd7533b404d03872d078e038883ac3d.zip
youtube-dl-3c864e930dd7533b404d03872d078e038883ac3d.tar.gz
youtube-dl-3c864e930dd7533b404d03872d078e038883ac3d.tar.bz2
[comcarcoff] Adapt c62159ea91a04ef82560472b254aef1cc9f70a11
Diffstat (limited to 'youtube_dl/extractor/comcarcoff.py')
-rw-r--r--youtube_dl/extractor/comcarcoff.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/comcarcoff.py b/youtube_dl/extractor/comcarcoff.py
index 46953c1..6772413 100644
--- a/youtube_dl/extractor/comcarcoff.py
+++ b/youtube_dl/extractor/comcarcoff.py
@@ -6,7 +6,7 @@ from ..utils import parse_iso8601
class ComCarCoffIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?comediansincarsgettingcoffee\.com/(?P<id>[a-z0-9\-]+)/?'
+ _VALID_URL = r'http://(?:www\.)?comediansincarsgettingcoffee\.com/(?P<id>[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(