Fix bugs, Add error messages
This commit is contained in:
@ -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}")
|
||||
|
Reference in New Issue
Block a user