fluncle 0.284.0 → 0.285.0

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.
Files changed (2) hide show
  1. package/bin/fluncle.mjs +76 -4
  2. package/package.json +1 -1
package/bin/fluncle.mjs CHANGED
@@ -704,7 +704,7 @@ function parseVersion(version) {
704
704
  var currentVersion;
705
705
  var init_version = __esm(() => {
706
706
  init_output();
707
- currentVersion = "0.284.0".trim() ? "0.284.0".trim() : "0.1.0";
707
+ currentVersion = "0.285.0".trim() ? "0.285.0".trim() : "0.1.0";
708
708
  });
709
709
 
710
710
  // src/update-notifier.ts
@@ -11145,7 +11145,7 @@ function parseVersion2(version) {
11145
11145
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
11146
11146
  var init_version2 = __esm(() => {
11147
11147
  init_output();
11148
- currentVersion2 = "0.284.0".trim() ? "0.284.0".trim() : "0.1.0";
11148
+ currentVersion2 = "0.285.0".trim() ? "0.285.0".trim() : "0.1.0";
11149
11149
  });
11150
11150
 
11151
11151
  // ../../packages/registry/src/index.ts
@@ -31603,7 +31603,40 @@ function musicbrainzDetailLines(mb) {
31603
31603
  lines.push(` first credits: ${mb.census.firstCredits.map((credit) => `${credit.artistName} (${credit.artistMbid}) ${credit.recordings}`).join("; ")}; uncredited ${mb.census.uncreditedRecordings}`);
31604
31604
  }
31605
31605
  for (const release of mb?.releases?.releases ?? []) {
31606
- lines.push(` release: ${release.artist} — ${release.title}; catno ${release.catno ?? "none"}; ${release.date ?? "undated"}`);
31606
+ lines.push(` release: ${release.artist} — ${release.title}; catno ${release.catno ?? "none"}; ${release.date ?? "undated"}; format ${release.format ?? "unknown"}; status ${release.status ?? "unknown"}; barcode ${release.barcode ?? "none"}`);
31607
+ }
31608
+ return lines;
31609
+ }
31610
+ function discogsDetailLines(discogs) {
31611
+ const lines = [];
31612
+ if (discogs?.label) {
31613
+ lines.push(` profile: ${discogs.label.profile || "none"}`);
31614
+ lines.push(` parent: ${discogs.label.parentLabel ? `${discogs.label.parentLabel.name} (${discogs.label.parentLabel.id})` : "none"}; sublabels: ${discogs.label.sublabels.join(", ") || "none"}`);
31615
+ }
31616
+ if (discogs?.releases) {
31617
+ lines.push(` ${discogs.releases.releaseCount} releases; top artists: ${discogs.releases.topArtists.map((artist) => `${artist.name} ${artist.releases}`).join(", ") || "none"}`);
31618
+ for (const release of discogs.releases.sample) {
31619
+ lines.push(` release: ${release.artist} — ${release.title}; catno ${release.catno ?? "none"}; year ${release.year ?? "unknown"}; format ${release.format ?? "unknown"}`);
31620
+ }
31621
+ }
31622
+ if (discogs?.styles) {
31623
+ lines.push(` genres: ${countLine(discogs.styles.genres, discogs.styles.genres.length) || "none"}`);
31624
+ lines.push(` all styles: ${countLine(discogs.styles.styles, discogs.styles.styles.length) || "none"}`);
31625
+ }
31626
+ return lines;
31627
+ }
31628
+ function beatportDetailLines(beatport) {
31629
+ const lines = [];
31630
+ if (beatport) {
31631
+ lines.push(` subgenres: ${countLine(beatport.subGenres, beatport.subGenres.length) || "none"}`);
31632
+ lines.push(` top artists: ${countLine(beatport.topArtists, beatport.topArtists.length) || "none"}`);
31633
+ }
31634
+ return lines;
31635
+ }
31636
+ function appleDetailLines(apple) {
31637
+ const lines = [];
31638
+ for (const release of apple?.releases ?? []) {
31639
+ lines.push(release.found ? ` Apple match: ${release.mbTitle}; barcode ${release.barcode}; genre ${release.primaryGenreName ?? "unknown"}; artist ${release.artistName ?? "unknown"}; title ${release.collectionName ?? "unknown"}; copyright ${release.copyright ?? "unknown"}` : ` Apple unmatched: ${release.mbTitle}; barcode ${release.barcode}`);
31607
31640
  }
31608
31641
  return lines;
31609
31642
  }
@@ -31628,12 +31661,15 @@ function labelEvidenceLines(evidence) {
31628
31661
  const dg = discogs.data;
31629
31662
  const dgDetail = dg?.styles ? `styles: ${countLine(dg.styles.styles, 6)} (${dg.styles.releasesRead} releases)` : dg?.candidates ? `unverified candidates: ${dg.candidates.map((c) => c.title).join(", ") || "none"}` : discogs.note;
31630
31663
  lines.push(` discogs: ${discogs.status}${dgDetail ? ` — ${dgDetail}` : ""}`);
31664
+ lines.push(...discogsDetailLines(dg));
31631
31665
  const bp = beatport.data;
31632
31666
  const bpDetail = bp ? `${bp.trackCount} tracks; genres: ${bp.genres.slice(0, 5).map((genre) => `${genre.name} ${Math.round(genre.share * 100)}%`).join(", ")}` : beatport.note;
31633
31667
  lines.push(` beatport: ${beatport.status}${bpDetail ? ` — ${bpDetail}` : ""}`);
31668
+ lines.push(...beatportDetailLines(bp));
31634
31669
  const ap = apple.data;
31635
31670
  const apDetail = ap ? `${ap.found}/${ap.looked} found; genres: ${countLine(ap.genres, 4) || "none"}` : apple.note;
31636
31671
  lines.push(` apple: ${apple.status}${apDetail ? ` — ${apDetail}` : ""}`);
31672
+ lines.push(...appleDetailLines(ap));
31637
31673
  for (const failure of evidence.errors) {
31638
31674
  lines.push(` ! ${failure.source}: ${failure.message}`);
31639
31675
  }
@@ -32317,7 +32353,40 @@ function musicbrainzDetailLines2(mb) {
32317
32353
  lines.push(` first credits: ${mb.census.firstCredits.map((credit) => `${credit.artistName} (${credit.artistMbid}) ${credit.recordings}`).join("; ")}; uncredited ${mb.census.uncreditedRecordings}`);
32318
32354
  }
32319
32355
  for (const release of mb?.releases?.releases ?? []) {
32320
- lines.push(` release: ${release.artist} — ${release.title}; catno ${release.catno ?? "none"}; ${release.date ?? "undated"}`);
32356
+ lines.push(` release: ${release.artist} — ${release.title}; catno ${release.catno ?? "none"}; ${release.date ?? "undated"}; format ${release.format ?? "unknown"}; status ${release.status ?? "unknown"}; barcode ${release.barcode ?? "none"}`);
32357
+ }
32358
+ return lines;
32359
+ }
32360
+ function discogsDetailLines2(discogs) {
32361
+ const lines = [];
32362
+ if (discogs?.label) {
32363
+ lines.push(` profile: ${discogs.label.profile || "none"}`);
32364
+ lines.push(` parent: ${discogs.label.parentLabel ? `${discogs.label.parentLabel.name} (${discogs.label.parentLabel.id})` : "none"}; sublabels: ${discogs.label.sublabels.join(", ") || "none"}`);
32365
+ }
32366
+ if (discogs?.releases) {
32367
+ lines.push(` ${discogs.releases.releaseCount} releases; top artists: ${discogs.releases.topArtists.map((artist) => `${artist.name} ${artist.releases}`).join(", ") || "none"}`);
32368
+ for (const release of discogs.releases.sample) {
32369
+ lines.push(` release: ${release.artist} — ${release.title}; catno ${release.catno ?? "none"}; year ${release.year ?? "unknown"}; format ${release.format ?? "unknown"}`);
32370
+ }
32371
+ }
32372
+ if (discogs?.styles) {
32373
+ lines.push(` genres: ${countLine2(discogs.styles.genres, discogs.styles.genres.length) || "none"}`);
32374
+ lines.push(` all styles: ${countLine2(discogs.styles.styles, discogs.styles.styles.length) || "none"}`);
32375
+ }
32376
+ return lines;
32377
+ }
32378
+ function beatportDetailLines2(beatport) {
32379
+ const lines = [];
32380
+ if (beatport) {
32381
+ lines.push(` subgenres: ${countLine2(beatport.subGenres, beatport.subGenres.length) || "none"}`);
32382
+ lines.push(` top artists: ${countLine2(beatport.topArtists, beatport.topArtists.length) || "none"}`);
32383
+ }
32384
+ return lines;
32385
+ }
32386
+ function appleDetailLines2(apple) {
32387
+ const lines = [];
32388
+ for (const release of apple?.releases ?? []) {
32389
+ lines.push(release.found ? ` Apple match: ${release.mbTitle}; barcode ${release.barcode}; genre ${release.primaryGenreName ?? "unknown"}; artist ${release.artistName ?? "unknown"}; title ${release.collectionName ?? "unknown"}; copyright ${release.copyright ?? "unknown"}` : ` Apple unmatched: ${release.mbTitle}; barcode ${release.barcode}`);
32321
32390
  }
32322
32391
  return lines;
32323
32392
  }
@@ -32342,12 +32411,15 @@ function labelEvidenceLines2(evidence) {
32342
32411
  const dg = discogs.data;
32343
32412
  const dgDetail = dg?.styles ? `styles: ${countLine2(dg.styles.styles, 6)} (${dg.styles.releasesRead} releases)` : dg?.candidates ? `unverified candidates: ${dg.candidates.map((c) => c.title).join(", ") || "none"}` : discogs.note;
32344
32413
  lines.push(` discogs: ${discogs.status}${dgDetail ? ` — ${dgDetail}` : ""}`);
32414
+ lines.push(...discogsDetailLines2(dg));
32345
32415
  const bp = beatport.data;
32346
32416
  const bpDetail = bp ? `${bp.trackCount} tracks; genres: ${bp.genres.slice(0, 5).map((genre) => `${genre.name} ${Math.round(genre.share * 100)}%`).join(", ")}` : beatport.note;
32347
32417
  lines.push(` beatport: ${beatport.status}${bpDetail ? ` — ${bpDetail}` : ""}`);
32418
+ lines.push(...beatportDetailLines2(bp));
32348
32419
  const ap = apple.data;
32349
32420
  const apDetail = ap ? `${ap.found}/${ap.looked} found; genres: ${countLine2(ap.genres, 4) || "none"}` : apple.note;
32350
32421
  lines.push(` apple: ${apple.status}${apDetail ? ` — ${apDetail}` : ""}`);
32422
+ lines.push(...appleDetailLines2(ap));
32351
32423
  for (const failure of evidence.errors) {
32352
32424
  lines.push(` ! ${failure.source}: ${failure.message}`);
32353
32425
  }
package/package.json CHANGED
@@ -31,5 +31,5 @@
31
31
  "url": "git+https://github.com/mauricekleine/fluncle.git"
32
32
  },
33
33
  "type": "module",
34
- "version": "0.284.0"
34
+ "version": "0.285.0"
35
35
  }