merge-requests/22/merge
Bob Mottram 2022-01-13 11:19:52 +00:00
parent fd4dca4b97
commit 26d0dad6f5
1 changed files with 6 additions and 10 deletions

View File

@ -186,18 +186,14 @@ def html_podcast_episode(css_cache: {}, translate: {},
'\n </audio>\n'
elif podcast_properties.get('linkMimeType'):
if 'video' in podcast_properties['linkMimeType']:
video_extension = \
podcast_properties['linkMimeType'].split('/')[1]
video_mime_type = podcast_properties['linkMimeType']
video_msg = 'Your browser does not support the video element.'
podcast_str += \
'<figure id="videoContainer" ' + \
'data-fullscreen="false">\n' + \
' <video id="video" controls ' + \
'preload="metadata">\n' + \
'<source src="' + link_url + '" type="video/' + \
video_extension.replace('.', '') + '">\n' + \
translate[video_msg] + \
'</video>\n</figure>\n'
'<figure id="videoContainer" data-fullscreen="false">\n' + \
' <video id="video" controls preload="metadata">\n' + \
'<source src="' + link_url + '" ' + \
'type="' + video_mime_type + '">\n' + \
translate[video_msg] + '</video>\n</figure>\n'
podcast_title = \
remove_html(html.unescape(urllib.parse.unquote_plus(newswire_item[0])))