@remino/jukette-soundcloud 0.4.3 → 0.5.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.
@@ -1,4 +1,4 @@
1
- /*! @remino/jukette-soundcloud v0.4.3 | (c) 2026 Rémino Rem <https://remino.net/> | ISC Licence */
1
+ /*! @remino/jukette-soundcloud v0.5.0 | (c) 2026 Rémino Rem <https://remino.net/> | ISC Licence */
2
2
  let _remino_jukette_core = require("@remino/jukette-core");
3
3
  //#region src/lib/soundcloud.ts
4
4
  var soundCloudWidgetApiUrl = "https://w.soundcloud.com/player/api.js";
@@ -144,7 +144,7 @@ var SoundCloudTrackState = class {
144
144
  await this.ensureOEmbed();
145
145
  await this.ensurePrepared();
146
146
  this.widget?.pause();
147
- this.seekTo(0);
147
+ this.seekTo(this.track.startAt ?? 0);
148
148
  this.activeTrack?.trackCallbacks.onMetadata(this.metadata ?? {});
149
149
  if (this.durationSeconds > 0) this.activeTrack?.trackCallbacks.onDuration(this.durationSeconds);
150
150
  this.activeTrack?.trackCallbacks.onProgress(this.positionSeconds, this.durationSeconds);
@@ -155,7 +155,7 @@ var SoundCloudTrackState = class {
155
155
  await this.ensurePrepared();
156
156
  if (options.isStale()) return false;
157
157
  if (!this.widget) return false;
158
- if (options.restart || this.durationSeconds > 0 && this.positionSeconds >= this.durationSeconds) this.seekTo(0);
158
+ if (options.restart || this.durationSeconds > 0 && this.positionSeconds >= this.durationSeconds) this.seekTo(this.track.startAt ?? 0);
159
159
  this.playRequested = true;
160
160
  this.activeTrack?.trackCallbacks.onStatus("Starting SoundCloud");
161
161
  this.widget.play();
@@ -1,4 +1,4 @@
1
- /*! @remino/jukette-soundcloud v0.4.3 | (c) 2026 Rémino Rem <https://remino.net/> | ISC Licence */
1
+ /*! @remino/jukette-soundcloud v0.5.0 | (c) 2026 Rémino Rem <https://remino.net/> | ISC Licence */
2
2
  import { JukettePlayableTrack, registerJuketteBackend } from "@remino/jukette-core";
3
3
  //#region src/lib/soundcloud.ts
4
4
  var soundCloudWidgetApiUrl = "https://w.soundcloud.com/player/api.js";
@@ -144,7 +144,7 @@ var SoundCloudTrackState = class {
144
144
  await this.ensureOEmbed();
145
145
  await this.ensurePrepared();
146
146
  this.widget?.pause();
147
- this.seekTo(0);
147
+ this.seekTo(this.track.startAt ?? 0);
148
148
  this.activeTrack?.trackCallbacks.onMetadata(this.metadata ?? {});
149
149
  if (this.durationSeconds > 0) this.activeTrack?.trackCallbacks.onDuration(this.durationSeconds);
150
150
  this.activeTrack?.trackCallbacks.onProgress(this.positionSeconds, this.durationSeconds);
@@ -155,7 +155,7 @@ var SoundCloudTrackState = class {
155
155
  await this.ensurePrepared();
156
156
  if (options.isStale()) return false;
157
157
  if (!this.widget) return false;
158
- if (options.restart || this.durationSeconds > 0 && this.positionSeconds >= this.durationSeconds) this.seekTo(0);
158
+ if (options.restart || this.durationSeconds > 0 && this.positionSeconds >= this.durationSeconds) this.seekTo(this.track.startAt ?? 0);
159
159
  this.playRequested = true;
160
160
  this.activeTrack?.trackCallbacks.onStatus("Starting SoundCloud");
161
161
  this.widget.play();
@@ -1,4 +1,4 @@
1
- /*! @remino/jukette-soundcloud v0.4.3 | (c) 2026 Rémino Rem <https://remino.net/> | ISC Licence */
1
+ /*! @remino/jukette-soundcloud v0.5.0 | (c) 2026 Rémino Rem <https://remino.net/> | ISC Licence */
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  let _remino_jukette_core = require("@remino/jukette-core");
4
4
  //#region src/lib/soundcloud.ts
@@ -145,7 +145,7 @@ var SoundCloudTrackState = class {
145
145
  await this.ensureOEmbed();
146
146
  await this.ensurePrepared();
147
147
  this.widget?.pause();
148
- this.seekTo(0);
148
+ this.seekTo(this.track.startAt ?? 0);
149
149
  this.activeTrack?.trackCallbacks.onMetadata(this.metadata ?? {});
150
150
  if (this.durationSeconds > 0) this.activeTrack?.trackCallbacks.onDuration(this.durationSeconds);
151
151
  this.activeTrack?.trackCallbacks.onProgress(this.positionSeconds, this.durationSeconds);
@@ -156,7 +156,7 @@ var SoundCloudTrackState = class {
156
156
  await this.ensurePrepared();
157
157
  if (options.isStale()) return false;
158
158
  if (!this.widget) return false;
159
- if (options.restart || this.durationSeconds > 0 && this.positionSeconds >= this.durationSeconds) this.seekTo(0);
159
+ if (options.restart || this.durationSeconds > 0 && this.positionSeconds >= this.durationSeconds) this.seekTo(this.track.startAt ?? 0);
160
160
  this.playRequested = true;
161
161
  this.activeTrack?.trackCallbacks.onStatus("Starting SoundCloud");
162
162
  this.widget.play();
@@ -1,4 +1,4 @@
1
- /*! @remino/jukette-soundcloud v0.4.3 | (c) 2026 Rémino Rem <https://remino.net/> | ISC Licence */
1
+ /*! @remino/jukette-soundcloud v0.5.0 | (c) 2026 Rémino Rem <https://remino.net/> | ISC Licence */
2
2
  import { JukettePlayableTrack, registerJuketteBackend } from "@remino/jukette-core";
3
3
  //#region src/lib/soundcloud.ts
4
4
  var soundCloudWidgetApiUrl = "https://w.soundcloud.com/player/api.js";
@@ -144,7 +144,7 @@ var SoundCloudTrackState = class {
144
144
  await this.ensureOEmbed();
145
145
  await this.ensurePrepared();
146
146
  this.widget?.pause();
147
- this.seekTo(0);
147
+ this.seekTo(this.track.startAt ?? 0);
148
148
  this.activeTrack?.trackCallbacks.onMetadata(this.metadata ?? {});
149
149
  if (this.durationSeconds > 0) this.activeTrack?.trackCallbacks.onDuration(this.durationSeconds);
150
150
  this.activeTrack?.trackCallbacks.onProgress(this.positionSeconds, this.durationSeconds);
@@ -155,7 +155,7 @@ var SoundCloudTrackState = class {
155
155
  await this.ensurePrepared();
156
156
  if (options.isStale()) return false;
157
157
  if (!this.widget) return false;
158
- if (options.restart || this.durationSeconds > 0 && this.positionSeconds >= this.durationSeconds) this.seekTo(0);
158
+ if (options.restart || this.durationSeconds > 0 && this.positionSeconds >= this.durationSeconds) this.seekTo(this.track.startAt ?? 0);
159
159
  this.playRequested = true;
160
160
  this.activeTrack?.trackCallbacks.onStatus("Starting SoundCloud");
161
161
  this.widget.play();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remino/jukette-soundcloud",
3
- "version": "0.4.3",
3
+ "version": "0.5.0",
4
4
  "description": "SoundCloud backend addon for jukette.",
5
5
  "type": "module",
6
6
  "license": "ISC",
@@ -36,7 +36,7 @@
36
36
  "./src/lib/soundcloud-auto.ts"
37
37
  ],
38
38
  "dependencies": {
39
- "@remino/jukette-core": "0.4.3"
39
+ "@remino/jukette-core": "0.5.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "node ../../bin/build-package.mjs && tsc -p tsconfig.build.json --emitDeclarationOnly",