@torrent-tv/proxy 2.64.0 → 2.64.1

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.64.0",
3
+ "version": "2.64.1",
4
4
  "description": "Torrent proxy client that exposes webseed-like HTTP stream endpoint.",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "publishConfig": {
@@ -136,9 +136,9 @@ export class MatroskaContainer extends Container {
136
136
  case ID_LANGUAGE_BCP47: languageBcp47 = readString(head, f); break;
137
137
  case ID_NAME: name = readString(head, f); break;
138
138
  case ID_FLAG_ENABLED: isEnabled = f.size === 0 || readUint(head, f.dataOffset, f.size) !== 0; break;
139
- case ID_FLAG_DEFAULT: isDefault = readUint(head, f.dataOffset, f.size) === 1; declaresDefault = true; break;
139
+ case ID_FLAG_DEFAULT: isDefault = f.size === 0 || readUint(head, f.dataOffset, f.size) === 1; declaresDefault = true; break;
140
140
  case ID_FLAG_FORCED: isForced = f.size > 0 && readUint(head, f.dataOffset, f.size) !== 0; break;
141
- case ID_FLAG_HEARING: isHearing = f.size > 0 && readUint(head, f.dataOffset, f.size) !== 0; break;
141
+ case ID_FLAG_HEARING: isHearing = f.size > 0 && readUint(head, f.dataOffset, f.size) !== 0; break;
142
142
  case ID_FLAG_VISUAL: isVisual = f.size > 0 && readUint(head, f.dataOffset, f.size) !== 0; break;
143
143
  case ID_FLAG_TEXT_DESCR: break;
144
144
  case ID_FLAG_ORIGINAL: isOriginal = f.size > 0 && readUint(head, f.dataOffset, f.size) !== 0; break;
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * @file Text subtitle track — convertible to WebVTT.
3
3
  *
4
- * Matroska: S_TEXT/UTF8, S_TEXT/ASS, S_TEXT/SSA
4
+ * Matroska: S_TEXT/UTF8, S_TEXT/ASS, S_TEXT/SSA, S_TEXT/WEBVTT (RFC 9559)
5
5
  * MP4: tx3g, text, wvtt (stpp/TTML is NOT text for this pipeline — excluded)
6
6
  * External files: .srt .ass .ssa .vtt — modelled as TextSubtitleTrack with no container backing.
7
7
  */
8
8
 
9
9
  import { SubtitleTrack } from "./SubtitleTrack.js";
10
10
 
11
- const TEXT_CODECS_MATROSKA = new Set(["S_TEXT/UTF8", "S_TEXT/ASS", "S_TEXT/SSA"]);
11
+ const TEXT_CODECS_MATROSKA = new Set(["S_TEXT/UTF8", "S_TEXT/ASS", "S_TEXT/SSA", "S_TEXT/WEBVTT"]);
12
12
  const TEXT_FORMATS_MP4 = new Set(["tx3g", "text", "wvtt"]);
13
13
 
14
14
  export class TextSubtitleTrack extends SubtitleTrack {