optimize subtitle segmentation

optimize code
This commit is contained in:
harry
2024-04-15 11:29:04 +08:00
parent 9a1ee9abfb
commit bd33419460
3 changed files with 10 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ def get_all_fonts():
for file in files:
if file.endswith(".ttf") or file.endswith(".ttc"):
fonts.append(file)
fonts.sort()
return fonts