projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cf70bf
)
[mixcloud] fix cloudcast data extraction(closes #22821)
author
Remita Amine
<remitamine@gmail.com>
Thu, 31 Oct 2019 07:13:10 +0000
(08:13 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Thu, 31 Oct 2019 07:13:10 +0000
(08:13 +0100)
youtube_dl/extractor/mixcloud.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mixcloud.py
b/youtube_dl/extractor/mixcloud.py
index bf5353ef941d660ff3fe542069a7160afe281369..e5f631506e70c4be6b884abf4d8cadd756a71617 100644
(file)
--- 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