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 +1 -1
- package/src/xboxdevice.js +8 -0
package/package.json
CHANGED
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
|
|