fix: manually override type to http for watchtower and nuviostreams

This commit is contained in:
Viren070
2025-06-19 18:48:48 +01:00
parent d2ef2154fd
commit 1fb00a4317
2 changed files with 2 additions and 30 deletions
@@ -25,11 +25,7 @@ class DebridioWatchtowerStreamParser extends StreamParser {
parsedStream.filename = this.getFilename(stream, parsedStream);
parsedStream.type = this.getStreamType(
stream,
parsedStream.service,
parsedStream
);
parsedStream.type = 'http';
if (parsedStream.filename) {
parsedStream.parsedFile = FileParser.parse(parsedStream.filename);
@@ -52,16 +48,6 @@ class DebridioWatchtowerStreamParser extends StreamParser {
parsedStream.message = stream.description?.replace(/\d+p?/g, '');
parsedStream.torrent = {
infoHash:
parsedStream.type === 'p2p'
? (stream.infoHash ?? undefined)
: this.getInfoHash(stream, parsedStream),
seeders: this.getSeeders(stream, parsedStream),
sources: stream.sources ?? undefined,
fileIdx: stream.fileIdx ?? undefined,
};
return parsedStream;
}
}
+1 -15
View File
@@ -23,11 +23,7 @@ class NuvioStreamsStreamParser extends StreamParser {
stream.description = stream.description || stream.title;
parsedStream.type = this.getStreamType(
stream,
parsedStream.service,
parsedStream
);
parsedStream.type = 'http';
parsedStream.parsedFile = FileParser.parse(
`${stream.name}\n${stream.description}`
@@ -45,16 +41,6 @@ class NuvioStreamsStreamParser extends StreamParser {
parsedStream.message += `\n${stream.description?.split('\n')?.[-1]}`;
}
parsedStream.torrent = {
infoHash:
parsedStream.type === 'p2p'
? (stream.infoHash ?? undefined)
: this.getInfoHash(stream, parsedStream),
seeders: this.getSeeders(stream, parsedStream),
sources: stream.sources ?? undefined,
fileIdx: stream.fileIdx ?? undefined,
};
return parsedStream;
}
}