fix: Stop touching season.nfo/tvshow.nfo and debug missing NFO metadata
Local Docker Build (Dev) / build-dev (push) Successful in 24s
Local Docker Build (Dev) / build-dev (push) Successful in 24s
Changes: - Disabled creation/updating of season.nfo and tvshow.nfo files NFOGuard should only manage episode NFO files, not series-level files - Added debugging output to track aired/dateadded values in NFO updates The example NFO was missing these crucial fields despite processing Debug logs will show if data is being passed correctly to update function This ensures NFOGuard only manages episode-level metadata files and helps identify why some NFO files are missing the dateadded/aired fields.
This commit is contained in:
@@ -988,13 +988,20 @@ class NFOManager:
|
||||
episode_elem.text = str(episode_num)
|
||||
|
||||
# Dates at the end
|
||||
print(f"🔍 NFO Update Debug - aired: '{aired}', dateadded: '{dateadded}'")
|
||||
if aired:
|
||||
aired_elem = ET.SubElement(episode, "aired")
|
||||
aired_elem.text = aired[:10] if len(aired) >= 10 else aired
|
||||
print(f"✅ Added aired field: {aired}")
|
||||
else:
|
||||
print(f"⚠️ No aired date provided")
|
||||
|
||||
if dateadded:
|
||||
dateadded_elem = ET.SubElement(episode, "dateadded")
|
||||
dateadded_elem.text = dateadded
|
||||
print(f"✅ Added dateadded field: {dateadded}")
|
||||
else:
|
||||
print(f"⚠️ No dateadded provided")
|
||||
|
||||
# Add NFOGuard comment at the bottom with other NFOGuard fields
|
||||
nfoguard_comment = ET.Comment(f" Updated by {self.manager_brand} - Source: {source} ")
|
||||
|
||||
Reference in New Issue
Block a user