fix: Correct field names ImdbID to IMDbID

- Fixed ImdbID to IMDbID in kinopoisk.go
- Fixed ImdbID to IMDbID in kp_mapper.go
- Removed Tagline field from TVShow mapping
- All builds now pass successfully
This commit is contained in:
2025-10-18 20:30:37 +00:00
parent 28555a83e1
commit e5e70a635b
2 changed files with 5 additions and 7 deletions

View File

@@ -221,11 +221,11 @@ func TmdbIdToKPId(tmdbService *TMDBService, kpService *KinopoiskService, tmdbId
return 0, err
}
if externalIds.ImdbID == "" {
if externalIds.IMDbID == "" {
return 0, fmt.Errorf("no IMDb ID found for TMDB ID %d", tmdbId)
}
return ImdbIdToKPId(kpService, externalIds.ImdbID)
return ImdbIdToKPId(kpService, externalIds.IMDbID)
}
func KPIdToTmdbId(tmdbService *TMDBService, kpService *KinopoiskService, kpId int) (int, error) {
@@ -244,7 +244,7 @@ func KPIdToTmdbId(tmdbService *TMDBService, kpService *KinopoiskService, kpId in
if err != nil {
continue
}
if ids.ImdbID == imdbId {
if ids.IMDbID == imdbId {
return movie.ID, nil
}
}