dates for TV shows

This commit is contained in:
2025-09-14 13:56:31 -04:00
parent d7db924510
commit 2657729975
3 changed files with 207 additions and 67 deletions
+51 -21
View File
@@ -1,26 +1,24 @@
# NFOGuard Development Summary
## Current Status: v1.4.0 - Complete Date Field Management
## Current Status: v1.4.1 - Complete TV & Movie NFO Management
### Latest Updates (v1.4.0)
- **🎯 ALL DATE FIELDS**: Now moves premiered, year, dateadded, and lockdata to bottom
- **📋 COMPREHENSIVE**: Removes existing premiered/year fields and re-adds at bottom
- **✅ PRESERVATION**: Preserves existing premiered date if no new release date provided
- **🧹 CLEAN STRUCTURE**: All date/metadata fields grouped together at bottom
### Latest Updates (v1.4.1)
- **📺 TV SHOW SUPPORT**: Extended preservation logic to tvshow.nfo, season.nfo, and episode.nfo
- **🎯 CONSISTENT BEHAVIOR**: All NFO types now preserve existing content and append NFOGuard fields
- **✅ COMPREHENSIVE**: Movies, TV shows, seasons, and episodes all handle field placement correctly
- **🧹 UNIFIED APPROACH**: Same preservation and bottom-placement logic across all media types
### Complete NFO Structure (Fixed)
### Complete NFO Management Coverage
#### Movie NFO Structure
```xml
<movie>
<!-- All existing Radarr/Jellyfin content preserved -->
<title>Annabelle Comes Home</title>
<plot>Plot content...</plot>
<uniqueid type="tmdb" default="true">521029</uniqueid> <!-- preserved -->
<genre>Horror</genre>
<director>Gary Dauberman</director>
<!-- All existing Radarr content preserved -->
<title>Movie Title</title>
<plot>Plot...</plot>
<actor>...</actor>
<!-- ... all existing fields including all actors ... -->
<!-- ALL date/metadata fields at absolute bottom -->
<!-- NFOGuard fields at bottom -->
<uniqueid type="imdb" default="true">tt8350360</uniqueid>
<premiered>2019-06-26</premiered>
<year>2019</year>
@@ -29,12 +27,44 @@
</movie>
```
### NFOGuard Managed Fields
-`uniqueid[type="imdb"]` - IMDb ID for identification
-`premiered` - Release date (moved to bottom)
-`year` - Extracted from premiered date
-`dateadded` - Import timestamp
-`lockdata` - Prevents metadata overwrites
#### TV Show NFO Structure
```xml
<tvshow>
<!-- All existing Sonarr content preserved -->
<title>Show Title</title>
<plot>Show plot...</plot>
<actor>...</actor>
<!-- NFOGuard fields at bottom -->
<uniqueid type="imdb" default="true">tt1234567</uniqueid>
<uniqueid type="tvdb">12345</uniqueid>
<lockdata>true</lockdata>
</tvshow>
```
#### Episode NFO Structure
```xml
<episodedetails>
<!-- All existing Sonarr content preserved -->
<title>Episode Title</title>
<plot>Episode plot...</plot>
<director>...</director>
<!-- NFOGuard fields at bottom -->
<season>1</season>
<episode>5</episode>
<aired>2019-06-26</aired>
<dateadded>2025-09-14T13:50:34-04:00</dateadded>
<lockdata>true</lockdata>
</episodedetails>
```
### Preservation Features
-**Movies**: Preserves title, plot, actors, ratings, all existing metadata
-**TV Shows**: Preserves show metadata, existing uniqueid[tvdb], actor info
-**Episodes**: Preserves episode title, plot, director, existing aired dates
-**Seasons**: Preserves any existing season metadata
-**All Types**: Existing content stays in original order, NFOGuard fields at bottom
### Complete Path Processing Pipeline
-**Path Mapping**: Fixed substring matching (movies/movies6, tv/tv6)