Drop DoNotLeak + Extras

Co-Authored-By: thororen1234 <thororen1234@users.noreply.github.com>
Co-Authored-By: thororen <78185467+thororen1234@users.noreply.github.com>
Co-Authored-By: sadan4 <117494111+sadan4@users.noreply.github.com>
Co-Authored-By: ynot01 <ynot000001@gmail.com>
Co-Authored-By: MrDiamondDog <84212701+MrDiamondDog@users.noreply.github.com>
Co-Authored-By: Crxaw <48805031+sitescript@users.noreply.github.com>
This commit is contained in:
panbread 2025-02-26 21:50:23 +04:00 committed by thororen1234
parent 7731a7f0e5
commit 83c3497951
No known key found for this signature in database
17 changed files with 68 additions and 223 deletions

View file

@ -197,6 +197,11 @@ const settings = definePluginSettings({
description: "show the Last.fm logo by the album cover",
type: OptionType.BOOLEAN,
default: true,
},
alwaysHideArt: {
description: "Disable downloading album art",
type: OptionType.BOOLEAN,
default: false,
}
});
@ -279,7 +284,7 @@ export default definePlugin({
},
getLargeImage(track: TrackData): string | undefined {
if (track.imageUrl && !track.imageUrl.includes(placeholderId))
if (!settings.store.alwaysHideArt && track.imageUrl && !track.imageUrl.includes(placeholderId))
return track.imageUrl;
if (settings.store.missingArt === "placeholder")