This commit is contained in:
deathbybandaid 2023-01-07 12:00:13 -05:00
parent 27593082d1
commit ea310a36f6

View File

@ -150,6 +150,8 @@ def main():
# Obtain file_path list
arr = get_file_path_list(arr)
# Search Tdarr API for library database ID's
# Dedupe dbID/file_path combinations
inform_dict = {}
for file_path in arr["file_paths"]:
loggit("Event Item: %s\n" % file_path)
@ -176,10 +178,4 @@ def 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()