This commit is contained in:
@@ -163,6 +163,13 @@ class TVProcessor:
|
|||||||
dateadded = nfo_data.get('dateadded')
|
dateadded = nfo_data.get('dateadded')
|
||||||
source = nfo_data.get('source', 'nfo_cache')
|
source = nfo_data.get('source', 'nfo_cache')
|
||||||
|
|
||||||
|
_log("DEBUG", f"S{season:02d}E{episode:02d}: NFO data found - aired={aired}, dateadded={dateadded}, source={source}")
|
||||||
|
|
||||||
|
# Skip incomplete NFO files with "unknown" source or no useful dates
|
||||||
|
if source == "unknown" and not dateadded and not aired:
|
||||||
|
_log("INFO", f"S{season:02d}E{episode:02d}: Ignoring incomplete NFO file with source 'unknown' and no dates")
|
||||||
|
continue # Skip this NFO file, try other episode files or proceed to API lookup
|
||||||
|
|
||||||
# Apply fallback logic if NFO has aired but no dateadded
|
# Apply fallback logic if NFO has aired but no dateadded
|
||||||
if not dateadded and aired:
|
if not dateadded and aired:
|
||||||
dateadded = aired
|
dateadded = aired
|
||||||
|
|||||||
Reference in New Issue
Block a user