Project

General

Profile

Bug #6160

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

Added by Claudio M. 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
HTSP
Target version:
-
Start date:
2022-04-10
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-2010~g3b1d7a928
Affected Versions:

Description

Context: https://github.com/kodi-pvr/pvr.hts/issues/581
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).

Thanks!

System info:

[email protected]:~# 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
[email protected]:~# lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:    bullseye
[email protected]:~# /usr/bin/tvheadend --version
/usr/bin/tvheadend: version 4.3-2010~g3b1d7a928

History

#1

Updated by Flole Systems 3 months 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.

#2

Updated by Claudio M. 3 months ago

All of them: https://cmoretti.it/ssht/2022-04-11-20_08_14-Tvheadend-28396.png
This is the full user config: https://cmoretti.it/ssht/2022-04-11-20_13_00-Tvheadend-3050.png

And here's screenshots of what I see in the web UI and in Kodi:
https://cmoretti.it/ssht/2022-04-11-20_18_49-Tvheadend-user_view-32037.png
https://cmoretti.it/ssht/2022-04-11-20_19_51-Photo-tvheadend-kodi-3626.png

- "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 (osmc.tv - 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).

#3

Updated by Dave Pickles 3 months ago

I came across this issue a while ago - https://github.com/dave-p/TVHadmin/issues/12

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

#4

Updated by Claudio M. 3 months 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