mirror of https://gitlab.com/bashrc2/epicyon
Extra characters removal
parent
838868e811
commit
786d53622b
|
|
@ -211,7 +211,7 @@ def html_podcast_episode(css_cache: {}, translate: {},
|
||||||
html.unescape(urllib.parse.unquote_plus(newswire_item[4]))
|
html.unescape(urllib.parse.unquote_plus(newswire_item[4]))
|
||||||
podcast_description = remove_html(podcast_description)
|
podcast_description = remove_html(podcast_description)
|
||||||
if podcast_description:
|
if podcast_description:
|
||||||
remove_chars = ('Œ', 'â€', 'ğŸ', '<EFBFBD>')
|
remove_chars = ('Œ', 'â€', 'ğŸ', '<EFBFBD>', ']]')
|
||||||
for remchar in remove_chars:
|
for remchar in remove_chars:
|
||||||
podcast_description = podcast_description.replace(remchar, '')
|
podcast_description = podcast_description.replace(remchar, '')
|
||||||
podcast_str += '<p>' + podcast_description + '</p>\n'
|
podcast_str += '<p>' + podcast_description + '</p>\n'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue