Update everything to work with new API + Reorganize file structurem functions and common logic

This commit is contained in:
Vxrtrauter
2025-10-09 22:12:10 +02:00
parent 53b2bb912e
commit 62b8506d13
7 changed files with 64 additions and 56 deletions
+5 -4
View File
@@ -1,14 +1,15 @@
from dataclasses import dataclass
from typing import Optional, Any
from typing import Optional, Any, List, Dict
@dataclass
class AppState:
posts: List[Dict[str, Any]]
post_titles: List[str]
post_urls: List[str]
debug: bool = False
tracker: str = "rutracker"
api_url: str = "https://api.michijackson.xyz"
aria2process: Optional[Any] = None
aria2_threads: int = 4
state = AppState()
state = AppState(posts=[], post_titles=[], post_urls=[])