@torrent-tv/proxy 2.9.118 → 2.9.119

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.9.119
2
+
3
+ - **Fix**: The progress report says the height the viewer is actually watching, not only the one an encoder is producing. It was zero whenever the video was copied — which is most sessions — so the quality menu read a bare "Auto" in exactly the case it was built to explain. Copying reports the source height, re-encoding reports the rung the proxy has settled on.
4
+
1
5
  ## 2.9.118
2
6
 
3
7
  - **New**: Suspending the encoder says what the decision was taken on — where the viewer is, how far the unbroken run of segments reaches from there, and how many segment files the session directory holds. Suspending stops the only thing that reads the input, so a wrong reading here stops the download as well: measured 2026-08-06, the log announced "135s ahead of the viewer" while three segments totalling 31 s lay on disk, and neither figure could be checked against the other because the line carried no evidence. The directory keeps the segments of every run a session has had, so which of them were counted is the whole question.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@torrent-tv/proxy",
3
- "version": "2.9.118",
3
+ "version": "2.9.119",
4
4
  "description": "Torrent proxy client that exposes webseed-like HTTP stream endpoint.",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "publishConfig": {
@@ -3494,13 +3494,16 @@ export class HlsSessionManager {
3494
3494
  segmentDurationSec: this.segmentDurationSec,
3495
3495
  speed: session.progress.speed,
3496
3496
  outputMbps,
3497
- // The height being produced RIGHT NOW. On automatic quality the proxy
3498
- // steps down a rung when the host cannot keep up or the viewer's link
3499
- // cannot carry the stream, and the menu said only "Auto" so the one
3500
- // question it raises, what am I actually watching, had no answer
3501
- // anywhere. Zero when the video is copied, because then nothing is being
3502
- // chosen: the source's own height is what plays.
3503
- currentHeight: session.transcodeVideo ? (session.encodeHeight ?? 0) : 0,
3497
+ // The height the viewer is WATCHING right now, which is what the menu
3498
+ // has to say next to "Auto". When the video is re-encoded that is the
3499
+ // rung the proxy has settled on it steps down when the host cannot keep
3500
+ // up or the link cannot carry the stream. When the video is COPIED it is
3501
+ // the source's own height, and reporting zero there was simply wrong:
3502
+ // most sessions copy the video, so the menu read a bare "Auto" almost
3503
+ // always, which is exactly the question it was supposed to answer.
3504
+ currentHeight: session.transcodeVideo
3505
+ ? (session.encodeHeight ?? session.sourceHeight ?? 0)
3506
+ : (session.sourceHeight ?? 0),
3504
3507
  updatedAt: session.progress.updatedAt,
3505
3508
  error: session.state === "failed" ? session.lastError : ""
3506
3509
  };