mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: only infer proxied attribute for nzbdav/altmount with built-in addons
This commit is contained in:
@@ -354,15 +354,7 @@ class StreamParser {
|
||||
stream: Stream,
|
||||
currentParsedStream: ParsedStream
|
||||
): ParsedStream['service'] | undefined {
|
||||
const service = this.parseServiceData(stream.name || '');
|
||||
if (
|
||||
service &&
|
||||
(service.id === constants.NZBDAV_SERVICE ||
|
||||
service.id === constants.ALTMOUNT_SERVICE)
|
||||
) {
|
||||
currentParsedStream.proxied = !stream.behaviorHints?.proxyHeaders;
|
||||
}
|
||||
return service;
|
||||
return this.parseServiceData(stream.name || '');
|
||||
}
|
||||
|
||||
protected getInfoHash(
|
||||
|
||||
@@ -27,6 +27,22 @@ export class BuiltinStreamParser extends StreamParser {
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
protected getService(
|
||||
stream: Stream,
|
||||
currentParsedStream: ParsedStream
|
||||
): ParsedStream['service'] | undefined {
|
||||
const service = this.parseServiceData(stream.name || '');
|
||||
if (
|
||||
service &&
|
||||
(service.id === constants.NZBDAV_SERVICE ||
|
||||
service.id === constants.ALTMOUNT_SERVICE)
|
||||
) {
|
||||
currentParsedStream.proxied = !stream.behaviorHints?.proxyHeaders;
|
||||
}
|
||||
return service;
|
||||
}
|
||||
|
||||
protected parseServiceData(
|
||||
string: string
|
||||
): ParsedStream['service'] | undefined {
|
||||
|
||||
Reference in New Issue
Block a user