mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
feat: filter out streams with excludedLanguages option
This commit is contained in:
@@ -55,6 +55,12 @@ export class AIOStreams {
|
||||
)
|
||||
return false;
|
||||
|
||||
// apply excludedLanguages filter
|
||||
const excludedLanguages = this.config.excludedLanguages;
|
||||
if (excludedLanguages && parsedStream.languages.every(lang => excludedLanguages.includes(lang))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const audioTagFilter = parsedStream.audioTags.find(
|
||||
(tag) => !this.config.audioTags.some((audioTag) => audioTag[tag])
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user