Skip to content

Commit a210fac

Browse files
authored
fix(presets/stremthru-torz): bring back overriden stream parser (#978)
was removed by mistake in 1a9892b fixes things like private torrent and separate audio/subtitle language detection
1 parent ff8edcc commit a210fac

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

packages/core/src/presets/stremthruTorz.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,21 @@ import { baseOptions, Preset } from './preset.js';
1010
import { constants, ServiceId } from '../utils/index.js';
1111
import { config as appConfig } from '../config/index.js';
1212
import { StreamParser } from '../parser/index.js';
13-
import { StremThruPreset } from './stremthru.js';
13+
import { StremThruPreset, StremThruStreamParser } from './stremthru.js';
14+
15+
class StremthruTorzStreamParser extends StremThruStreamParser {
16+
protected override applyUrlModifications(
17+
url: string | undefined
18+
): string | undefined {
19+
return super.applyUrlModifications(url);
20+
}
21+
}
1422

1523
export class StremthruTorzPreset extends StremThruPreset {
24+
static override getParser(): typeof StreamParser {
25+
return StremthruTorzStreamParser;
26+
}
27+
1628
static override get METADATA() {
1729
const supportedResources = [constants.STREAM_RESOURCE];
1830

0 commit comments

Comments
 (0)