Commit Graph

432 Commits

Author SHA1 Message Date
pacnpal
46af1a31b7 Enhanced FFmpeg Integration:
Added robust error handling and logging
Improved binary verification and initialization
Added proper GPU detection and hardware acceleration
Optimized encoding parameters for different content types
Improved File Operations:

Added retry mechanisms for file operations
Enhanced temporary directory management
Improved cleanup of failed downloads
Added proper permission handling
Enhanced Queue Management:

Fixed queue manager initialization
Added better error recovery
Improved status tracking and logging
Enhanced cleanup of failed items
Better Error Handling:

Added comprehensive exception hierarchy
Improved error logging and reporting
Added fallback mechanisms for failures
Enhanced error recovery strategies
2024-11-15 03:48:56 +00:00
pacnpal
3e50faec75 Switching from regex patterns to yt-dlp simulation for URL detection:
Removed the regex-based URL detection
Added proper yt-dlp simulation to check if URLs are supported
Added better error handling for URL checking
Added detailed logging of URL detection results
Improving FFmpeg integration:

Added proper ffprobe binary download alongside FFmpeg
Added better verification of both binaries
Added retry mechanisms for binary downloads
Added proper cleanup of failed downloads
Enhancing error handling and logging:

Added detailed logging throughout the system
Added better error recovery mechanisms
Added proper cleanup of temporary files
Added better tracking of failed operations
2024-11-15 03:40:53 +00:00
pacnpal
8503fc6fdd Enhanced FFmpeg Integration:
Added robust error handling and logging
Improved binary verification and initialization
Added proper GPU detection and hardware acceleration
Optimized encoding parameters for different content types
Improved File Operations:

Added retry mechanisms for file operations
Enhanced temporary directory management
Improved cleanup of failed downloads
Added proper permission handling
Enhanced Queue Management:

Fixed queue manager initialization
Added better error recovery
Improved status tracking and logging
Enhanced cleanup of failed items
Better Error Handling:

Added comprehensive exception hierarchy
Improved error logging and reporting
Added fallback mechanisms for failures
Enhanced error recovery strategies
2024-11-15 03:21:25 +00:00
pacnpal
a04c576e0a logging 2024-11-15 02:59:16 +00:00
pacnpal
5a356f4824 logging 2024-11-15 02:54:09 +00:00
pacnpal
f943503f54 logging 2024-11-15 02:51:20 +00:00
pacnpal
8fcdec7550 lol 2024-11-15 02:48:05 +00:00
pacnpal
6f0f31944f enhanced 2024-11-15 02:38:22 +00:00
pacnpal
49c844a422 changes config settings for defaults 2024-11-15 02:26:51 +00:00
pacnpal
a72e4118e3 l 2024-11-15 02:22:29 +00:00
pacnpal
403b208abd what 2024-11-15 02:18:49 +00:00
pacnpal
a16b1ea7a4 fix: Change URL extraction in processor to use regex
- Replaced extractor.suitable() with direct regex pattern matching
- Added check for _VALID_URL attribute
- Improved error handling in URL extraction
- Maintains compatibility with video_downloader.py changes
2024-11-15 02:13:37 +00:00
pacnpal
1b64991041 fix: Change URL extraction in processor to use regex
- Replaced extractor.suitable() with direct regex pattern matching
- Added check for _VALID_URL attribute
- Improved error handling in URL extraction
- Maintains compatibility with video_downloader.py changes
2024-11-15 02:03:23 +00:00
pacnpal
0a46cee479 fix: Change URL validation to use regex patterns
- Replaced extractor.suitable() with direct regex pattern matching
- Store both pattern and site name for better debugging
- Added debug logging for URL matching
- Improved error handling
2024-11-15 01:59:03 +00:00
pacnpal
63664e3c94 fix: URL extraction error in is_supported_url method
- Fixed 'str' object has no attribute 'suitable' error
- Now properly instantiating extractors before calling suitable()
- Improved error handling in URL validation
2024-11-15 01:50:19 +00:00
pacnpal
7e4b33dd55 refactor: Convert commands to unique hybrid commands
- Reorganized commands into logical groups with unique prefixes:
  - va_: Core video archiver commands
  - vaq_: Queue management commands
  - vac_: Channel configuration commands
  - var_: Role management commands
  - vas_: Site management commands
