cleanup and made readme.md useful

This commit is contained in:
Honney OC committed 2026-10-11 17:16:09 +00:00
1 parent 525b9d4dc6
commit b80497e133
4 files changed
+185 -6

No files matched your search

+7 -2
View File
@@ -223,7 +223,12 @@ def process_one(German_Video: Path, Quality_Video: Path, output_dir: Path, offse
def main():
# Configure these paths for your own legally owned media.
# Placeholders below: first dir holds the dubbed (e.g. German) source,
# second dir holds the high-quality video source.
output_dir = "./output_dir"
dubbed_dir = "./dubbed_source/Season 01"
quality_dir = "./high_quality/S01"
if not os.path.isdir(output_dir):
raise NotADirectoryError(f"Output directory is not a valid Directory: {output_dir}")
start_num = 2
@@ -236,12 +241,12 @@ def main():
for i in tqdm(episodes, desc="Episodes"):
# i =1
# if i:
german_pattern = f"./dubbed_source/Season 01/Example Series S01E{i:02}.mkv"
german_pattern = f"{dubbed_dir}/Example Series S01E{i:02}.mkv"
if os.path.isfile(german_pattern):
German_Video = [german_pattern]
else:
German_Video = glob.glob(german_pattern)
quality_pattern = f"./high_quality/S01/E{i:02}*"
quality_pattern = f"{quality_dir}/E{i:02}*"
if os.path.isfile(quality_pattern):
Quality_Video = [quality_pattern]
else: