Commit Graph

221 Commits

Author SHA1 Message Date
pacnpal
e5ea9f7bed fix: Update imports for Red-DiscordBot compatibility
- Modified imports to use full package paths
- Fixed circular import issues
- Updated imports to work within cog structure
2024-11-14 22:33:18 +00:00
pacnpal
c9872b123d fix 2024-11-14 22:31:37 +00:00
pacnpal
9aeafb63f4 fix: Update import path to use relative imports
- Changed import statement to use relative imports (.ffmpeg) for better package compatibility
2024-11-14 22:30:45 +00:00
pacnpal
2a50395bd7 fix: Add package __init__.py and fix imports
- Added videoarchiver/__init__.py to make it a proper package
- Fixed import statement in ffmpeg_manager.py to use local imports
2024-11-14 22:29:42 +00:00
pacnpal
5454630591 refactor: Split FFmpeg manager into modular components
- Created ffmpeg package with specialized modules
- Improved Docker compatibility using /tmp
- Better permission handling
- More robust error handling
- Separated concerns for easier maintenance
- Simplified imports through __init__.py
2024-11-14 22:26:32 +00:00
pacnpal
049ea863f0 fix tmp handling 2024-11-14 22:08:09 +00:00
pacnpal
5eeba4fa05 fix tmp handling 2024-11-14 22:03:56 +00:00
pacnpal
296d80875d fix ffmpeg 2024-11-14 21:57:15 +00:00
pacnpal
41c7926f79 Fix ffmpeg 2024-11-14 21:53:46 +00:00
pacnpal
6d25ea8e11 Fix ffmpeg 2024-11-14 21:44:41 +00:00
pacnpal
2622db6d3c Add slash command support for all cogs 2024-11-14 21:43:01 +00:00
pacnpal
73f142addd fixed issues 2024-11-14 21:36:58 +00:00
pacnpal
54fa2084e2 commit 2024-11-14 20:45:04 +00:00
pacnpal
fdebc0f494 Update message format and links
- Add original message link to archive message
- Add original message link to notification
- Update message format for better readability
- Add better reaction cleanup
- Add better error context
- Add better task management
2024-11-14 20:44:43 +00:00
pacnpal
acef03ba18 Update message handling and reactions
- Add 📹 reaction at start of processing
- Add  reaction during processing
- Change to  when complete
- Update message template to show username and channel
- Remove author mention for cleaner format
- Add better reaction cleanup on errors
- Add better error context and handling
2024-11-14 20:43:27 +00:00
pacnpal
ae9eb4d07d Update README with new features and improvements
- Add content-aware video analysis documentation
- Add comprehensive error handling details
- Add hardware acceleration improvements
- Add resource management documentation
- Add better troubleshooting information
- Add detailed error logging information
- Add GPU fallback documentation
- Add task management details
2024-11-14 20:39:28 +00:00
pacnpal
c63d884f67 Improve error handling and task management
- Add custom exception classes for better error handling
- Add better error logging to Discord channels with retries
- Add proper task tracking with error callbacks
- Add better cleanup and resource management
- Add better version comparison for updates
- Add retries for Discord API operations
- Add better error context and recovery
- Add better component lifecycle management
2024-11-14 20:38:12 +00:00
pacnpal
29186fc372 Improve video compression and error handling
- Add better video content analysis for optimal encoding
- Add better dark scene and motion detection
- Add better audio quality preservation
- Add better GPU detection with fallback
- Add proper exception handling and logging
- Add retries with exponential backoff
- Add better resource cleanup and management
- Add better file permission handling
- Add better process management
2024-11-14 20:36:48 +00:00
pacnpal
dcb1587d4f Improve file handling and resource management
- Add proper file permission handling and verification
- Add retries with exponential backoff for file operations
- Add better video file verification
- Add proper temp file cleanup
- Fix sync/async issues in file operations
- Add better error handling and logging
- Add proper thread pool management
- Fix potential memory leaks
- Add better file locking and cleanup
2024-11-14 20:14:31 +00:00
pacnpal
2b9a070896 Improve error handling and dependencies
- Add aiohttp to requirements for better async HTTP handling
- Add proper timeout handling for GitHub API requests
- Add better error logging with tracebacks to Discord channels
- Add better task tracking and cleanup
- Add better file cleanup handling
- Add better component lifecycle management
2024-11-14 20:10:01 +00:00
pacnpal
e2fb53c73a Add error handling to cog setup
- Add proper error logging during cog initialization
- Add CogLoadError handling
- Add logging configuration
2024-11-14 20:05:44 +00:00
pacnpal
d61d1508f5 Improve video processing reliability and resource management
FFmpeg Manager improvements:
- Add better GPU detection with fallback options
- Add video content analysis for optimal encoding
- Add advanced encoding parameters and two-pass encoding
- Add dynamic audio bitrate scaling
- Add better error handling for encoders

