Fix bugs, Add error messages

This commit is contained in:
2022-09-12 15:32:09 +02:00
parent e6917b9807
commit 140d30d767
3 changed files with 43 additions and 13 deletions

View File

@ -3,13 +3,21 @@
import os
import subprocess
DESTINATION_FOLDER = "transcoder/raw" # pi@192.168.xxx:/home/pi/transcoder/raw
DESTINATION_FOLDER = (
"../transcoder/raw" # pi@192.168.xxx:/home/pi/dvd_rip/transcoder/raw
)
RIPPED_DIR = "ripped"
def main():
chdir_to_script_dir()
if not os.path.exists(DESTINATION_FOLDER):
print(
f"Destination folder '{DESTINATION_FOLDER}' does not exist. Please run transcoder script to generate it"
)
exit(1)
for dvd_type in ("movie", "series"):
for dvd in list_ripped_dvds(dvd_type):
print(f"Transferring {dvd_type}: {dvd}")