@torrent-tv/proxy 2.99.6 → 2.99.7

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.99.6",
3
+ "version": "2.99.7",
4
4
  "description": "Torrent proxy client that exposes webseed-like HTTP stream endpoint.",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "repository": {
@@ -653,16 +653,15 @@ export class MatroskaContainer extends Container {
653
653
  * One preceding cluster retains preroll; one following cluster covers demux
654
654
  * lookahead beyond the presentation cut. No packet payload is parsed here.
655
655
  */
656
- async supportsOriginalSourceRanges(interval = null) {
656
+ async supportsOriginalSourceRanges() {
657
657
  const cues = await this.readCues();
658
658
  if (!cues?.points.length) return false;
659
659
  const video = ContainerTrack.firstUsable(await this.readTracks(), "video");
660
- // Sound alone is read from its own packets, as an AVI's is
661
- // (`AviContainer`). From the original file it was given whole clusters,
662
- // picture included: 260 MB for 23 pieces of a soundtrack, 38 MB for one of
663
- // 171 KB, on Home Assistant (r44, r46, torrent-tv/meta#178). Asked of the
664
- // file as a whole, the answer is the picture's.
665
- if (video && interval?.trackIds?.length && !interval.trackIds.includes(video.trackNumber)) return false;
660
+ // A soundtrack alone is read from the original file too, picture clusters
661
+ // included (38 MB for one piece of 171 KB of sound, r46). Read from its own
662
+ // packets (proxy 2.99.6), the soundtrack's packet table was refused memory
663
+ // on Home Assistant, its first run was given one piece and never closed
664
+ // it, and no Matroska film started (r47, torrent-tv/meta#178).
666
665
  return cues.points.some(point => point.positions.some(position => !video || position.track === video.trackNumber));
667
666
  }
668
667