mirror of https://gitlab.com/bashrc2/epicyon
Add explicit icon to podcast title
parent
5b9d73a851
commit
6bf369be2c
|
|
@ -435,6 +435,11 @@ def html_podcast_episode(translate: {},
|
|||
podcast_title = \
|
||||
remove_html(html.unescape(urllib.parse.unquote_plus(newswire_item[0])))
|
||||
if podcast_title:
|
||||
# if this is an "explicit" podcast then add a corresponding icon
|
||||
# to the title
|
||||
if 'explicit' in podcast_properties:
|
||||
if podcast_properties['explicit'] is True:
|
||||
podcast_title += ' 🔞'
|
||||
podcast_str += \
|
||||
'<p><label class="podcast-title">' + \
|
||||
'<span itemprop="headline">' + \
|
||||
|
|
|
|||
Loading…
Reference in New Issue