tvOS: PVR configuration not persistent, not stored after restart
#1
I've installed Kodi for Apple TV (tvOS) according to the guidelines on a 4K model (1st gen) with a paid developer account. Installation via XCode.

Kodi version: Tried with Kodi v20.1 (Nexus) and a current Kodi v20 Nightly Development Build

Steps to reproduce the behavior:

- Start Kodi on tvOS.
- Activate a addon like IPTV Simple Client or Tvheadend HTSP Client
- Configure a URL other than 127.0.0.1 (which is the default in Tvheadend) or provide a URL with a m3u endpoint in IPTV Simple Client.
- After restart the configuration settings are gone.

Is this a limitation of a non-jailbreaken Apple TV or should this normally work. Is it possible to access the log somehow?

Any help is highly appreciated!
Reply
#2
+1, no logs . On vacation 😬
@m-a-v can you provide logs ?
Reply
#3
@Jönke: Happy to provide logs. How can I access/extract this file on a non-jailbroken device?
Reply
#4
with addon for example https://kodi.wiki/view/Log_file/Easy

you can also access all files with Xcode by downloading app container
Reply
#5
Thanks a lot for the hint regarding capturing the log data!

I've uploaded the logs here.
https://www.file.io/XHCZ/download/Hh76sljgYYOv

This here looks a little bit strange. What could be the reason?
2023-07-01 20:00:23.461 T:8968 debug <general>: UpdateComponents: Skipping not (yet) connected PVR client 'pvr.hts'
2023-07-01 20:00:23.918 T:8620 debug <CSettingsManager>: requested setting (kodi_addon_instance_name) was not found.
2023-07-01 20:00:23.918 T:8620 debug <CSettingsManager>: requested setting (kodi_addon_instance_enabled) was not found.
Reply
#6
(2023-07-02, 00:08)m-a-v Wrote: I've uploaded the logs here.
https://www.file.io/XHCZ/download/Hh76sljgYYOv

There was an error retrieving your file.
Reply
#7
Sorry. Don't know why this didn't work out. Today I did the whole installation again with the newest 20.2 version. The error is still the same. Configuration is not persistent after restart.

https://gist.github.com/m-a-v/f3dcaace33...9f9e412811
Reply
#8
sign your .deb file
take the .ipa and rename to zip and extract it
find in TVH folder the instance-settings file and edit it with your needed credentials and save it
compress the folder and rename it to .ipa
take this ipa and resign it and install it to your appletv
now your TVH settings are burned in :-)
Reply
#9
(2023-07-27, 12:55)reppmic Wrote: sign your .deb file
take the .ipa and rename to zip and extract it

these steps can be replaced with:
Code:
ar -p PATH_TO_DEB_FILE data.tar.xz | tar -xf -
(2023-07-27, 12:55)reppmic Wrote: compress the folder and rename it to .ipa
take this ipa and resign it

no need to compress to ipa first, simply sign the Kodi.app
Reply
#10
Thanks a lot for your tipps.

Do I understand correctly that this is currently a limitation if you have a non-jailbroken device and that this is the only option?
Reply
#11
(2023-07-27, 12:55)reppmic Wrote: sign your .deb file
take the .ipa and rename to zip and extract it
find in TVH folder the instance-settings file and edit it with your needed credentials and save it
compress the folder and rename it to .ipa
take this ipa and resign it and install it to your appletv
now your TVH settings are burned in :-)

What specific permissions does the instance-settings.xml file need?

Martin
Reply
#12
i did not care about
i opened in a texteditor and changed it
Reply
#13
Thanks @reppimic I think you need to change all the defaults and not permissions.
Reply
#14
I have created a test Kodi.app that appears to fix pvr.nextpvr, changing settings, multiple instances etc.  Maybe it will work for pvr.hts and pvr.iptvsimple so if you want to test let me know. I can update them to current release too.

Martin
Reply
#15
Will this issue be solved in next Kodi release ?
Reply

Logout Mark Read Team Forum Stats Members Help
tvOS: PVR configuration not persistent, not stored after restart0