Song info, save queue as playlist, sleep timer, resume long tracks

- Song info: format, bitrate, sample rate, channels, size, plays, dates, loudness and location
- Save the current queue as a playlist from the queue drawer
- Sleep timer (15 min to 2 h, or end of this song) that fades out gently;
  "end of this song" stops exactly at the end instead of starting the next one
- Songs over 20 minutes, like DJ mixes, pick up where you left off
This commit is contained in:
Christian
2026-11-19 00:49:41 -05:00
parent 559818fedd
commit 2fafd29c81
8 changed files with 203 additions and 3 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ function renderQueue() {
cover(t.art, "lt-cover"), h("div", { class: "lt-main" }, h("span", { class: "lt-title" }, t.title), h("span", { class: "lt-sub" }, t.artist)),
isNow ? h("span", { class: "flag" }, "Now") : h("button", { class: "icon-btn", "aria-label": `Remove ${t.title}`, onclick: () => Player.removeAt(i) }, icon("x")));
panel.replaceChildren(
h("div", { class: "drawer-head" }, h("h2", {}, "Queue"), h("div", { class: "row" }, next.length ? h("button", { class: "btn small ghost", onclick: () => Player.clearUpNext() }, "Clear") : null, h("button", { class: "icon-btn", "aria-label": "Close", onclick: closeDrawers }, icon("x")))),
h("div", { class: "drawer-head" }, h("h2", {}, "Queue"), h("div", { class: "row" }, Player.queue.length > 1 ? h("button", { class: "btn small ghost", title: "Save the queue as a playlist", onclick: saveQueueAsPlaylist }, icon("playlist-add"), "Save") : null, next.length ? h("button", { class: "btn small ghost", onclick: () => Player.clearUpNext() }, "Clear") : null, h("button", { class: "icon-btn", "aria-label": "Close", onclick: closeDrawers }, icon("x")))),
h("div", { class: "drawer-body" },
now ? row(now, Player.index, true) : h("p", { class: "muted pad" }, "Nothing playing."),
next.length ? h("h3", { class: "q-sub" }, `Up next · ${next.length}`) : null,