fluncle 0.126.0 → 0.127.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 +11 -3
  2. package/package.json +1 -1
package/bin/fluncle.mjs CHANGED
@@ -462,6 +462,10 @@ function versionMatches(findingTitle, candidateTitle) {
462
462
  }
463
463
  return !candidateIsRemix;
464
464
  }
465
+ function r2PublicUrl(base, key) {
466
+ const path2 = key.split("/").map(encodeURIComponent).join("/");
467
+ return `${base}/${path2}`;
468
+ }
465
469
  function mixcloudSections(members) {
466
470
  return members.filter((member) => member.startMs != null).sort((a, b) => a.startMs - b.startMs).map((member) => ({
467
471
  artist: member.artists.join(", "),
@@ -557,7 +561,7 @@ function parseVersion(version) {
557
561
  var currentVersion;
558
562
  var init_version = __esm(() => {
559
563
  init_output();
560
- currentVersion = "0.126.0".trim() ? "0.126.0".trim() : "0.1.0";
564
+ currentVersion = "0.127.0".trim() ? "0.127.0".trim() : "0.1.0";
561
565
  });
562
566
 
563
567
  // src/update-notifier.ts
@@ -2185,7 +2189,7 @@ function parseVersion2(version) {
2185
2189
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
2186
2190
  var init_version2 = __esm(() => {
2187
2191
  init_output();
2188
- currentVersion2 = "0.126.0".trim() ? "0.126.0".trim() : "0.1.0";
2192
+ currentVersion2 = "0.127.0".trim() ? "0.127.0".trim() : "0.1.0";
2189
2193
  });
2190
2194
 
2191
2195
  // ../../packages/registry/src/index.ts
@@ -3753,6 +3757,9 @@ async function previewArchiveBackfillCommand(options) {
3753
3757
  if (result.archived.length >= (options.limit ?? Number.POSITIVE_INFINITY)) {
3754
3758
  break;
3755
3759
  }
3760
+ if (track.type === "mixtape") {
3761
+ continue;
3762
+ }
3756
3763
  if (!track.logId) {
3757
3764
  result.skipped.push({ reason: "no_log_id", trackId: track.trackId });
3758
3765
  continue;
@@ -4571,7 +4578,7 @@ async function resolveClipSource(clip) {
4571
4578
  throw new CliError2("recording_not_staged", `Recording ${clip.recordingId} has no staged set video`);
4572
4579
  }
4573
4580
  return {
4574
- setUrl: `${FOUND_BASE3}/${recording.r2Key.split("/").map(encodeURIComponent).join("/")}`
4581
+ setUrl: r2PublicUrl(FOUND_BASE3, recording.r2Key)
4575
4582
  };
4576
4583
  }
4577
4584
  async function clipCutCommand(clipId, onProgress = () => {}) {
@@ -4649,6 +4656,7 @@ async function runClipCut(options) {
4649
4656
  }
4650
4657
  var FOUND_BASE3 = "https://found.fluncle.com", CLIP_WIDTH = 1080, CLIP_HEIGHT = 1920, CLIP_CRF = 21, CLIP_MAXRATE = "10M", CLIP_BUFSIZE = "20M", CLIP_AUDIO_BITRATE = "192k", MAX_CLIP_BYTES;
4651
4658
  var init_clips = __esm(() => {
4659
+ init_util();
4652
4660
  init_api();
4653
4661
  init_output();
4654
4662
  MAX_CLIP_BYTES = 100 * 1024 * 1024;
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.126.0"
34
+ "version": "0.127.0"
35
35
  }