feat: flat design Sunset Glitch + download manager + settings + recommendations overhaul
- Sunset Glitch color palette applied to all templates - Font Awesome icons throughout UI - Download manager with parallel queue and progress tracking - Settings page with dynamic configuration - Recommendations router enhanced with scoring - Local vendor libs (Alpine.js, HTMX) for offline support - Auto test suite with screenshots - Series releases list component - New download model
This commit is contained in:
+11
-1
@@ -216,8 +216,12 @@ class WatchlistManager:
|
||||
update_check_time = update_last_checked
|
||||
|
||||
def get_due_items(self) -> List[WatchlistItem]:
|
||||
"""Get all items that are due for a check based on current settings"""
|
||||
return self.get_due_for_check(self.settings.check_interval_hours if self.settings else 6)
|
||||
|
||||
def get_due_for_check(self, interval_hours: int) -> List[WatchlistItem]:
|
||||
"""Get all items that are due for a check based on settings"""
|
||||
interval = timedelta(hours=self.settings.check_interval_hours)
|
||||
interval = timedelta(hours=interval_hours)
|
||||
now = datetime.now()
|
||||
|
||||
with Session(engine) as session:
|
||||
@@ -234,6 +238,12 @@ class WatchlistManager:
|
||||
|
||||
return due_items
|
||||
|
||||
def get_settings(self) -> WatchlistSettings:
|
||||
"""Get global watchlist settings"""
|
||||
if self.settings is None:
|
||||
self._load_settings()
|
||||
return self.settings
|
||||
|
||||
def update_settings(self, settings: WatchlistSettings) -> WatchlistSettings:
|
||||
"""Update global watchlist settings"""
|
||||
self.settings = settings
|
||||
|
||||
Reference in New Issue
Block a user