From edfa75e2213a9347bba121b94712654c91551875 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 19 Jul 2022 14:59:51 +0100 Subject: [PATCH] Replace nowplaying with capitalized version --- content.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content.py b/content.py index 72b778438..29aa60d4b 100644 --- a/content.py +++ b/content.py @@ -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(' ')