digital release logic

This commit is contained in:
2025-09-09 09:30:20 -04:00
parent bbbf4b63cc
commit fed82a9e13
4 changed files with 240 additions and 35 deletions
+39 -1
View File
@@ -2,7 +2,45 @@
All notable changes to this project will be documented in this file.
## [Unreleased]
## [Unreleased] - v0.6.0
### Added
- **Smart Digital Release Date Logic**: Intelligent fallback for manual imports
- When Radarr only has file dates (`radarr:db.file.dateAdded`), check TMDB for digital release dates
- Smart comparison logic prevents using unrealistic dates (e.g., won't use 2000 digital date for 1983 movie)
- New configuration option `PREFER_DIGITAL_OVER_FILE_DATES=true`
- **Enhanced Debug Endpoints**:
- `/debug/movie/{imdb_id}/priority` - Shows date selection logic and available sources
- Detailed analysis of file date vs digital date decisions
- **Complete API Documentation**: Updated README with all curl commands and response examples
- **Testing Infrastructure**:
- `test_bulk_update.py` - Database connection validation
- `test_movie_scan.py` - Directory scanning logic testing
- `test_end_to_end.py` - Complete workflow validation
- **External API Integration**:
- TMDB API for digital release dates
- OMDb API for DVD/digital release dates
- Jellyseerr integration for additional digital release data
- **Deployment Documentation**:
- `DEPLOYMENT.md` - Complete Docker deployment guide
- `TESTING.md` - Testing strategy and troubleshooting
- `.env.template` - Comprehensive configuration template
- `docker-compose.yml` - Production-ready deployment
### Changed
- **Configuration Management**: Removed hardcoded paths, fully environment variable driven
- **Movie Priority Logic**: Enhanced `import_then_digital` to intelligently handle file date fallbacks
- **README.md**: Complete rewrite with all API endpoints, curl examples, and response formats
### Fixed
- **Manual Import Handling**: Movies manually imported to Radarr now use digital release dates instead of file modification dates
- **Path Configuration**: Fixed hardcoded media paths, now fully configurable via environment variables
- **Debug History Endpoint**: Fixed endpoint showing wrong movie events (still needs database-only implementation)
### Technical Details
- Maintains full backward compatibility with existing configurations
- Smart date comparison algorithm considers theatrical release dates when available
- Environment variable validation and fallback to sensible defaults
# Changelog