mirror of
https://github.com/ManiMatter/decluttarr.git
synced 2026-04-20 15:55:40 +02:00
Bug Fixes & Automated Testing - remove_failed_imports.py #patch
This commit is contained in:
11
main.py
11
main.py
@@ -8,6 +8,7 @@ from config.definitions import settingsDict
|
||||
from src.utils.loadScripts import *
|
||||
from src.decluttarr import queueCleaner
|
||||
from src.utils.rest import rest_get, rest_post
|
||||
from src.utils.trackers import Defective_Tracker, Download_Sizes_Tracker
|
||||
|
||||
# Hide SSL Verification Warnings
|
||||
if settingsDict['SSL_VERIFICATION']==False:
|
||||
@@ -17,16 +18,6 @@ if settingsDict['SSL_VERIFICATION']==False:
|
||||
# Set up logging
|
||||
setLoggingFormat(settingsDict)
|
||||
|
||||
# Set up classes that allow tracking of items from one loop to the next
|
||||
class Defective_Tracker:
|
||||
# Keeps track of which downloads were already caught as stalled previously
|
||||
def __init__(self, dict):
|
||||
self.dict = dict
|
||||
class Download_Sizes_Tracker:
|
||||
# Keeps track of the file sizes of the downloads
|
||||
def __init__(self, dict):
|
||||
self.dict = dict
|
||||
|
||||
# Main function
|
||||
async def main(settingsDict):
|
||||
# Adds to settings Dict the instances that are actually configures
|
||||
|
||||
Reference in New Issue
Block a user