- Updated all commands to be hybrid commands
- Updated README to reflect new command structure
- Maintained all existing functionality and parameters
2024-11-15 01:47:57 +00:00
pacnpal
8822c85b6f Add context menu command for birthday role assignment. Users with allowed roles can now give birthday roles via right-click menu. 2024-11-15 01:36:19 +00:00
pacnpal
826f5e1b3e Improved FFmpeg downloader error handling and permissions 2024-11-15 01:31:37 +00:00
pacnpal
dccd16e776 Update READMEs 2024-11-15 01:28:06 +00:00
pacnpal
190e689919 Changed FFmpeg binary download location from /tmp/ffmpeg to videoarchiver/bin for better organization and persistence 2024-11-15 01:26:58 +00:00
pacnpal
9be8842b36 Add context menu command for birthday role assignment. Users with allowed roles can now give birthday roles via right-click menu. 2024-11-15 01:22:10 +00:00
pacnpal
e133fc6366 refactor: Convert all cogs to use hybrid commands - Update birthday cog to use hybrid commands - Update overseerr cog to use hybrid commands - Update videoarchiver to use hybrid command group 2024-11-15 01:19:03 +00:00
pacnpal
f5a76bbd11 refactor: Break out commands in all cogs - Convert birthday cog to use separate slash commands - Convert overseerr cog to use separate slash commands - Update interaction handling 2024-11-15 01:15:58 +00:00
pacnpal
0f4fa8472e refactor: Break out commands into separate slash commands - Remove videoarchiver command group - Convert all commands to top-level slash commands - Update interaction handling 2024-11-15 01:13:33 +00:00
pacnpal
ebae02b83b fix: Add missing checks import from redbot.core 2024-11-15 01:08:39 +00:00
pacnpal
8013be2a66 fix: Add error handling to all cogs' initialization - Add proper logging - Add teardown functions - Add cleanup on failure 2024-11-15 01:04:53 +00:00
pacnpal
484b0c0cb8 fix: Add robust error handling for cog loading - Add initialization timeout - Add proper cleanup on failure - Add teardown function - Add proper logging - Add proper cog removal order 2024-11-15 01:04:25 +00:00
pacnpal
888ed27d17 fix: Improve cog loading order - Load main cog first - Wait for initialization - Load commands after successful init 2024-11-15 01:03:53 +00:00
pacnpal
0df5c879bb fix: Improve VideoArchiver cog structure - Remove command registration (handled by commands.py) - Ensure data directories exist - Add better initialization and cleanup - Improve error handling 2024-11-15 01:03:30 +00:00
pacnpal
c2f5a6b461 fix: Improve cog initialization and cleanup - Ensure proper component initialization - Add better error handling - Improve cleanup process 2024-11-15 01:01:48 +00:00
pacnpal
28e5736495 fix: Improve hybrid command implementation - Add consistent app_commands.guild_only() - Add proper parameter descriptions - Use app_commands.Range for numeric inputs 2024-11-15 01:00:25 +00:00
pacnpal
533afd61ed fix: Simplify cog initialization - Let Red handle command syncing - Remove manual sync operations - Clean up __init__.py files 2024-11-15 00:59:00 +00:00
pacnpal
3b563c45b5 fix: Add proper command registration and cleanup to all cogs - Add command syncing after cog load - Add teardown functions - Add error handling for sync operations 2024-11-15 00:58:05 +00:00
pacnpal
770e74d63c fix: Improve command registration and cleanup - Add proper command syncing - Add teardown function - Add error handling for sync operations 2024-11-15 00:57:24 +00:00
pacnpal
13be8d75de fix: Ensure data directory exists for queue persistence 2024-11-15 00:56:56 +00:00
pacnpal
1bd8980f6f fix: Improve URL validation and extraction - Use suitable() method for URL validation - Add word-based URL detection - Fix URL extraction errors 2024-11-15 00:55:27 +00:00
pacnpal
da9a6e40f9 fix: Properly validate URLs using extractors' suitable() method 2024-11-15 00:53:56 +00:00
pacnpal
4e632276c2 fix: Resolve command registration issues - Separate command handling into VideoArchiverCommands - Update command registration in __init__.py - Remove duplicate command registration 2024-11-15 00:50:55 +00:00
pacnpal
a760bef25d feat: Implement proper slash commands across all cogs - Use app_commands for better slash command support - Add command and parameter descriptions - Improve interaction handling - Add select menus for better UX 2024-11-15 00:47:39 +00:00
pacnpal
ba71081687 fix: Properly implement slash commands - Use app_commands for slash command support - Add proper command group structure - Handle command registration and syncing 2024-11-15 00:45:13 +00:00
pacnpal
cb1394f413 fix: Improve default handling for addrole and addmonitor - Clear lists when no parameter is provided to use defaults - Update help text and feedback messages 2024-11-15 00:42:05 +00:00
pacnpal
1588c5cb96 fix: Improve command handling and defaults - Add fallback for hybrid commands - Make addmonitor and addrole use defaults - Fix async cog loading 2024-11-15 00:40:12 +00:00
pacnpal
fa4c2ec208 fix: Remove manual command syncing and let Red-DiscordBot handle it 2024-11-15 00:30:45 +00:00
pacnpal
f6edef4658 fix: Properly initialize and register hybrid commands for both slash and legacy support 2024-11-15 00:26:48 +00:00
pacnpal
7a0fd441b0 fix: Properly delegate commands and add guild-only restrictions 2024-11-15 00:20:32 +00:00
pacnpal
ddd2da0ee4 fix: Add missing psutil import for queue health monitoring 2024-11-15 00:14:57 +00:00
pacnpal
cb130358fb fix: Remove duplicate hybrid command decorations to resolve command callback error 2024-11-15 00:10:50 +00:00
pacnpal
a373c455a9 fix: Change enable_sites command to use string parameter instead of *args for hybrid command compatibility 2024-11-15 00:07:57 +00:00
pacnpal
fc40e994fe fix imports 2024-11-15 00:02:09 +00:00
pacnpal
2160be84bb fix imports 2024-11-14 23:57:24 +00:00