diff --git a/jobs/mal-sync/mal-sync.go b/jobs/mal-sync/mal-sync.go index e96ef8d2..ee8975ff 100644 --- a/jobs/mal-sync/mal-sync.go +++ b/jobs/mal-sync/mal-sync.go @@ -9,7 +9,7 @@ import ( "github.com/fatih/color" ) -const malImageLargeWidth = 285 +const imageWidthThreshold = 225 var ( malDB = arn.Node.Namespace("mal").RegisterTypes((*mal.Anime)(nil)) @@ -95,7 +95,7 @@ func sync(anime *arn.Anime, malID string) { anime.Title.English = malAnime.EnglishTitle } - if (!anime.HasImage() || anime.Image.Width < malImageLargeWidth) && malAnime.Image != "" { + if (!anime.HasImage() || anime.Image.Width <= imageWidthThreshold) && malAnime.Image != "" { fmt.Println("Downloading image:", malAnime.Image) response, err := client.Get(malAnime.Image).End()