Add explicit icon to podcast title

main
bashrc 2026-04-13 14:15:32 +01:00
parent 5b9d73a851
commit 6bf369be2c
1 changed files with 5 additions and 0 deletions

View File

@ -435,6 +435,11 @@ def html_podcast_episode(translate: {},
podcast_title = \ podcast_title = \
remove_html(html.unescape(urllib.parse.unquote_plus(newswire_item[0]))) remove_html(html.unescape(urllib.parse.unquote_plus(newswire_item[0])))
if podcast_title: 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 += \ podcast_str += \
'<p><label class="podcast-title">' + \ '<p><label class="podcast-title">' + \
'<span itemprop="headline">' + \ '<span itemprop="headline">' + \