mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
fd4dca4b97
commit
26d0dad6f5
|
@ -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])))
|
||||
|
|
Loading…
Reference in New Issue