[applepodcasts] fix extraction(closes #28445)

This commit is contained in:
Remita Amine 2021-03-14 20:08:46 +01:00
parent 9955bb4a27
commit 3be098010f

View 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 {}