mirror of
https://gitlab.com/foxixus/neomovies-api.git
synced 2025-10-28 01:48:51 +05:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user