fix(presets/torbox): handle Usenet stream type in hash extraction

This commit is contained in:
Viren070
2025-09-29 19:31:20 +01:00
parent aa3ae2478a
commit 967cff29ac
+1 -1
View File
@@ -30,7 +30,7 @@ class TorboxStreamParser extends StreamParser {
stream: Stream,
currentParsedStream: ParsedStream
): string | undefined {
return (stream as any).hash;
return stream.type !== 'usenet' ? (stream as any).hash : undefined;
}
override getInLibrary(
stream: Stream,