homebridge-xbox-tv 3.7.7 → 3.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "3.7.7",
4
+ "version": "3.7.8",
5
5
  "description": "Homebridge plugin to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/xboxdevice.js CHANGED
@@ -372,6 +372,14 @@ class XboxDevice extends EventEmitter {
372
372
  // Safety: no services or too many inputs (only block on add)
373
373
  if (!this.inputsServices || (this.inputsServices.length >= 85 && !remove)) return;
374
374
 
375
+ // --- FILTER APPS ---
376
+ const contentType = input.contentType;
377
+ const filterGames = this.filterGames && contentType === 'Game';
378
+ const filterApps = this.filterApps && contentType === 'App';
379
+ const filterSystemApps = this.filterSystemApps && contentType === 'systemApp';
380
+ const filterDlc = this.filterDlc && contentType === 'Dlc';
381
+ if (filterGames || filterApps || filterSystemApps || filterDlc) return;
382
+
375
383
  // Input reference
376
384
  const inputReference = input.reference;
377
385