Utils improvements:
- Add temporary directory management
- Add better file cleanup with retries and timeouts
- Add download retries and video verification
- Add thread pool cleanup improvements
- Add proper resource cleanup
- Add better error handling throughout
- Fix potential resource leaks
2024-11-14 20:05:22 +00:00
pacnpal
69078025f6 Improve VideoArchiver cog reliability and resource management
- Make ThreadPoolExecutor per-guild instead of global
- Add proper thread pool cleanup on shutdown
- Add concurrent_downloads parameter to VideoDownloader
- Add proper cleanup of message manager tasks
- Add better component cleanup on cog unload
- Improve error handling throughout the cog
- Fix potential resource leaks
2024-11-14 20:01:12 +00:00
pacnpal
a8cbe110a4 Improve VideoArchiver cog reliability
- Add proper error handling for pkg_resources import
- Add setuptools to requirements for pkg_resources
- Add last_update_check tracking to prevent excessive checks
- Add timeout to GitHub API requests
- Improve error handling in update checker
- Add update check status to settings display
- Fix potential race conditions in update checker
2024-11-14 19:58:34 +00:00
pacnpal
6c2e277211 Add yt-dlp update functionality to VideoArchiver cog
- Add automatic yt-dlp version checking
- Add updateytdlp command for bot owners to update yt-dlp
- Add toggleupdates command to disable update notifications per guild
- Add disable_update_check setting to guild config
- Update README with new features and commands
- Improve update-related documentation
2024-11-14 19:51:43 +00:00
pacnpal
06f5bf63a0 docs: Update README with comprehensive cog descriptions and requirements. Added detailed features for Birthday cog and setup requirements for Overseerr cog. 2024-11-14 19:44:28 +00:00
pacnpal
ab855da723 Merge branch 'video'
merge
2024-11-14 19:15:50 +00:00
pacnpal
cbbd234d56 commit for rebase 2024-11-14 18:14:41 +00:00
pacnpal
b33a325fac first 2024-11-14 18:14:25 +00:00
pacnpal
0510721aef commit for rebase 2024-11-14 18:10:38 +00:00
pacnpal
8bc55d7577 first 2024-11-14 18:10:38 +00:00
pacnpal
f9a129cac9 Update README.md 2024-11-14 18:10:07 +00:00
pacnpal
76dd2f1b1a Update README.md 2024-11-14 18:10:07 +00:00
pacnpal
3b4d0545b9 Update README.md 2024-11-14 18:10:07 +00:00
pacnpal
fc7703b1d5 fix README 2024-11-14 18:10:07 +00:00
pacnpal
9437863ac9 adding Overseerr cog to README and give its own README 2024-11-14 18:10:07 +00:00
pacnpal
9926193ac8 Update overseerr.py 2024-11-14 18:10:07 +00:00
pacnpal
c5f3471dfc Update overseerr.py 2024-11-14 18:10:07 +00:00
pacnpal
fa9ff05e71 Update overseerr.py 2024-11-14 18:10:07 +00:00
pacnpal
f76dfa1c5c Update overseerr.py 2024-11-14 18:10:07 +00:00
pacnpal
09060c2cc6 Update overseerr.py 2024-11-14 18:10:07 +00:00
pacnpal
63b68afbf3 Update overseerr.py 2024-11-14 18:10:07 +00:00
pacnpal
63049c1e2b Update overseerr.py 2024-11-14 18:10:07 +00:00
pacnpal
28fb9490fb Update overseerr.py 2024-11-14 18:10:07 +00:00
pacnpal
906cea6267 fixed uuid 2024-11-14 18:10:07 +00:00
pacnpal
42f951dafb generated uuid for identifier 2024-11-14 18:10:07 +00:00
pacnpal
4edb139a46 updated birthday.py 2024-11-14 18:10:07 +00:00
88f628de91 Add Overseerr cog 2024-11-14 18:10:07 +00:00
pacnpal
b30c786103 yeah I changed some stuff 2024-11-14 18:10:07 +00:00
adf45c96f9 Update README.md 2024-11-14 18:10:07 +00:00