@torrent-tv/proxy 2.101.32 → 2.101.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@torrent-tv/proxy",
3
- "version": "2.101.32",
3
+ "version": "2.101.33",
4
4
  "description": "Torrent proxy client that exposes webseed-like HTTP stream endpoint.",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "repository": {
@@ -203,9 +203,11 @@ export class ViewerRequests {
203
203
  const changed = featuresChanged || activeEstimateChanged;
204
204
  if (sameWait && changed) context.revision += 1;
205
205
  this.#pruneEarlyWaits();
206
- const totalSeconds = Number.isFinite(activeTotalSeconds)
207
- ? activeTotalSeconds
208
- : this.#host.firstFrameSecondsOf?.(context.features) ?? null;
206
+ const progressHasComponentForecast = Object.hasOwn(processing, "firstRequiredSegmentsSeconds");
207
+ let totalSeconds = activeTotalSeconds;
208
+ if (!Number.isFinite(totalSeconds) && !progressHasComponentForecast) {
209
+ totalSeconds = this.#host.firstFrameSecondsOf?.(context.features) ?? null;
210
+ }
209
211
  const seconds = earlyWaitRemainingSeconds(totalSeconds, elapsedMs);
210
212
  if (!Number.isFinite(seconds) || seconds < 0) return null;
211
213
  return { version: 1, waitId, revision: context.revision, remainingSeconds: seconds, ageMs: 0 };