mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix(presets/usenet-streamer): parse instant and triage status info
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user