# Kodi/PVR: Filter of channel groups on multiple devices

**URL:** <https://community.yatse.tv/t/kodi-pvr-filter-of-channel-groups-on-multiple-devices/2409>\
**Category:** Solved\
**Tags:** pvr\
**Created:** [February 3, 2020, 6:03pm UTC](https://community.yatse.tv/t/kodi-pvr-filter-of-channel-groups-on-multiple-devices/2409 "2020-02-03T18:03:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![flubshi](https://community.yatse.tv/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@flubshi](https://community.yatse.tv/u/flubshi)\
**Post date:** [February 3, 2020, 6:03pm UTC](https://community.yatse.tv/t/kodi-pvr-filter-of-channel-groups-on-multiple-devices/2409/1 "2020-02-03T18:03:46Z")

</div>

**Issue description** :  
For my setup: I have two Kodi devices with a PVR plugin enabled that supports channel groups (Filter PVR channels by some properties). Yatse supports this by the filter icon in PVR view.

**Issue:** When switching in yatse between two Kodi devices, this flter gets lost and no channels are displayed.  
**Expected behavior** : Filter is kept when changing devices, or at least the previous filter per device is stored.

See screenshots for details.

**Logs** :

[debug-20200203\_201552.zip](https://community.yatse.tv/uploads/short-url/8Bzh1RdsTfSy922V3W7HmtBeoo2.zip) (61.3 KB)

**Screenshots** :

Step 1: Select a filter on the yellow device:

 ![WhatsApp Image 2020-02-03 at 18.46.04 (1)](https://community.yatse.tv/uploads/default/original/2X/5/5b403576233fd7405811199663f2b5bb54d41811.jpeg)

Step 2: Switch to the blue device - no more channels visible:

 ![WhatsApp Image 2020-02-03 at 18.46.04 (2)](https://community.yatse.tv/uploads/default/original/2X/a/a205417d5a1d28fad0e184bec27f1f62c4561bad.jpeg)

Step 3: Set a filter on the blue device:

 ![WhatsApp Image 2020-02-03 at 18.46.04 (3)](https://community.yatse.tv/uploads/default/original/2X/d/d6f344f2846ab9054fef488e89825c9b6bd31c5a.jpeg)

Step 4: Switch to yellow device - channels are hidden again:

 ![WhatsApp Image 2020-02-03 at 18.46.04](https://community.yatse.tv/uploads/default/original/2X/d/d143c70b011031454ae92515c5c2fe5233a0028c.jpeg)

**Additional information** :

Phone model: xiaomi redmi note 5 pro

---

<div class="post-metadata">

**Author:** ![Tolriq](https://community.yatse.tv/user_avatar/community.yatse.tv/tolriq/32/12_2.png) [@Tolriq](https://community.yatse.tv/u/Tolriq)\
**Post date:** [February 3, 2020, 6:41pm UTC](https://community.yatse.tv/t/kodi-pvr-filter-of-channel-groups-on-multiple-devices/2409/2 "2020-02-03T18:41:03Z")

</div>

You forget the logs but this is a 99% because Kodi returns different Ids for the groups.

---

<div class="post-metadata">

**Author:** ![flubshi](https://community.yatse.tv/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@flubshi](https://community.yatse.tv/u/flubshi)\
**Post date:** [February 3, 2020, 7:30pm UTC](https://community.yatse.tv/t/kodi-pvr-filter-of-channel-groups-on-multiple-devices/2409/3 "2020-02-03T19:30:45Z")

</div>

Debug log added in first post.

I think the filter stays pre-selected, when switching between the two devices, but channel list is empty.

---

<div class="post-metadata">

**Author:** ![Tolriq](https://community.yatse.tv/user_avatar/community.yatse.tv/tolriq/32/12_2.png) [@Tolriq](https://community.yatse.tv/u/Tolriq)\
**Post date:** [February 3, 2020, 7:51pm UTC](https://community.yatse.tv/t/kodi-pvr-filter-of-channel-groups-on-multiple-devices/2409/4 "2020-02-03T19:51:10Z")

</div>

Thanks for the logs, so yes the ids are different between the hosts, so Kodi returns nothing on the second host as the ID match nothing ☹

Will clean the filter on host change then as no choice. I know Kodi have a settings to use backend ID for the channels, don’t know if that settings also applies to groups, might worth a test until I reset the filter for next version.

---

<div class="post-metadata">

**Author:** ![flubshi](https://community.yatse.tv/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@flubshi](https://community.yatse.tv/u/flubshi)\
**Post date:** [February 3, 2020, 8:49pm UTC](https://community.yatse.tv/t/kodi-pvr-filter-of-channel-groups-on-multiple-devices/2409/5 "2020-02-03T20:49:16Z")

</div>

> [@Tolriq](#):
>
> Will clean the filter on host change then as no choice.

Or store the selected channel group id per host?

---

<div class="post-metadata">

**Author:** ![Tolriq](https://community.yatse.tv/user_avatar/community.yatse.tv/tolriq/32/12_2.png) [@Tolriq](https://community.yatse.tv/u/Tolriq)\
**Post date:** [February 3, 2020, 9:01pm UTC](https://community.yatse.tv/t/kodi-pvr-filter-of-channel-groups-on-multiple-devices/2409/6 "2020-02-03T21:01:36Z")

</div>

Id is what identify things. The fact that text is the same does not mean that it’s the same object. So switching to text matching to try to guess an id is a no go as not 100% valid.

---

<div class="post-metadata">

**Author:** ![flubshi](https://community.yatse.tv/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@flubshi](https://community.yatse.tv/u/flubshi)\
**Post date:** [February 3, 2020, 10:23pm UTC](https://community.yatse.tv/t/kodi-pvr-filter-of-channel-groups-on-multiple-devices/2409/7 "2020-02-03T22:23:20Z")

</div>

Yes, but id is stable per host, see my log:

> 192.168.10.9  
> req\_id-444: 1:AllChannels, 2:Fav  
> req\_id-642: 1:AllChannels, 2:Fav

> 192.168.10.203  
> req\_id-809: 1:AllChannels, 4:Fav  
> req\_id-921: 1:AllChannels, 4:Fav

If you store the selected id per host it should be fine.

---

<div class="post-metadata">

**Author:** ![Tolriq](https://community.yatse.tv/user_avatar/community.yatse.tv/tolriq/32/12_2.png) [@Tolriq](https://community.yatse.tv/u/Tolriq)\
**Post date:** [February 4, 2020, 7:12am UTC](https://community.yatse.tv/t/kodi-pvr-filter-of-channel-groups-on-multiple-devices/2409/8 "2020-02-04T07:12:45Z")

</div>

Yes I totally forget that I persist the filter across sessions 🙂 Will see to store per host, thanks for pushing. I’m not a big PVR user.

---

<div class="post-metadata">

**Author:** ![Tolriq](https://community.yatse.tv/user_avatar/community.yatse.tv/tolriq/32/12_2.png) [@Tolriq](https://community.yatse.tv/u/Tolriq)\
**Post date:** [February 4, 2020, 9:01am UTC](https://community.yatse.tv/t/kodi-pvr-filter-of-channel-groups-on-multiple-devices/2409/9 "2020-02-04T09:01:35Z")

</div>

So actually it was already the case, the value was just loaded too late after a very old refactor.

---

<div class="post-metadata">

**Author:** ![flubshi](https://community.yatse.tv/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@flubshi](https://community.yatse.tv/u/flubshi)\
**Post date:** [February 4, 2020, 4:45pm UTC](https://community.yatse.tv/t/kodi-pvr-filter-of-channel-groups-on-multiple-devices/2409/10 "2020-02-04T16:45:29Z")

</div>

Thanks for your awesome APP and great support!

A feature request for VoD PVR feature will follow next days 😛
