[applepodcasts] fix extraction(closes #28445)
authorRemita Amine <remitamine@gmail.com>
Sun, 14 Mar 2021 19:08:46 +0000 (20:08 +0100)
committerRemita Amine <remitamine@gmail.com>
Sun, 14 Mar 2021 19:08:46 +0000 (20:08 +0100)
youtube_dl/extractor/applepodcasts.py

index 95758feced6d10844e1dbae28c04ea1fe3624306..6a74de75822eed3ab54f6455824f996d2e1c9ff5 100644 (file)
@@ -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 {}