update
This commit is contained in:
parent
0e7fb14a42
commit
68ba468192
@ -4,6 +4,8 @@ import os
|
||||
|
||||
book = {}
|
||||
|
||||
PATH_LIST = ["EBooks"]
|
||||
|
||||
try:
|
||||
book = {
|
||||
"EventType": os.environ.get('readarr_eventtype'),
|
||||
@ -29,14 +31,14 @@ for key, value in book.items():
|
||||
f.write('\n')
|
||||
f.close()
|
||||
|
||||
# if radarrBasePath not in PATH_LIST:
|
||||
# try:
|
||||
# os.remove(radarrSourcePath)
|
||||
# os.rmdir(radarrMovieFolder)
|
||||
# except:
|
||||
# pass
|
||||
# else:
|
||||
# try:
|
||||
# os.remove(radarrSourcePath)
|
||||
# except:
|
||||
# pass
|
||||
if radarrBasePath not in PATH_LIST:
|
||||
try:
|
||||
os.remove(radarrSourcePath)
|
||||
os.rmdir(radarrMovieFolder)
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
try:
|
||||
os.remove(radarrSourcePath)
|
||||
except:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user