update
This commit is contained in:
parent
68ba468192
commit
07bbb21b28
4
Readarr/delete_files.py
Normal file → Executable file
4
Readarr/delete_files.py
Normal file → Executable file
@ -31,13 +31,13 @@ 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:
|
||||||
|
Reference in New Issue
Block a user