test
This commit is contained in:
parent
034fcfa6f7
commit
df50b9a03d
@ -65,6 +65,12 @@ def do_file_search(arr_file_path):
|
|||||||
return DBid
|
return DBid
|
||||||
|
|
||||||
|
|
||||||
|
def do_reverse_recursive_directory_search(arr_file_path):
|
||||||
|
arr_dir_path = os.path.dirname(arr_file_path)
|
||||||
|
print(arr_dir_path)
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
if "sonarr_eventtype" in os.environ:
|
if "sonarr_eventtype" in os.environ:
|
||||||
@ -110,11 +116,19 @@ def main():
|
|||||||
# loggit("Preparing payload to POST to tdarr API\n")
|
# loggit("Preparing payload to POST to tdarr API\n")
|
||||||
|
|
||||||
loggit("Searching tdarr API for item's library ID\n")
|
loggit("Searching tdarr API for item's library ID\n")
|
||||||
|
"""
|
||||||
DBid = do_file_search(arr_file_path)
|
DBid = do_file_search(arr_file_path)
|
||||||
if not DBid:
|
if not DBid:
|
||||||
loggit("No exact match found, searching for library ID from Reverse Recursive Directory matching\n")
|
loggit("No exact match found, searching for library ID from Reverse Recursive Directory matching\n")
|
||||||
else:
|
else:
|
||||||
print(DBid)
|
print(DBid)
|
||||||
|
"""
|
||||||
|
DBid = do_reverse_recursive_directory_search(arr_file_path)
|
||||||
|
if not DBid:
|
||||||
|
loggit("No match found\n")
|
||||||
|
sys.exit(0)
|
||||||
|
else:
|
||||||
|
print(DBid)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user