mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: explicity check that array, if defined, is not empty.
This commit is contained in:
@@ -448,6 +448,7 @@ export class AIOStreams {
|
||||
|
||||
if (
|
||||
mediaFlowConfig.proxiedAddons &&
|
||||
mediaFlowConfig.proxiedAddons.length > 0 &&
|
||||
!mediaFlowConfig.proxiedAddons.includes(stream.addon.id)
|
||||
) {
|
||||
if (Settings.LOG_SENSITIVE_INFO) {
|
||||
@@ -459,9 +460,11 @@ export class AIOStreams {
|
||||
|
||||
if (
|
||||
(mediaFlowConfig.proxiedServices &&
|
||||
mediaFlowConfig.proxiedServices.length > 0 &&
|
||||
stream.provider &&
|
||||
!mediaFlowConfig.proxiedServices.includes(stream.provider.id)) ||
|
||||
(mediaFlowConfig.proxiedServices &&
|
||||
mediaFlowConfig.proxiedServices.length > 0 &&
|
||||
!stream.provider &&
|
||||
!mediaFlowConfig.proxiedServices.includes('none'))
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user