remove superfluous string conversion

This commit is contained in:
Brennen Raimer
2026-05-04 12:20:45 -04:00
parent 8ddf6efb67
commit 506bb0f96c
+2 -2
View File
@@ -24,9 +24,9 @@ def main(music_folder: Path):
with m3u.open("w") as updated_contents: with m3u.open("w") as updated_contents:
for track in tracks: for track in tracks:
if track.is_absolute(): if track.is_absolute():
updated_contents.write(str(track.relative_to(m3u, walk_up=True).as_posix())) updated_contents.write(track.relative_to(m3u, walk_up=True).as_posix())
else: else:
updated_contents.write(str(track.as_posix())) updated_contents.write(track.as_posix())
if __name__ == "__main__": if __name__ == "__main__":