fluncle 0.209.0 → 0.210.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 +18 -6
- package/package.json +1 -1
package/bin/fluncle.mjs
CHANGED
|
@@ -610,7 +610,7 @@ function parseVersion(version) {
|
|
|
610
610
|
var currentVersion;
|
|
611
611
|
var init_version = __esm(() => {
|
|
612
612
|
init_output();
|
|
613
|
-
currentVersion = "0.
|
|
613
|
+
currentVersion = "0.210.0".trim() ? "0.210.0".trim() : "0.1.0";
|
|
614
614
|
});
|
|
615
615
|
|
|
616
616
|
// src/update-notifier.ts
|
|
@@ -2452,7 +2452,7 @@ function parseVersion2(version) {
|
|
|
2452
2452
|
var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
|
|
2453
2453
|
var init_version2 = __esm(() => {
|
|
2454
2454
|
init_output();
|
|
2455
|
-
currentVersion2 = "0.
|
|
2455
|
+
currentVersion2 = "0.210.0".trim() ? "0.210.0".trim() : "0.1.0";
|
|
2456
2456
|
});
|
|
2457
2457
|
|
|
2458
2458
|
// ../../packages/registry/src/index.ts
|
|
@@ -11082,36 +11082,48 @@ async function runBackfillArtistImages(options, backfillArtistImagesCommand2) {
|
|
|
11082
11082
|
const failed = [];
|
|
11083
11083
|
const skipped = [];
|
|
11084
11084
|
let cursor;
|
|
11085
|
+
let budgetLimited = false;
|
|
11086
|
+
let checkedCount = 0;
|
|
11085
11087
|
let dryRun = options.dryRun;
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
+
let queueDepth = 0;
|
|
11089
|
+
let rateLimited = false;
|
|
11090
|
+
while (filled.length < limit) {
|
|
11091
|
+
const remaining = limit - filled.length;
|
|
11088
11092
|
const result = await backfillArtistImagesCommand2(remaining, options.dryRun, cursor);
|
|
11093
|
+
budgetLimited ||= result.budgetLimited;
|
|
11094
|
+
checkedCount += result.checkedCount;
|
|
11089
11095
|
dryRun = result.dryRun;
|
|
11090
11096
|
filled.push(...result.filled);
|
|
11091
11097
|
failed.push(...result.failed);
|
|
11098
|
+
queueDepth = result.queueDepth;
|
|
11099
|
+
rateLimited ||= result.rateLimited;
|
|
11092
11100
|
skipped.push(...result.skipped);
|
|
11093
11101
|
if (!options.json) {
|
|
11094
11102
|
const verb2 = result.dryRun ? "would fill" : "filled";
|
|
11095
11103
|
console.log(` \u2026${verb2} ${result.filledCount}; ${result.failedCount} failed; ${result.skippedCount} without an image`);
|
|
11096
11104
|
}
|
|
11097
|
-
if (result.nextCursor === null) {
|
|
11105
|
+
if (result.nextCursor === null || result.rateLimited || result.budgetLimited) {
|
|
11098
11106
|
break;
|
|
11099
11107
|
}
|
|
11100
11108
|
cursor = result.nextCursor;
|
|
11101
11109
|
}
|
|
11102
11110
|
if (options.json) {
|
|
11103
11111
|
printSweepJson({
|
|
11112
|
+
budgetLimited,
|
|
11113
|
+
checkedCount,
|
|
11104
11114
|
dryRun,
|
|
11105
11115
|
failed,
|
|
11106
11116
|
filled,
|
|
11107
11117
|
filledCount: filled.length,
|
|
11118
|
+
queueDepth,
|
|
11119
|
+
rateLimited,
|
|
11108
11120
|
skipped,
|
|
11109
11121
|
skippedCount: skipped.length
|
|
11110
11122
|
}, failed.length);
|
|
11111
11123
|
return;
|
|
11112
11124
|
}
|
|
11113
11125
|
const verb = dryRun ? "Would fill" : "Filled";
|
|
11114
|
-
console.log(`${verb} ${filled.length} artist avatar(s); ${failed.length} failed; ${skipped.length} without a Spotify image.`);
|
|
11126
|
+
console.log(`${verb} ${filled.length} artist avatar(s); checked ${checkedCount}; ${failed.length} failed; ${skipped.length} without a Spotify image; ${queueDepth} queued.`);
|
|
11115
11127
|
for (const artistId of filled) {
|
|
11116
11128
|
console.log(` ${artistId}`);
|
|
11117
11129
|
}
|
package/package.json
CHANGED