mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: manually override type to http for watchtower and nuviostreams
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user