}]
def _real_extract(self, url):
channel, display_id = re.match(self._VALID_URL, url).groups()
s = self._download_json(
}]
def _real_extract(self, url):
channel, display_id = re.match(self._VALID_URL, url).groups()
s = self._download_json(
+ if re.search(r'[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}', display_id):
+ episode_url = s.get('episodeUrl')
+ if episode_url:
+ display_id = episode_url
+ else:
+ channel, display_id = re.match(self._VALID_URL, s['link']).groups()
cast_data = self._download_json(
'https://play-api.acast.com/splash/%s/%s' % (channel, display_id),
display_id)['result']
e = cast_data['episode']
cast_data = self._download_json(
'https://play-api.acast.com/splash/%s/%s' % (channel, display_id),
display_id)['result']
e = cast_data['episode']
return {
'id': compat_str(e['id']),
'display_id': display_id,
'url': media_url,
'title': title,
return {
'id': compat_str(e['id']),
'display_id': display_id,
'url': media_url,
'title': title,
- 'timestamp': unified_timestamp(e.get('publishingDate')),
- 'duration': float_or_none(s.get('duration') or e.get('duration')),
+ 'timestamp': unified_timestamp(e.get('publishingDate') or s.get('publishDate')),
+ 'duration': float_or_none(e.get('duration') or s.get('duration')),
'filesize': int_or_none(e.get('contentLength')),
'creator': try_get(cast_data, lambda x: x['show']['author'], compat_str),
'series': try_get(cast_data, lambda x: x['show']['name'], compat_str),
'filesize': int_or_none(e.get('contentLength')),
'creator': try_get(cast_data, lambda x: x['show']['author'], compat_str),
'series': try_get(cast_data, lambda x: x['show']['name'], compat_str),