From 0cf3edf00ef0432cff2ca29967b4998be06b6761 Mon Sep 17 00:00:00 2001 From: Tim Landscheidt Date: Mon, 10 Dec 2018 17:58:10 +0000 Subject: [PATCH 1/3] [acast] Remove no longer existing test case --- youtube_dl/extractor/acast.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/youtube_dl/extractor/acast.py b/youtube_dl/extractor/acast.py index 6d846ea7a..c5aa60ea7 100644 --- a/youtube_dl/extractor/acast.py +++ b/youtube_dl/extractor/acast.py @@ -19,23 +19,6 @@ class ACastIE(InfoExtractor): IE_NAME = 'acast' _VALID_URL = r'https?://(?:www\.)?acast\.com/(?P[^/]+)/(?P[^/#?]+)' _TESTS = [{ - # test with one bling - 'url': 'https://www.acast.com/condenasttraveler/-where-are-you-taipei-101-taiwan', - 'md5': 'ada3de5a1e3a2a381327d749854788bb', - 'info_dict': { - 'id': '57de3baa-4bb0-487e-9418-2692c1277a34', - 'ext': 'mp3', - 'title': '"Where Are You?": Taipei 101, Taiwan', - 'description': 'md5:a0b4ef3634e63866b542e5b1199a1a0e', - 'timestamp': 1196172000, - 'upload_date': '20071127', - 'duration': 211, - 'creator': 'Concierge', - 'series': 'Condé Nast Traveler Podcast', - 'episode': '"Where Are You?": Taipei 101, Taiwan', - } - }, { - # test with multiple blings 'url': 'https://www.acast.com/sparpodcast/2.raggarmordet-rosterurdetforflutna', 'md5': 'a02393c74f3bdb1801c3ec2695577ce0', 'info_dict': { From c829bec360277c223800f444d893621ddf2a1bc4 Mon Sep 17 00:00:00 2001 From: Tim Landscheidt Date: Mon, 10 Dec 2018 18:09:01 +0000 Subject: [PATCH 2/3] [acast] Support embed.acast.com as well --- youtube_dl/extractor/acast.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/acast.py b/youtube_dl/extractor/acast.py index c5aa60ea7..a0912094a 100644 --- a/youtube_dl/extractor/acast.py +++ b/youtube_dl/extractor/acast.py @@ -17,7 +17,7 @@ from ..utils import ( class ACastIE(InfoExtractor): IE_NAME = 'acast' - _VALID_URL = r'https?://(?:www\.)?acast\.com/(?P[^/]+)/(?P[^/#?]+)' + _VALID_URL = r'https?://(?:(?:embed|www)\.)?acast\.com/(?P[^/]+)/(?P[^/#?]+)' _TESTS = [{ 'url': 'https://www.acast.com/sparpodcast/2.raggarmordet-rosterurdetforflutna', 'md5': 'a02393c74f3bdb1801c3ec2695577ce0', @@ -33,6 +33,21 @@ class ACastIE(InfoExtractor): 'series': 'Spår', 'episode': '2. Raggarmordet - Röster ur det förflutna', } + }, { + 'url': 'http://embed.acast.com/adambuxton/ep.12-adam-joeschristmaspodcast2015', + 'md5': 'b51346d1d16885f17b6deed8061bac78', + 'info_dict': { + 'id': '56ce23e1-7920-4692-910d-9aee5979b651', + 'ext': 'mp3', + 'title': 'EP.12 - ADAM & JOE\'S CHRISTMAS PODCAST 2015', + 'description': 'md5:94e5e6a63b3c9c57f1a47285a5c4c998', + 'timestamp': 1451005979, + 'upload_date': '20151225', + 'duration': 4692.118063, + 'creator': 'ADAM BUXTON', + 'series': 'THE ADAM BUXTON PODCAST', + 'episode': 'EP.12 - ADAM & JOE\'S CHRISTMAS PODCAST 2015', + } }] def _real_extract(self, url): From ebd6e2786581b26de77a363cb98066cdfffc7475 Mon Sep 17 00:00:00 2001 From: Sergey M Date: Mon, 17 Dec 2018 04:28:50 +0700 Subject: [PATCH 3/3] Update acast.py --- youtube_dl/extractor/acast.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/youtube_dl/extractor/acast.py b/youtube_dl/extractor/acast.py index a0912094a..1fbff705d 100644 --- a/youtube_dl/extractor/acast.py +++ b/youtube_dl/extractor/acast.py @@ -35,19 +35,7 @@ class ACastIE(InfoExtractor): } }, { 'url': 'http://embed.acast.com/adambuxton/ep.12-adam-joeschristmaspodcast2015', - 'md5': 'b51346d1d16885f17b6deed8061bac78', - 'info_dict': { - 'id': '56ce23e1-7920-4692-910d-9aee5979b651', - 'ext': 'mp3', - 'title': 'EP.12 - ADAM & JOE\'S CHRISTMAS PODCAST 2015', - 'description': 'md5:94e5e6a63b3c9c57f1a47285a5c4c998', - 'timestamp': 1451005979, - 'upload_date': '20151225', - 'duration': 4692.118063, - 'creator': 'ADAM BUXTON', - 'series': 'THE ADAM BUXTON PODCAST', - 'episode': 'EP.12 - ADAM & JOE\'S CHRISTMAS PODCAST 2015', - } + 'only_matching': True, }] def _real_extract(self, url):