1
0
Fork 0
mirror of https://git.sr.ht/~cadence/NewLeaf synced 2026-07-05 10:55:26 +00:00

Fix channel views regular expression

This commit is contained in:
Cadence Ember 2026-06-29 14:53:27 +12:00
parent c4182790b6
commit 7cb8d3fba2

View file

@ -169,7 +169,7 @@ def uncompress_counter(text):
return int(float(text[:-1]) * multiplier) return int(float(text[:-1]) * multiplier)
def past_text_to_time(text): def past_text_to_time(text):
spaced_text = re.sub(r"^([0-9]+)([^ ])", r"\1 \2", text) spaced_text = re.sub(r"^([0-9]++)([^ ])", r"\1 \2", text)
words = spaced_text.split(" ") words = spaced_text.split(" ")
if words[0] == "Streamed": if words[0] == "Streamed":
words = words[1:] words = words[1:]