update to tv
Local Docker Build (Dev) / build-dev (push) Successful in 6s

This commit is contained in:
2025-11-03 20:40:42 -05:00
parent a326825347
commit d501c4364c
5 changed files with 28 additions and 17 deletions
+6 -4
View File
@@ -261,14 +261,16 @@ class DatabasePopulator:
for series in all_series:
try:
imdb_id = series.get('imdbId')
if not imdb_id:
_log("DEBUG", f"Skipping series without IMDb ID: {series.get('title')}")
continue
series_id = series.get('id')
series_path = series.get('path', '')
series_title = series.get('title', 'Unknown')
if not imdb_id:
# Generate placeholder IMDb ID using hash of path
path_hash = hashlib.md5(series_path.encode()).hexdigest()[:12]
imdb_id = f"missing-{path_hash}"
_log("DEBUG", f"Series without IMDb ID: {series_title} (path: {series_path}), using placeholder {imdb_id}")
# Update series record
self.db.upsert_series(imdb_id, series_path)