[125] add WU and WL as overlay special text options modifiers

pull/1335/head
meisnate12 2 years ago
parent ff95d460c7
commit 8fae32c65e

@ -1 +1 @@
1.18.3-develop124 1.18.3-develop125

@ -39,10 +39,10 @@ var_mods = {
"audience_rating": ["", "%", "#", "/"], "audience_rating": ["", "%", "#", "/"],
"originally_available": ["", "["], "originally_available": ["", "["],
"runtime": ["", "H", "M"], "runtime": ["", "H", "M"],
"season_number": ["", "W", "0", "00"], "season_number": ["", "W", "WU", "WL", "0", "00"],
"episode_number": ["", "W", "0", "00"], "episode_number": ["", "W", "WU", "WL", "0", "00"],
"episode_count": ["", "W", "0", "00"], "episode_count": ["", "W", "WU", "WL", "0", "00"],
"versions": ["", "W", "0", "00"], "versions": ["", "W", "WU", "WL", "0", "00"],
} }
single_mods = list(set([m for a, ms in var_mods.items() for m in ms if len(m) == 1])) single_mods = list(set([m for a, ms in var_mods.items() for m in ms if len(m) == 1]))
double_mods = list(set([m for a, ms in var_mods.items() for m in ms if len(m) == 2])) double_mods = list(set([m for a, ms in var_mods.items() for m in ms if len(m) == 2]))

@ -268,6 +268,10 @@ class Overlays:
final_value = str(actual_value)[:-2] if str(actual_value).endswith(".0") else actual_value final_value = str(actual_value)[:-2] if str(actual_value).endswith(".0") else actual_value
elif mod == "W": elif mod == "W":
final_value = num2words(int(actual_value)) final_value = num2words(int(actual_value))
elif mod == "WU":
final_value = num2words(int(actual_value)).upper()
elif mod == "WL":
final_value = num2words(int(actual_value)).lower()
elif mod == "0": elif mod == "0":
final_value = f"{int(actual_value):02}" final_value = f"{int(actual_value):02}"
elif mod == "00": elif mod == "00":

Loading…
Cancel
Save