mirror of https://gitlab.com/bashrc2/epicyon
Replace nowplaying with capitalized version
parent
89298477aa
commit
edfa75e221
|
@ -1165,6 +1165,12 @@ def add_html_tags(base_dir: str, http_prefix: str,
|
|||
now_playing_str = 'NowPlaying'
|
||||
if translate.get(now_playing_str):
|
||||
now_playing_str = translate[now_playing_str]
|
||||
now_playing_lower_str = 'nowplaying'
|
||||
if translate.get(now_playing_lower_str):
|
||||
now_playing_lower_str = translate[now_playing_lower_str]
|
||||
if '#' + now_playing_lower_str in content:
|
||||
content = content.replace('#' + now_playing_lower_str,
|
||||
'#' + now_playing_str)
|
||||
content = _add_music_tag(content, now_playing_str)
|
||||
words = _get_simplified_content(content).split(' ')
|
||||
|
||||
|
|
Loading…
Reference in New Issue