Skip to content

Commit

Permalink
Merge pull request #148 from CptPie/master
Browse files Browse the repository at this point in the history
clicked the wrong button lmao
  • Loading branch information
CptPie authored Apr 16, 2023
2 parents 78e797d + 5f842dd commit 5b39e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logic/dataimporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ func (j *jikan) getPoster() (string, error) {
dat1 := resp["images"].(map[string]interface{})
dat := dat1["jpg"].(map[string]interface{})

if (dat)["image_url"] != nil {
fileurl = (dat)["image_url"].(string)
if (dat)["large_image_url"] != nil {
fileurl = (dat)["large_image_url"].(string)
} else {
return defaultPosterPath, nil
}
Expand Down

0 comments on commit 5b39e6b

Please sign in to comment.