nixamp 0.7.33 → 0.7.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.d.ts CHANGED
@@ -150,6 +150,15 @@ export type Loaded = Track & {
150
150
  * the source is added, rather than guessed from a URL that has no opinion.
151
151
  */
152
152
  picture?: boolean;
153
+ /**
154
+ * Whether a person named this, rather than a tagger.
155
+ *
156
+ * Tags are read in the background and merged in when they arrive, which is
157
+ * right for a library and wrong for a channel: somebody called it "MLB
158
+ * Network", ffprobe came back a moment later with "932", and the name they
159
+ * chose vanished on its own.
160
+ */
161
+ named?: boolean;
153
162
  };
154
163
  /** What the HTTP layer needs from a player. Tests hand it a fake. */
155
164
  export interface Engine {
package/dist/server.js CHANGED
@@ -686,6 +686,9 @@ export class PlayerEngine {
686
686
  ...tagged,
687
687
  ...(track.group ? { group: track.group } : {}),
688
688
  ...(track.folder ? { folder: track.folder } : {}),
689
+ // A name somebody chose outlives whatever the stream says about
690
+ // itself. It called itself "932".
691
+ ...(track.named ? { title: track.title, named: true } : {}),
689
692
  };
690
693
  });
691
694
  if (!changed)
@@ -2162,7 +2165,7 @@ export function createHandler(engine, options) {
2162
2165
  // Named by hand, so a single channel says what it is rather than what
2163
2166
  // its URL ends in.
2164
2167
  if (called !== "" && tracks.length === 1 && tracks[0]) {
2165
- tracks = [{ ...tracks[0], title: called }];
2168
+ tracks = [{ ...tracks[0], title: called, named: true }];
2166
2169
  }
2167
2170
  let added = tracks.length;
2168
2171
  if (replacing) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nixamp",
3
- "version": "0.7.33",
3
+ "version": "0.7.34",
4
4
  "description": "It really whips the terminal's ass. A Winamp-shaped audio player for your terminal.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/server.ts CHANGED
@@ -426,6 +426,15 @@ export type Loaded = Track & {
426
426
  * the source is added, rather than guessed from a URL that has no opinion.
427
427
  */
428
428
  picture?: boolean;
429
+ /**
430
+ * Whether a person named this, rather than a tagger.
431
+ *
432
+ * Tags are read in the background and merged in when they arrive, which is
433
+ * right for a library and wrong for a channel: somebody called it "MLB
434
+ * Network", ffprobe came back a moment later with "932", and the name they
435
+ * chose vanished on its own.
436
+ */
437
+ named?: boolean;
429
438
  };
430
439
 
431
440
  /** What the HTTP layer needs from a player. Tests hand it a fake. */
@@ -878,6 +887,9 @@ export class PlayerEngine implements Engine {
878
887
  ...tagged,
879
888
  ...(track.group ? { group: track.group } : {}),
880
889
  ...(track.folder ? { folder: track.folder } : {}),
890
+ // A name somebody chose outlives whatever the stream says about
891
+ // itself. It called itself "932".
892
+ ...(track.named ? { title: track.title, named: true } : {}),
881
893
  };
882
894
  });
883
895
  if (!changed) return;
@@ -2576,7 +2588,7 @@ export function createHandler(engine: Engine, options: HandlerOptions) {
2576
2588
  // Named by hand, so a single channel says what it is rather than what
2577
2589
  // its URL ends in.
2578
2590
  if (called !== "" && tracks.length === 1 && tracks[0]) {
2579
- tracks = [{ ...tracks[0], title: called }];
2591
+ tracks = [{ ...tracks[0], title: called, named: true }];
2580
2592
  }
2581
2593
 
2582
2594
  let added = tracks.length;
package/web/dist/sw.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /* nixamp service worker — generated, do not edit */
2
- const CACHE = "nixamp-1788983141065";
2
+ const CACHE = "nixamp-1788983625260";
3
3
  const PRECACHE = [
4
4
  "/",
5
5
  "/apple-touch-icon.png",