Florent16 downloadsShows the Discogs cover art for a note's 'discogs' release ID, cached locally and usable in Bases image columns.
Shows the Discogs cover art for a note whenever its frontmatter has a discogs property (a release ID, or a Discogs release URL containing one). The cover is displayed above the note title in both Reading view and Live Preview, and the same local cache can be reused from a Base image column.
_discogs-covers/<releaseId>.jpg), so it works offline and never re-downloads the same releaseformulas:
discogs_image: 'link("_discogs-covers/" + discogs + ".jpg")'
discogs property to a note's frontmatter, with the release ID (e.g. discogs: "395976") or a Discogs release URL._discogs-covers/ in your vault, and reused from there afterwards.To pre-populate the cache for every note that has a discogs property (useful before browsing a Base gallery), run "Cache all Discogs covers" from the command palette.
The "Cache all Discogs covers" command lists every markdown file in the vault (vault.getMarkdownFiles()) in order to find the ones with a discogs property and pre-fill the local cache for all of them at once. No file content is read beyond its already-indexed frontmatter, and nothing ever leaves the vault except the Discogs release ID sent to api.discogs.com.
Authorization header of requests to api.discogs.com and is never sent anywhere else.This plugin isn't on the community plugin list yet. To install it manually:
main.js, manifest.json and styles.css from the latest release.discogs-cover inside your vault's .obsidian/plugins/ directory.