@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
|
@@ -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(
|
|
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
|
-
//
|
|
661
|
-
// (
|
|
662
|
-
//
|
|
663
|
-
//
|
|
664
|
-
//
|
|
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
|
|