Update youtube_dl/extractor/mujrozhlas.py

Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
Martin Vician 2022-08-06 21:32:01 +01:00 committed by GitHub
parent 5fd5b4737f
commit e4759fdffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,10 +44,10 @@ class MujRozhlasIE(InfoExtractor):
content = self._download_json(content_url, content_id) content = self._download_json(content_url, content_id)
attrs = content['data']['attributes'] attrs = content['data']['attributes']
title = attrs['title'] title = attrs['title']
audio_url = content['data']['attributes']['audioLinks'][0]['url']
audio_info = content['data']['attributes']['audioLinks'][0] audio_info = content['data']['attributes']['audioLinks'][0]
duration = audio_info.get('duration') duration = audio_info.get('duration')
description = clean_html(attrs.get('description')) description = clean_html(attrs.get('description'))
audio_url = audio_info.get('url')
thumbnail = self._og_search_thumbnail(webpage) thumbnail = self._og_search_thumbnail(webpage)
timestamp = parse_iso8601(self._og_search_property('updated_time', webpage, fatal=False)) timestamp = parse_iso8601(self._og_search_property('updated_time', webpage, fatal=False))