Improved thumbnail refresh

This commit is contained in:
Eduard Urbach 2018-03-20 04:40:00 +01:00
parent c16ea9df34
commit f637167c8d

View File

@ -76,9 +76,16 @@ func update(anime *arn.Anime, filePath string) {
data, err := ioutil.ReadFile(filePath)
if err != nil {
color.Red(err.Error())
return
}
err = anime.SetImageBytes(data)
if err != nil {
color.Red(err.Error())
return
}
anime.SetImageBytes(data)
anime.Save()
}