diff --git a/main.go b/main.go index dd429dc..f512023 100644 --- a/main.go +++ b/main.go @@ -35,6 +35,7 @@ func main() { } defer CONN.Close() cache.SetCacheDir(viper.GetString("CACHE_DIR")) + cache.SetDefaultPath(viper.GetString("DEFAULT_IMAGE_PATH")) cache.LoadCache(viper.GetString("CACHE_FILE")) r := newRenderer() c, _ := CONN.CurrentSong() diff --git a/render.go b/render.go index 41ed3e9..8a9abf6 100644 --- a/render.go +++ b/render.go @@ -86,6 +86,8 @@ func getImagePath(path string) string { if err == nil { NOTIFICATION_SERVER.Send("Image From LastFM") extractedImage = downloadedImage + } else { + cache.PointToDefault(a[0]["artist"], a[0]["album"]) } } }