V 1.0 - Only Prints

This commit is contained in:
Hannes committed 2026-03-20 00:46:36 +01:00
commit 5ac5b6615b
15 files changed
+1045

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import sys
import os
from pathlib import Path
from mkv import check_intro_outro_sync
if __name__ == '__main__':
if len(sys.argv) == 2:
if os.path.isfile(sys.argv[1]):
boolean, floater, stream = check_intro_outro_sync(Path(sys.argv[1]))
if boolean:
print("Video is syncable!")
print(f"With offset of {floater} at audio_stream {stream}")
else:
print("Video is not syncable!")
else:
raise FileExistsError(f"File does not exists: {sys.argv[1]}")
else:
print("python check_intro.py /path/to/file")