minor iprv

This commit is contained in:
2025-07-23 12:58:20 +02:00
parent fd162e2a63
commit a5646b8f6e
2 changed files with 26 additions and 3 deletions

View File

@@ -27,6 +27,13 @@ __put_artist_json() {
[ -s "$tmpf" ] && mv "$tmpf" "$f" || printf "{}" >"$f"
}
# Delete all cache associated to the given artist
# argument $1: MusicBrainz Artist ID
cache_delete_artist() {
artistdir="$CACHEDIR/$1"
rm -rf "$artistdir"
}
# Returns the cached MusicBrainz data for the artist given by the MusicBrainz
# Artist ID in $1
cache_get_artist_mb() {