This commit is contained in:
Gregory Salaun 2022-06-05 11:41:42 +07:00
parent 15b6097652
commit 19eafe2318

View File

@ -1,46 +1,3 @@
# #!/usr/bin/python3
#
# import requests
# import os
#
# PATH_LIST = ["Movies", "Series", "4K-Movies", "4K-Series", "Cartoons"]
#
# basePath = ""
# sourcePath = ""
# movieFolder = ""
#
# def sendNotifications(title, message, priority):
# resp = requests.post('https://gotify.rouggy.com/message?token=AKMj5SsZblmpAJ_', json={
# "message": message,
# "priority": priority,
# "title": title
# })
#
# try:
#
# eventType = os.environ.get('sonarr_eventtype')
# sonarrMovieId = os.environ.get('sonarr_series_id')
# sourcePath = os.environ.get('sonarr_episodefile_sourcepath')
#
# # Get the folder name of the file to check if movie/serie is inside a folder or not
# movieFolder = os.path.dirname(sourcePath)
# basePath = os.path.basename(movieFolder)
# except:
# print("Cannot get env variables")
#
# #sendNotifications("Test of Radarr Script", f"Source Path:{sourcePath}", 10)
#
# if basePath not in PATH_LIST:
# try:
# os.remove(sourcePath)
# os.rmdir(movieFolder)
# except:
# pass
# else:
# try:
# os.remove(sourcePath)
# except:
# pass
#!/home/rouggy/Scripts/ArrDeleteFiles/.venv/bin/python3 #!/home/rouggy/Scripts/ArrDeleteFiles/.venv/bin/python3
import requests import requests