Use f-strings

This commit is contained in:
Mark Cornick 2025-01-30 01:08:00 -05:00
parent 927038d5ec
commit b243a134b8
Signed by: mcornick
GPG Key ID: C64D29B7F5271161

View File

@ -44,9 +44,9 @@ def cue_to_meta(cuefile, metafile):
performer = performer_re[1]
if index_re:
time_re = re.search(r"^(..):(..):..$", index_re[1])
timestamp = "00{}{}".format(time_re[1], time_re[2])
timestamp = f"00{time_re[1]}{time_re[2]}"
if title and performer and timestamp:
metafile.write("{}:{} - {}\n".format(timestamp, performer, title))
metafile.write(f"{timestamp}:{performer} - {title}\n")
title = None
performer = None
timestamp = None