mirror of https://gitlab.com/bashrc2/epicyon
Unquote podcast description
parent
5e3f8917ce
commit
c7e030d0c6
|
@ -8,6 +8,7 @@ __status__ = "Production"
|
||||||
__module_group__ = "Web Interface Columns"
|
__module_group__ = "Web Interface Columns"
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import urllib.parse
|
||||||
from shutil import copyfile
|
from shutil import copyfile
|
||||||
from utils import get_config_param
|
from utils import get_config_param
|
||||||
from utils import remove_html
|
from utils import remove_html
|
||||||
|
@ -154,8 +155,10 @@ def html_podcast_episode(css_cache: {}, translate: {},
|
||||||
else:
|
else:
|
||||||
podcast_str += ' <img loading="lazy" src="' + image_url + \
|
podcast_str += ' <img loading="lazy" src="' + image_url + \
|
||||||
'" alt="" ' + get_broken_link_substitute() + '/></a>\n'
|
'" alt="" ' + get_broken_link_substitute() + '/></a>\n'
|
||||||
|
podcast_str += ' </center>\n'
|
||||||
podcast_str += ' </div>\n'
|
podcast_str += ' </div>\n'
|
||||||
|
|
||||||
|
podcast_str += ' <center>\n'
|
||||||
audio_extension = None
|
audio_extension = None
|
||||||
if path_is_audio(link_url):
|
if path_is_audio(link_url):
|
||||||
if '.mp3' in link_url:
|
if '.mp3' in link_url:
|
||||||
|
@ -179,15 +182,16 @@ def html_podcast_episode(css_cache: {}, translate: {},
|
||||||
' <source src="' + link_url + '" type="audio/' + \
|
' <source src="' + link_url + '" type="audio/' + \
|
||||||
audio_extension.replace('.', '') + '">' + \
|
audio_extension.replace('.', '') + '">' + \
|
||||||
translate['Your browser does not support the audio element.'] + \
|
translate['Your browser does not support the audio element.'] + \
|
||||||
'</audio>\n'
|
'\n </audio>\n'
|
||||||
|
|
||||||
podcast_title = remove_html(newswire_item[0])
|
podcast_title = remove_html(urllib.parse.unquote_plus(newswire_item[0]))
|
||||||
if podcast_title:
|
if podcast_title:
|
||||||
podcast_str += \
|
podcast_str += \
|
||||||
'<p><label class="podcast-title">"' + podcast_title + \
|
'<p><label class="podcast-title">"' + podcast_title + \
|
||||||
'</label></p>\n'
|
'</label></p>\n'
|
||||||
if newswire_item[4]:
|
if newswire_item[4]:
|
||||||
podcast_description = remove_html(newswire_item[4])
|
podcast_description = \
|
||||||
|
remove_html(urllib.parse.unquote_plus(newswire_item[4]))
|
||||||
if podcast_description:
|
if podcast_description:
|
||||||
podcast_str += '<p>' + podcast_description + '</p>\n'
|
podcast_str += '<p>' + podcast_description + '</p>\n'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue