MediaService: match ignored player by id and name (fix #745)

This commit is contained in:
Ly-sec
2025-12-03 17:57:02 +01:00
parent 7e46f22546
commit 6675ba0a67
+2 -1
View File
@@ -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;