mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: fix filtering of null/undefined attributes
This commit is contained in:
@@ -125,13 +125,13 @@ export class StremioTransformer {
|
||||
return stream.parsedFile?.[attribute];
|
||||
}
|
||||
})
|
||||
.filter((attribute) =>
|
||||
attribute !== undefined &&
|
||||
attribute !== null &&
|
||||
Array.isArray(attribute)
|
||||
? attribute.length
|
||||
: true
|
||||
);
|
||||
.flat()
|
||||
.filter((attribute) => {
|
||||
if (attribute === undefined || attribute === null) return false;
|
||||
if (Array.isArray(attribute)) return attribute.length > 0;
|
||||
return true;
|
||||
});
|
||||
|
||||
let bingeGroup: string | undefined;
|
||||
if (autoPlaySettings.enabled) {
|
||||
bingeGroup = Env.ADDON_ID;
|
||||
|
||||
Reference in New Issue
Block a user