Skip to content

Commit

Permalink
Add logs showing from where an album artwork was stored
Browse files Browse the repository at this point in the history
  • Loading branch information
ironsmile committed Apr 17, 2021
1 parent 4f63f0f commit da73588
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/art/album.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/xml"
"fmt"
"log"
"net/http"
"time"

Expand Down Expand Up @@ -40,6 +41,12 @@ func (c *Client) GetFrontImage(
continue
}

log.Printf(
"Downloaded image for artist(%s) album(%s) with mbID %s",
artist,
album,
mbidStr,
)
return img.Data, err
}

Expand Down
1 change: 1 addition & 0 deletions src/library/artwork.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ func (lib *LocalLibrary) albumArtworkFromFS(
}
}

log.Printf("Selected album [%d] artwork: %s", albumID, selectedArtwork)
return os.Open(selectedArtwork)
}

Expand Down

0 comments on commit da73588

Please sign in to comment.