diff --git a/backend/external_medias/external_medias.go b/backend/external_medias/external_medias.go index f8c4e4a..a2d472b 100644 --- a/backend/external_medias/external_medias.go +++ b/backend/external_medias/external_medias.go @@ -53,6 +53,9 @@ func GetMediaIDs(env *web.Env, mediaType string, source string, category string) } // Add them in the list of ids for _, media := range medias { + if media.ImdbID == "" { + continue + } ids = append(ids, media.ImdbID) } } else { @@ -63,6 +66,9 @@ func GetMediaIDs(env *web.Env, mediaType string, source string, category string) } // Add them in the list of ids for _, media := range medias { + if media.ImdbID == "" { + continue + } ids = append(ids, media.ImdbID) } }