mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
refactor: improve scraper handling by utilizing classes for registration
This commit is contained in:
@@ -34,13 +34,7 @@ class AppState(QObject):
|
||||
self.posts: list[Dict[str,str]] | None = None # titles, urls, author, seeders, leechers
|
||||
self.currenttracker: str = "rutracker"
|
||||
self.api_url: str = "https://api.michijackson.xyz"
|
||||
self.trackers: Dict[str,Dict[str,Any]] = {} # each tracker should add itself here
|
||||
# an example:
|
||||
# "rutracker" : {
|
||||
# "name" : "rutracker",
|
||||
# "headers" : ["author", "title"],
|
||||
# "scrapeFunc" : function,
|
||||
# }
|
||||
self.trackers: Dict[str,Dict[str,Any]] = {}
|
||||
|
||||
# LibTorrent / Download related stuff
|
||||
self.dl_session: Any = None
|
||||
|
||||
Reference in New Issue
Block a user