Show hashtag categories on podcast screen

main
Bob Mottram 2022-01-13 15:40:54 +00:00
parent fe063377e6
commit 1587ec0404
1 changed files with 8 additions and 0 deletions

View File

@ -221,6 +221,14 @@ def html_podcast_episode(css_cache: {}, translate: {},
'"><button class="donateButton">' + translate['Donate'] + \
'</button></a></p>\n'
if podcast_properties['categories']:
podcast_str += '<p>'
tags_str = ''
for tag in podcast_properties['categories']:
tag_link = '/users/' + nickname + '/tags/' + tag.replace('#', '')
tags_str += '<a href="' + tag_link + '">' + tag + '</a> '
podcast_str += tags_str.strip() + '</p>\n'
podcast_str += _html_podcast_performers(podcast_properties)
podcast_str += ' </center>\n'