Document comprehensive date selection priority system in README

- Added detailed explanation of 4-tier fallback hierarchy
- Documents all TMDB release types (1-6) with clear descriptions
- Explains rename-first detection and Radarr NFO fallback logic
- Shows difference between import_then_digital vs digital_then_import priorities
- Version bumped to 0.2.21
This commit is contained in:
2025-09-10 10:07:23 -04:00
parent 5df4db5878
commit 192f59e80c
2 changed files with 28 additions and 15 deletions
+27 -14
View File
@@ -236,24 +236,37 @@ curl "http://localhost:8080/debug/tmdb/tt1674782"
} }
``` ```
## 🎯 Release Date Priority System ## 🎯 Date Selection Priority System
NFOGuard uses a **smart fallback system** when Radarr has no valid import history: NFOGuard uses a **comprehensive fallback hierarchy** to find the best possible date for each movie:
### 1. **Digital Release** (streaming/VOD) ### Movie Priority: `import_then_digital` (Default)
- Netflix, Amazon Prime, iTunes, etc.
- **TMDB Source**: Release type 4
- **Typical**: 45-90 days after theatrical
### 2. **Physical Release** (DVD/Blu-ray) **1. Radarr Import History** *(Highest Priority)*
- Physical media release dates - `radarr:db.history.import` - Real download/import events from Radarr database
- **TMDB Source**: Release type 5 - `radarr:db.history.grab` - Fallback to grab events if no import events exist
- **Typical**: 90-120 days after theatrical - **Skip if**: First event is rename (indicates upgrades, not original import)
### 3. **Theatrical Release** (cinema) **2. TMDB Release Dates** *(When import unavailable/unreliable)*
- Original movie theater release - `tmdb:premiere` - Type 1: World premieres, film festivals
- **TMDB Source**: Release type 3 - `tmdb:limited` - Type 2: Limited theatrical releases
- **Most Authoritative**: Always used when no digital/physical exists - `tmdb:theatrical` - Type 3: Wide theatrical releases
- `tmdb:digital` - Type 4: Digital/streaming releases (Netflix, iTunes, etc.)
- `tmdb:physical` - Type 5: Physical media (DVD, Blu-ray)
- `tmdb:tv` - Type 6: TV broadcasts, TV movie premieres
- **Priority Order**: Uses `RELEASE_DATE_PRIORITY=digital,physical,theatrical`
**3. Radarr NFO Premiered Date** *(Radarr's own research)*
- `radarr:nfo.premiered` - Extracts `<premiered>YYYY-MM-DD</premiered>` from existing movie.nfo
- **Source**: Radarr's metadata providers (TMDB, IMDb, etc.)
**4. File Modification Time** *(Last Resort)*
- `file:mtime` - Earliest video file modification time in directory
- **Only if**: `ALLOW_FILE_DATE_FALLBACK=true`
### Movie Priority: `digital_then_import`
Same hierarchy, but **TMDB Release Dates** are tried **before** Radarr Import History.
## 🧠 Smart Date Validation ## 🧠 Smart Date Validation
+1 -1
View File
@@ -1 +1 @@
0.2.20 0.2.21