test
This commit is contained in:
parent
27593082d1
commit
ea310a36f6
@ -150,6 +150,8 @@ def main():
|
|||||||
# Obtain file_path list
|
# Obtain file_path list
|
||||||
arr = get_file_path_list(arr)
|
arr = get_file_path_list(arr)
|
||||||
|
|
||||||
|
# Search Tdarr API for library database ID's
|
||||||
|
# Dedupe dbID/file_path combinations
|
||||||
inform_dict = {}
|
inform_dict = {}
|
||||||
for file_path in arr["file_paths"]:
|
for file_path in arr["file_paths"]:
|
||||||
loggit("Event Item: %s\n" % file_path)
|
loggit("Event Item: %s\n" % file_path)
|
||||||
@ -176,10 +178,4 @@ def main():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
testdict = {
|
|
||||||
"sonarr_eventtype": "Download",
|
|
||||||
"sonarr_episodefile_path": "/Drivepool/Media/TV/Cartoons/Ben 10 (2016)/Season 2/Ben 10 (2016) - S02E31 - Chicken Nuggets of Wisdom.mkv"
|
|
||||||
}
|
|
||||||
for testkey in list(testdict.keys()):
|
|
||||||
os.environ[testkey] = testdict[testkey]
|
|
||||||
main()
|
main()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user