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