This commit is contained in:
Gregory Salaun 2023-02-15 11:16:29 +07:00
parent 68ba468192
commit 07bbb21b28

22
Readarr/delete_files.py Normal file → Executable file
View File

@ -31,14 +31,14 @@ for key, value in book.items():
f.write('\n') f.write('\n')
f.close() f.close()
if radarrBasePath not in PATH_LIST: if radarrBasePath not in PATH_LIST:
try: try:
os.remove(radarrSourcePath) os.remove(radarrSourcePath)
os.rmdir(radarrMovieFolder) os.rmdir(radarrMovieFolder)
except: except:
pass pass
else: else:
try: try:
os.remove(radarrSourcePath) os.remove(radarrSourcePath)
except: except:
pass pass