mirror of https://gitlab.com/bashrc2/epicyon
Unquote
parent
3d175fc5d1
commit
6ec4c5805a
|
@ -9,6 +9,7 @@ __module_group__ = "Web Interface Columns"
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import html
|
import html
|
||||||
|
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
|
||||||
|
@ -184,14 +185,16 @@ def html_podcast_episode(css_cache: {}, translate: {},
|
||||||
translate['Your browser does not support the audio element.'] + \
|
translate['Your browser does not support the audio element.'] + \
|
||||||
'\n </audio>\n'
|
'\n </audio>\n'
|
||||||
|
|
||||||
podcast_title = remove_html(html.unescape(newswire_item[0]))
|
podcast_title = \
|
||||||
|
remove_html(html.unescape(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 = \
|
podcast_description = \
|
||||||
remove_html(html.unescape(newswire_item[4]))
|
html.unescape(urllib.parse.unquote_plus(newswire_item[4]))
|
||||||
|
podcast_description = remove_html(podcast_description)
|
||||||
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