Bug #6160

Recordings for other users not returned by HTSP despite "view all"

Added by Claudio M. over 1 year ago. Updated over 1 year ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Found in version:
Affected Versions:


Reporting this here as requested by the Kodi addon maintainer

Using the Kodi TVheadend addon, when I record something using an admin user ("admin"), my Kodi user ("user") cannot see the recording until I switch owners from admin to user despite having set "View all" in the user's "Video recorder" settings.

Once the recording is listed, it remains playable even if I switch its ownership back to the admin user (because of View all); the recording is not playable anymore if I remove "View all" (WAI).

From the web UI everything works as expected; I used a python wrapper to call the HTTP API and that works correctly as well. This seems to be related directly to HTSP, but I'm not a C/C++ developer so I have no idea where this issue could actually be.

Please let me know if there's any other details you need or anything else I can try (I'm happy to spin up a VM and compile a patched version if you need me to test something).


System info:

root@tvheadend:~# uname -a
Linux tvheadend 5.13.19-6-pve #1 SMP PVE 5.13.19-15 (Tue, 29 Mar 2022 15:59:50 +0200) x86_64 GNU/Linux
root@tvheadend:~# lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:    bullseye
root@tvheadend:~# /usr/bin/tvheadend --version
/usr/bin/tvheadend: version 4.3-2010~g3b1d7a928



Updated by Flole Systems over 1 year ago

Which "Change parameters" options have you set?

For me it's working fine (also with Kodi), so no idea what's wrong in your case.


Updated by Claudio M. over 1 year ago

All of them:
This is the full user config:

And here's screenshots of what I see in the web UI and in Kodi:

- "Telegiornale" was recorded directly from Kodi, using the Kodi user.
- "News" was recorded from the Web UI using the admin user ("claudio")
- "Gran Premio d'Australia (2022)" was recorded by the admin user, switched to "owner=user" and then switched back to "owner=claudio" (this is the one that led me to filing the bug with pvr.hts, and then here).

"News" is the one that I can't see, which is the problem.

The "?????" in the extra text appear when I save the recording after swapping users. Can't make them go away (even if I delete them, they stay there).

Also, for completeness, I'm using OSMC ( - running Kodi 19) on a Raspberry Pi 4, not native Kodi (although it shouldn't matter, AFAIK).

Is there any tests I can do to check what the HTSP API is returning? IIUC I'd need to subscribe and parse what the API is returning; my python is not good enough to do that (and the example code I found is python2).


Updated by Dave Pickles over 1 year ago

I came across this issue a while ago -

The workaround is to ensure that the same username is used for the connection to Kodi and for creating timers.


Updated by Claudio M. over 1 year ago

Yep, that works, as well as starting the recording directly from Kodi; alternatively, changing the ownership of the recording to the Kodi user also works, but I'd rather see this fixed for HTSP.

I have a very memorable password for the Kodi user so I can (assuming I remember) start the recording with that user, but I can see why someone with a complex password (or that maybe is already logged in as an admin) would like this to work.

Also available in: Atom PDF