Improved thumbnail refresh
This commit is contained in:
parent
c16ea9df34
commit
f637167c8d
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user