1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-30 08:13:10 +01:00

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)
attrs = content['data']['attributes']
title = attrs['title']
audio_url = content['data']['attributes']['audioLinks'][0]['url']
audio_info = content['data']['attributes']['audioLinks'][0]
duration = audio_info.get('duration')
description = clean_html(attrs.get('description'))
audio_url = audio_info.get('url')
thumbnail = self._og_search_thumbnail(webpage)
timestamp = parse_iso8601(self._og_search_property('updated_time', webpage, fatal=False))