From 386c6123d85f2f45b8a7639146727d72cbfcbead Mon Sep 17 00:00:00 2001 From: IsraelGPT Date: Sun, 29 Mar 2026 21:29:24 +0000 Subject: [PATCH] add new slop --- .devcontainer/devcontainer.json | 2 +- js/ui.js | 24 +++++++++++++++- public/editors-picks.json | 49 +++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index bd87db0..4a6a52c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,7 +7,7 @@ "postCreateCommand": "git config --local core.editor \"code --wait\" && git config --local commit.gpgsign false && npm install && bun install", "customizations": { "vscode": { - "extensions": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] + "extensions": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "anthropic.claude-code"] } }, "mounts": ["source=${env:HOME}/.gitconfig,target=/home/vscode/.gitconfig,type=bind,consistency=cached"] diff --git a/js/ui.js b/js/ui.js index 9377a43..b709182 100644 --- a/js/ui.js +++ b/js/ui.js @@ -706,7 +706,7 @@ export class UIRenderer { return this.createBaseCardHTML({ type: 'album', id: album.id, - href: `/album/${album.id}`, + href: album._href || `/album/${album.id}`, title: `${escapeHtml(album.title)} ${explicitBadge} ${qualityBadge}`, subtitle: `${escapeHtml(artistName)} • ${yearDisplay}${typeLabel}`, imageHTML: this.getCoverHTML( @@ -2546,6 +2546,28 @@ export class UIRenderer { itemsToStore.push({ el: null, data: result.album, type: 'album' }); } } + } else if (item.type === 'userplaylist') { + if (item.id && item.title) { + const playlist = { + id: item.id, + name: item.title, + cover: item.cover, + numberOfTracks: item.numberOfTracks || 0, + }; + cardsHTML.push( + this.createAlbumCardHTML({ + ...playlist, + title: item.title, + artist: item.artist, + cover: item.cover, + explicit: item.explicit, + releaseDate: item.releaseDate, + type: 'ALBUM', + _href: `/userplaylist/${item.id}`, + }) + ); + itemsToStore.push({ el: null, data: playlist, type: 'user-playlist' }); + } } else if (item.type === 'artist') { if (item.name && item.picture) { // Use cached data directly diff --git a/public/editors-picks.json b/public/editors-picks.json index 8cd41be..aa1d5df 100644 --- a/public/editors-picks.json +++ b/public/editors-picks.json @@ -1,4 +1,53 @@ [ + { + "type": "userplaylist", + "id": "6i4y9s7y5hb5wyz", + "title": "BULLY", + "artist": { "id": 25022, "name": "Kanye West" }, + "releaseDate": "2026-03-28", + "cover": "https://i.imgur.gg/pLz6Vrf-d4v.jpg", + "explicit": true, + "numberOfTracks": 18 + }, + { + "type": "artist", + "id": 10932434, + "name": "black midi", + "picture": "025bd6b8-be5f-4c95-bda0-e313f94cfdf5" + }, + { + "type": "album", + "id": 310478316, + "title": "Lone Wolf", + "artist": { "id": 4225137, "name": "Jay Lewis" }, + "releaseDate": "2023-09-08", + "cover": "b1c432b6-2e3a-483f-9026-853741756ad3", + "explicit": true, + "audioQuality": "LOSSLESS", + "mediaMetadata": { "tags": ["LOSSLESS"] } + }, + { + "type": "album", + "id": 509288326, + "title": "BBY LOBOTOMY", + "artist": { "id": 48966543, "name": "Percatric" }, + "releaseDate": "2026-03-20", + "cover": "9b0bbcef-1cc2-44ef-b741-40880cea49b9", + "explicit": true, + "audioQuality": "LOSSLESS", + "mediaMetadata": { "tags": ["LOSSLESS", "HIRES_LOSSLESS"] } + }, + { + "type": "album", + "id": 101715365, + "title": "Icedancer", + "artist": { "id": 5555246, "name": "Bladee" }, + "releaseDate": "2018-12-29", + "cover": "11465814-2e0b-4d46-8a72-5df21f1ac0b8", + "explicit": true, + "audioQuality": "LOSSLESS", + "mediaMetadata": { "tags": ["LOSSLESS"] } + }, { "type": "album", "id": 18083938,