added the timestamp thingye

This commit is contained in:
Xargana 2025-05-08 20:31:41 +03:00
parent 3d14bbe477
commit 4d60c12d17
3 changed files with 148 additions and 1 deletions

View file

@ -1,6 +1,7 @@
import re
time_regex = re.compile(r'(\d+)([smhd])') # Matches 4m2s, 1h30m, etc.
# Define the time_regex that was missing
time_regex = re.compile(r'(\d+)([smhd])')
def parse_time(time_str):
"""