♻️ Full codebase refactor — cleaner, DRY, no lazy imports, duplicate functions merged.
🔐 Security • Admin password now hashed (PBKDF2) • Session secret moved to WebUI settings + 🎲 generate button • Crash-safe config parsing
🐛 Fixes • No more re-login on restart (persistent session secret) • Dead-Link Checker MongoDB CursorNotFound fixed • Unified TMDB access + response caching
🧹 Cleanup • Merged redundant helpers, fixed typos
⚡ Faster, safer, cleaner. Just restart to update.
Migrate scan/rescan/dbcheck from bot commands to WebUI Tools page
Karan Adhikari
Unverified signature
532c525
- Add resumable scan engine (Backend/helper/scan_manager.py) with DB-persisted
per-channel cursors; interrupted scans resume until a Rescan is requested
- Add DbCheckManager for integrity checking + dead-link purge with live stats
- Add Tools page (/admin/tools) with channel selector, live progress bars,
DB check info, and dead-link purge
- Add Tools API routes and nav links
- Restore scan state on startup in __main__.py
- Respect Telegram limits (batching, delays, FloodWait back-off) to avoid bans
- Remove scan/rescan/scanstatus/cancelscan/dbcheck/search bot commands
(delete scanner.py, trim utilities.py to /stats, update bot command menu)
Config Setup from WebUI
Karan Adhikari
Unverified signature
07f63a8
junk
weebzone
6f85dc9
Update utilities.py
Karan Adhikari
Unverified signature
e7f9e2f
Change storage check from 'not storage' to 'storage is None'
Karan Adhikari
Unverified signature
4c27f7b
Enhance /dbcheck command with concurrency and error handling
Karan Adhikari
Unverified signature
02f9eb2
Refactor /dbcheck command to improve performance and add error handling. Introduce concurrent processing for message checks and update status messages during execution.
- /scan: index existing channel content via get_messages batching (bot-only)
- /channels, /addchannel, /removechannel: runtime channel management persisted to MongoDB
- /stats: database dashboard with content counts and system info
- /search: regex title search across all storage DBs
- /dbcheck: integrity checker for orphaned stream entries
- /exportchannels, /importchannels: channel config backup/restore
Closes #39