Web: cleaner player, iOS-style mixer, NO STEMS tags, cache-busting
Mixer rows mirror iOS (stem colours, percent, red M, yellow S) and update in place so taps answer at once. Karaoke toggle dropped from the mixer top (the preset covers it). Queue button moves bottom left. Badges mark songs without stems instead of with. Playlist art goes through the photo transcoder with the raw composite as fallback. No backdrop blur, lazy card rendering. stemserve stamps web assets with ?v=<build> (immutable) and sends ETags, so a plain reload picks up new builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8c8157c489
commit
a708d28788
5 files changed
+141
-48
No files matched your search
+6
-3
@@ -26,14 +26,17 @@ export async function px(srv, path, params = {}) {
|
||||
export function img(srvId, thumb, size = 300) {
|
||||
const s = server(srvId);
|
||||
if (!thumb || !s) return "";
|
||||
// Playlist composites are already images Plex renders at any size; the photo transcoder
|
||||
// can't fetch them, so ask for them directly.
|
||||
if (thumb.includes("/composite/")) return `${s.url}${thumb}${thumb.includes("?") ? "&" : "?"}width=${size}&height=${size}&X-Plex-Token=${s.token}`;
|
||||
return thumb && s
|
||||
? `${s.url}/photo/:/transcode?width=${size}&height=${size}&minSize=1&upscale=1&url=${encodeURIComponent(thumb)}&X-Plex-Token=${s.token}`
|
||||
: "";
|
||||
}
|
||||
|
||||
// Straight from Plex, no transcoder: the fallback for playlist composites.
|
||||
export function rawImg(srvId, path, size = 300) {
|
||||
const s = server(srvId);
|
||||
return s && path ? `${s.url}${path}${path.includes("?") ? "&" : "?"}width=${size}&height=${size}&X-Plex-Token=${s.token}` : "";
|
||||
}
|
||||
|
||||
export function partUrl(t) {
|
||||
const s = server(t.srv);
|
||||
return s && t.part ? `${s.url}${t.part}?X-Plex-Token=${s.token}` : null;
|
||||
|
||||
Reference in new issue
Block a user