Web: Plex playlist editing, offline art, glass search, NO STEMS tag, artist header fix

- Edit/Rename/Delete on Plex playlists, drag-to-reorder edit mode with the iOS
  remove-then-move-after commit, Remove from playlist, Add to Plex playlists
- Downloads store art blobs with each song and group so it shows offline
- Search box gets a tinted glass blur
- NO STEMS tag restyled and aligned in rows and cards
- Albums header on the artist page no longer overlaps the play button

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-11-20 17:29:03 -08:00
1 parent 3ecfdaa73b
commit 0ef4c650d1
4 files changed
+149 -24

No files matched your search

+19 -1
View File
@@ -23,6 +23,24 @@ export async function px(srv, path, params = {}) {
return (await r.json()).MediaContainer || {};
}
// Writes (playlist edits). Plex answers some of these with an empty body.
export async function pxSend(srv, method, path, params = {}) {
if (typeof srv === "string") srv = server(srv);
if (!srv) throw new Error("That Plex server isn't set up any more");
const u = new URL(srv.url + path, location.href);
for (const [k, v] of Object.entries(params)) if (v != null) u.searchParams.set(k, v);
const r = await fetch(u, { method, headers: headers(srv.token), signal: AbortSignal.timeout(15000) });
if (!r.ok) throw new Error(`Plex ${r.status} from ${srv.name}`);
const txt = await r.text();
try { return JSON.parse(txt).MediaContainer || {}; } catch { return {}; }
}
// The library uri Plex playlists take for a set of items, like iOS PlexServer.itemsURI.
export async function plexUri(srv, keys) {
if (typeof srv === "string") srv = server(srv);
if (!srv.mid) srv.mid = (await px(srv, "/identity")).machineIdentifier;
return `server://${srv.mid}/com.plexapp.plugins.library/library/metadata/${keys.join(",")}`;
}
export function img(srvId, thumb, size = 300) {
const s = server(srvId);
if (!thumb || !s) return "";
@@ -49,7 +67,7 @@ export function track(srvId, m) {
title: m.title, artist: m.originalTitle || m.grandparentTitle || "", album: m.parentTitle || "",
albumKey: m.parentRatingKey, artistKey: m.grandparentRatingKey,
thumb: m.thumb || m.parentThumb || m.grandparentThumb, duration: m.duration || part?.duration || 0,
part: part?.key, file: part?.file, index: m.index,
part: part?.key, file: part?.file, index: m.index, pid: m.playlistItemID,
meta: { titleSort: m.titleSort, addedAt: m.addedAt, lastViewedAt: m.lastViewedAt, viewCount: m.viewCount, userRating: m.userRating },
};
}