Compare commits
2 Commits
0e7fb14a42
...
master
Author | SHA1 | Date | |
---|---|---|---|
07bbb21b28 | |||
68ba468192 |
24
Readarr/delete_files.py
Normal file → Executable file
24
Readarr/delete_files.py
Normal file → Executable file
@ -4,6 +4,8 @@ import os
|
|||||||
|
|
||||||
book = {}
|
book = {}
|
||||||
|
|
||||||
|
PATH_LIST = ["EBooks"]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
book = {
|
book = {
|
||||||
"EventType": os.environ.get('readarr_eventtype'),
|
"EventType": os.environ.get('readarr_eventtype'),
|
||||||
@ -29,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
|
||||||
|
Reference in New Issue
Block a user