fluncle 0.53.0 → 0.54.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.
- package/bin/fluncle.mjs +15 -7
- package/package.json +1 -1
package/bin/fluncle.mjs
CHANGED
|
@@ -423,7 +423,7 @@ function parseVersion(version) {
|
|
|
423
423
|
var currentVersion;
|
|
424
424
|
var init_version = __esm(() => {
|
|
425
425
|
init_output();
|
|
426
|
-
currentVersion = "0.
|
|
426
|
+
currentVersion = "0.54.0".trim() ? "0.54.0".trim() : "0.1.0";
|
|
427
427
|
});
|
|
428
428
|
|
|
429
429
|
// src/update-notifier.ts
|
|
@@ -1912,7 +1912,7 @@ function parseVersion2(version) {
|
|
|
1912
1912
|
var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
|
|
1913
1913
|
var init_version2 = __esm(() => {
|
|
1914
1914
|
init_output();
|
|
1915
|
-
currentVersion2 = "0.
|
|
1915
|
+
currentVersion2 = "0.54.0".trim() ? "0.54.0".trim() : "0.1.0";
|
|
1916
1916
|
});
|
|
1917
1917
|
|
|
1918
1918
|
// src/commands/track.ts
|
|
@@ -5707,6 +5707,7 @@ async function runBackfillLastfm(options, backfillLastfmCommand2) {
|
|
|
5707
5707
|
const limit = parseListLimit(options.limit);
|
|
5708
5708
|
const loved = [];
|
|
5709
5709
|
const failed = [];
|
|
5710
|
+
const skipped = [];
|
|
5710
5711
|
let cursor;
|
|
5711
5712
|
let dryRun = options.dryRun;
|
|
5712
5713
|
while (loved.length + failed.length < limit) {
|
|
@@ -5715,9 +5716,10 @@ async function runBackfillLastfm(options, backfillLastfmCommand2) {
|
|
|
5715
5716
|
dryRun = result.dryRun;
|
|
5716
5717
|
loved.push(...result.loved);
|
|
5717
5718
|
failed.push(...result.failed);
|
|
5719
|
+
skipped.push(...result.skipped);
|
|
5718
5720
|
if (!options.json) {
|
|
5719
5721
|
const verb2 = result.dryRun ? "Would love" : "Loved";
|
|
5720
|
-
console.log(` \u2026${verb2.toLowerCase()} ${result.lovedCount}; ${result.failedCount} failed`);
|
|
5722
|
+
console.log(` \u2026${verb2.toLowerCase()} ${result.lovedCount}; ${result.failedCount} failed; ${result.skippedCount} skipped`);
|
|
5721
5723
|
}
|
|
5722
5724
|
if (result.nextCursor === null) {
|
|
5723
5725
|
break;
|
|
@@ -5731,12 +5733,14 @@ async function runBackfillLastfm(options, backfillLastfmCommand2) {
|
|
|
5731
5733
|
failedCount: failed.length,
|
|
5732
5734
|
loved,
|
|
5733
5735
|
lovedCount: loved.length,
|
|
5734
|
-
ok: true
|
|
5736
|
+
ok: true,
|
|
5737
|
+
skipped,
|
|
5738
|
+
skippedCount: skipped.length
|
|
5735
5739
|
});
|
|
5736
5740
|
return;
|
|
5737
5741
|
}
|
|
5738
5742
|
const verb = dryRun ? "Would love" : "Loved";
|
|
5739
|
-
console.log(`${verb} ${loved.length} finding(s) on Last.fm; ${failed.length} failed.`);
|
|
5743
|
+
console.log(`${verb} ${loved.length} finding(s) on Last.fm; ${failed.length} failed; ${skipped.length} skipped.`);
|
|
5740
5744
|
for (const logId of loved) {
|
|
5741
5745
|
console.log(` ${logId}`);
|
|
5742
5746
|
}
|
|
@@ -5748,6 +5752,7 @@ async function runBackfillDiscogs(options, backfillDiscogsCommand2) {
|
|
|
5748
5752
|
const limit = parseListLimit(options.limit);
|
|
5749
5753
|
const resolved = [];
|
|
5750
5754
|
const unresolved = [];
|
|
5755
|
+
const skipped = [];
|
|
5751
5756
|
let cursor;
|
|
5752
5757
|
let dryRun = options.dryRun;
|
|
5753
5758
|
while (resolved.length + unresolved.length < limit) {
|
|
@@ -5756,9 +5761,10 @@ async function runBackfillDiscogs(options, backfillDiscogsCommand2) {
|
|
|
5756
5761
|
dryRun = result.dryRun;
|
|
5757
5762
|
resolved.push(...result.resolved);
|
|
5758
5763
|
unresolved.push(...result.unresolved);
|
|
5764
|
+
skipped.push(...result.skipped);
|
|
5759
5765
|
if (!options.json) {
|
|
5760
5766
|
const verb2 = result.dryRun ? "would resolve" : "resolved";
|
|
5761
|
-
console.log(` \u2026${verb2} ${result.resolvedCount}; ${result.unresolvedCount} unresolved`);
|
|
5767
|
+
console.log(` \u2026${verb2} ${result.resolvedCount}; ${result.unresolvedCount} unresolved; ${result.skippedCount} skipped`);
|
|
5762
5768
|
}
|
|
5763
5769
|
if (result.nextCursor === null) {
|
|
5764
5770
|
break;
|
|
@@ -5771,13 +5777,15 @@ async function runBackfillDiscogs(options, backfillDiscogsCommand2) {
|
|
|
5771
5777
|
ok: true,
|
|
5772
5778
|
resolved,
|
|
5773
5779
|
resolvedCount: resolved.length,
|
|
5780
|
+
skipped,
|
|
5781
|
+
skippedCount: skipped.length,
|
|
5774
5782
|
unresolved,
|
|
5775
5783
|
unresolvedCount: unresolved.length
|
|
5776
5784
|
});
|
|
5777
5785
|
return;
|
|
5778
5786
|
}
|
|
5779
5787
|
const verb = dryRun ? "Would resolve" : "Resolved";
|
|
5780
|
-
console.log(`${verb} ${resolved.length} Discogs release id(s); ${unresolved.length} unresolved.`);
|
|
5788
|
+
console.log(`${verb} ${resolved.length} Discogs release id(s); ${unresolved.length} unresolved; ${skipped.length} skipped.`);
|
|
5781
5789
|
for (const item of resolved) {
|
|
5782
5790
|
const master = item.masterId ? ` (master ${item.masterId})` : "";
|
|
5783
5791
|
console.log(` ${item.logId}: release ${item.releaseId}${master}`);
|
package/package.json
CHANGED