mirror of https://gitlab.com/bashrc2/epicyon
Show fediverse handle, if available, on podcast screen
parent
04f4ea2a61
commit
8433d9069e
|
@ -12,6 +12,8 @@ import html
|
|||
import datetime
|
||||
import urllib.parse
|
||||
from shutil import copyfile
|
||||
from utils import get_nickname_from_actor
|
||||
from utils import get_domain_from_actor
|
||||
from utils import data_dir
|
||||
from utils import get_url_from_post
|
||||
from utils import get_config_param
|
||||
|
@ -453,6 +455,15 @@ def html_podcast_episode(translate: {},
|
|||
'" rel="donation"><button class="donateButton">' + \
|
||||
translate['Donate'] + '</button></a></span></p>\n'
|
||||
|
||||
fediverse_handle = ''
|
||||
if len(newswire_item) > 9:
|
||||
fediverse_handle = newswire_item[9]
|
||||
podcast_nickname = get_nickname_from_actor(fediverse_handle)
|
||||
podcast_domain, _ = get_domain_from_actor(fediverse_handle)
|
||||
podcast_str += \
|
||||
'<p><a href="' + fediverse_handle + '">' + \
|
||||
podcast_nickname + '@' + podcast_domain + '</a></p>\n'
|
||||
|
||||
if podcast_properties['categories']:
|
||||
tags_str = ''
|
||||
for tag in podcast_properties['categories']:
|
||||
|
|
Loading…
Reference in New Issue