projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9955bb4
)
[applepodcasts] fix extraction(closes #28445)
author
Remita Amine
<remitamine@gmail.com>
Sun, 14 Mar 2021 19:08:46 +0000
(20:08 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Sun, 14 Mar 2021 19:08:46 +0000
(20:08 +0100)
youtube_dl/extractor/applepodcasts.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/applepodcasts.py
b/youtube_dl/extractor/applepodcasts.py
index 95758feced6d10844e1dbae28c04ea1fe3624306..6a74de75822eed3ab54f6455824f996d2e1c9ff5 100644
(file)
--- a/
youtube_dl/extractor/applepodcasts.py
+++ b/
youtube_dl/extractor/applepodcasts.py
@@
-42,6
+42,7
@@
class ApplePodcastsIE(InfoExtractor):
ember_data = self._parse_json(self._search_regex(
r'id="shoebox-ember-data-store"[^>]*>\s*({.+?})\s*<',
webpage, 'ember data'), episode_id)
+ ember_data = ember_data.get(episode_id) or ember_data
episode = ember_data['data']['attributes']
description = episode.get('description') or {}