feat: Overhaul CreatorDownloaderTab with async downloads and better error tracking
Revamped CreatorDownloaderTab and CreatorDownloadThread to use async downloads, track failed files better, and log more details for debugging.
- Added
asyncio,aiohttp,ClientSession, andClientTimeoutimports for async downloads. - Switched
CreatorDownloadThreadto async withaiohttpfor faster, smoother batch downloading. - Removed "Download All Links" checkbox to focus on manual post selection.
- Added
self.failed_filestoCreatorDownloaderTabandCreatorDownloadThreadto track failed files centrally. - Improved
cleanup_thread:- Logs thread removal and failed file transfers.
- Moves failed files from
CreatorDownloadThreadtoself.failed_files. - Counts failed files in completion check.
- Cleans up leftover threads with better error handling.
- Logs failed files and active threads.
- Updated
update_file_completion:- Safely checks threads for failed file errors, defaults to "Unknown error".
- Stores failed files in
self.failed_files. - Adds
successparameter to handle failures. - Triggers
creator_download_finishedwhen all files are done.
- Enhanced
CreatorDownloadThread:- Fetches creator names and post titles for better folder naming.
- Logs detailed download progress and errors.
- Added failed file summary in
creator_download_finishedfor clearer feedback. - Made console logs clearer, no more cluttered tracebacks.
- Remove trailing dots (Windows compatibility - sanitization for folder naming convention) for both
Creator DownloaderandPost Downloader.