mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: prevent duration being incorrectly parsed for builtin addons
This commit is contained in:
@@ -44,8 +44,12 @@ export class BuiltinStreamParser extends StreamParser {
|
||||
stream: Stream,
|
||||
currentParsedStream: ParsedStream
|
||||
): number | undefined {
|
||||
return stream.age as number | undefined;
|
||||
if (typeof stream.age === 'number') {
|
||||
currentParsedStream.duration = undefined;
|
||||
return stream.age;
|
||||
}
|
||||
}
|
||||
|
||||
protected getStreamType(
|
||||
stream: Stream,
|
||||
service: ParsedStream['service'],
|
||||
|
||||
Reference in New Issue
Block a user