Support "TOTAL DURATION"

This commit is contained in:
WQY\qiong
2023-06-17 10:37:13 +08:00
parent 80fc13b74e
commit 6a35a41f51

View File

@@ -90,6 +90,11 @@ def inp_in_time(section: list[str]) -> str:
continue
line = s.upper().strip()
# TOTAL DURATION => DURATION
if line.startswith('TOTAL DURATION'):
line = line.replace('TOTAL DURATION', 'DURATION')
for key in get_time_schema('').keys():
if line.startswith(key):
value = line.removeprefix(key).strip()