mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
MediaService: match ignored player by id and name (fix #745)
This commit is contained in:
@@ -44,9 +44,10 @@ Singleton {
|
||||
let genericPlayers = [];
|
||||
for (var i = 0; i < allPlayers.length; i++) {
|
||||
const identity = String(allPlayers[i].identity || "").toLowerCase();
|
||||
const name = String(allPlayers[i].name || "").toLowerCase();
|
||||
const match = blacklist.find(b => {
|
||||
const s = String(b || "").toLowerCase();
|
||||
return s && (identity.includes(s));
|
||||
return s && (identity.includes(s) || name.includes(s));
|
||||
});
|
||||
if (match)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user