fix: Improve TMDB fallback detection and logging for movies without IMDb IDs
Local Docker Build (Dev) / build-dev (push) Successful in 21s
Local Docker Build (Dev) / build-dev (push) Successful in 21s
- Update find_movie_imdb_id to properly log TMDB vs IMDb ID detection - Fix error message to indicate search for both IMDb AND TMDB IDs - Add critical workflow reminder to SUMMARY.md for code-only development - Should resolve For the One (2024) processing with TMDB ID 1339758
This commit is contained in:
@@ -109,6 +109,16 @@ Implemented intelligent caching system that eliminates 90%+ of processing time o
|
|||||||
- **SECURITY RECORD**: Document sensitive changes that can't be mentioned publicly
|
- **SECURITY RECORD**: Document sensitive changes that can't be mentioned publicly
|
||||||
- **DEVELOPMENT CONTINUITY**: Help future sessions understand what really happened
|
- **DEVELOPMENT CONTINUITY**: Help future sessions understand what really happened
|
||||||
|
|
||||||
|
### 🚨 CRITICAL DEVELOPMENT WORKFLOW REMINDER
|
||||||
|
|
||||||
|
**⚠️ CODE REPOSITORY ONLY - NO SYSTEM ACCESS:**
|
||||||
|
- **THIS IS A CODE REPOSITORY ONLY** - No access to running NFOGuard systems, movie directories, or file operations
|
||||||
|
- **MAKE CODE CHANGES ONLY** - Edit source files, commit to Gitea, push for local builds
|
||||||
|
- **NO BASH COMMANDS** - Cannot run python scripts, find commands, or test operations outside of git
|
||||||
|
- **GITEA LOCAL BUILDS** - All testing happens on local Gitea builds, not in development environment
|
||||||
|
- **NO FILE SYSTEM ACCESS** - Cannot access /mnt/unionfs/Media/Movies/ or any movie directories
|
||||||
|
- **CODE CHANGES → COMMIT → PUSH → BUILD** - This is the only workflow available
|
||||||
|
|
||||||
### 🚫 CRITICAL COMMIT MESSAGE GUIDELINES
|
### 🚫 CRITICAL COMMIT MESSAGE GUIDELINES
|
||||||
|
|
||||||
**NEVER INCLUDE IN COMMITS:**
|
**NEVER INCLUDE IN COMMITS:**
|
||||||
|
|||||||
+5
-2
@@ -114,14 +114,17 @@ class NFOManager:
|
|||||||
print(f"✅ Found IMDb ID in filename: {imdb_id} from {file_path.name}")
|
print(f"✅ Found IMDb ID in filename: {imdb_id} from {file_path.name}")
|
||||||
return imdb_id
|
return imdb_id
|
||||||
|
|
||||||
# Finally, try NFO file content
|
# Finally, try NFO file content (including TMDB fallback)
|
||||||
nfo_path = movie_dir / "movie.nfo"
|
nfo_path = movie_dir / "movie.nfo"
|
||||||
imdb_id = self.parse_imdb_from_nfo(nfo_path)
|
imdb_id = self.parse_imdb_from_nfo(nfo_path)
|
||||||
if imdb_id:
|
if imdb_id:
|
||||||
|
if imdb_id.startswith("tmdb-"):
|
||||||
|
print(f"✅ Found TMDB ID in NFO file: {imdb_id} from {nfo_path} (fallback mode)")
|
||||||
|
else:
|
||||||
print(f"✅ Found IMDb ID in NFO file: {imdb_id} from {nfo_path}")
|
print(f"✅ Found IMDb ID in NFO file: {imdb_id} from {nfo_path}")
|
||||||
return imdb_id
|
return imdb_id
|
||||||
|
|
||||||
print(f"❌ No IMDb ID found in directory, filenames, or NFO for: {movie_dir.name}")
|
print(f"❌ No IMDb or TMDB ID found in directory, filenames, or NFO for: {movie_dir.name}")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def extract_nfoguard_dates_from_nfo(self, nfo_path: Path) -> Optional[Dict[str, str]]:
|
def extract_nfoguard_dates_from_nfo(self, nfo_path: Path) -> Optional[Dict[str, str]]:
|
||||||
|
|||||||
Reference in New Issue
Block a user