mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-02-19 15:35:18 -05:00
fix bug: actually save imdb_id to database
This commit is contained in:
@@ -116,6 +116,7 @@ class MovieRepository:
|
||||
db_movie.overview = movie.overview
|
||||
db_movie.year = movie.year
|
||||
db_movie.original_language = movie.original_language
|
||||
db_movie.imdb_id = movie.imdb_id
|
||||
else: # Insert new movie
|
||||
log.debug(f"Creating new movie: {movie.name}")
|
||||
db_movie = Movie(**movie.model_dump())
|
||||
|
||||
@@ -136,6 +136,7 @@ class TvRepository:
|
||||
db_show.overview = show.overview
|
||||
db_show.year = show.year
|
||||
db_show.original_language = show.original_language
|
||||
db_show.imdb_id = show.imdb_id
|
||||
else: # Insert new show
|
||||
db_show = Show(
|
||||
id=show.id,
|
||||
@@ -146,6 +147,7 @@ class TvRepository:
|
||||
year=show.year,
|
||||
ended=show.ended,
|
||||
original_language=show.original_language,
|
||||
imdb_id=show.imdb_id,
|
||||
seasons=[
|
||||
Season(
|
||||
id=season.id,
|
||||
|
||||
Reference in New Issue
Block a user