aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-10-31 08:13:10 +0100
committerRemita Amine <remitamine@gmail.com>2019-10-31 08:13:10 +0100
commite993f1a0959fc04507b1cb2efeb610ae628d6d98 (patch)
treed7ee105e434c56355c105c0bf250270f28ae717b /youtube_dl/extractor
parent3cf70bf1590ce364dc223197ba804cb70e704760 (diff)
[mixcloud] fix cloudcast data extraction(closes #22821)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/mixcloud.py7
1 files changed, 4 insertions, 3 deletions
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'<script id="relay-data" type="text/x-mixcloud">([^<]+)</script>',
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