From: Remita Amine Date: Thu, 31 Oct 2019 07:13:10 +0000 (+0100) Subject: [mixcloud] fix cloudcast data extraction(closes #22821) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e993f1a0959fc04507b1cb2efeb610ae628d6d98;p=youtube-dl [mixcloud] fix cloudcast data extraction(closes #22821) --- diff --git a/youtube_dl/extractor/mixcloud.py b/youtube_dl/extractor/mixcloud.py index bf5353ef9..e5f631506 100644 --- a/youtube_dl/extractor/mixcloud.py +++ b/youtube_dl/extractor/mixcloud.py @@ -86,9 +86,10 @@ class MixcloudIE(InfoExtractor): r'', webpage, 'play info'), 'play info') for item in full_info_json: - item_data = try_get( - item, lambda x: x['cloudcast']['data']['cloudcastLookup'], - dict) + item_data = try_get(item, [ + lambda x: x['cloudcast']['data']['cloudcastLookup'], + lambda x: x['cloudcastLookup']['data']['cloudcastLookup'], + ], dict) if try_get(item_data, lambda x: x['streamInfo']['url']): info_json = item_data break