fix(presets/usenet-streamer): parse instant and triage status info

This commit is contained in:
Viren070
2025-11-17 13:05:36 +00:00
parent 14fc584b2b
commit 1b4835d25a
@@ -28,6 +28,21 @@ export class UsenetStreamerParser extends StreamParser {
};
}
protected getInLibrary(
stream: Stream,
currentParsedStream: ParsedStream
): boolean {
return stream.description?.includes('⚡ Instant') ?? false;
}
protected getMessage(
stream: Stream,
currentParsedStream: ParsedStream
): string | undefined {
const status = stream.description?.match(/(✅|⚠️|🚫)/g)?.[0];
if (status) return `NZB Health: ${status}`;
}
protected getIndexer(
stream: Stream,
currentParsedStream: ParsedStream