Replace nowplaying with capitalized version

main
Bob Mottram 2022-07-19 14:59:51 +01:00
parent 89298477aa
commit edfa75e221
1 changed files with 6 additions and 0 deletions

View File

@ -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(' ')