sy6sy2 / xbmc

Kodi is an award-winning free and open source home theater/media center software and entertainment hub for digital media. With its beautiful interface and powerful skinning engine, it's available for Android, BSD, Linux, macOS, iOS and Windows.
https://kodi.tv/
Other
6 stars 1 forks source link

Guide to updating Kodi on AppleTV while preserving settings #71

Open phunkyfish opened 5 years ago

phunkyfish commented 5 years ago

Due to space limitations on tvOS the current way to update is to download the container, update kodi and then upload it again. A guide on how to do this, or even better, an automated process would be great.

pogarek commented 4 years ago

Even if you have container on the disk, in some cases, replacing it doesn't help. I got affected by this yesterday : had kodi running, updated to newer build and I lost settings. Replaced container and it didn't helped. So I deployed a earlier version of kodi (with the same app id of course) and data was back after the operation.

fuzzard commented 4 years ago

You will most likely find this was due to the nsuserdefaults commit. I would guess you hadnt run a build with that implemented until now.

Effectively, all xml settings are now saved in nsuserdefaults, and this information survives the tvos "wipes" that occur. On a first run, this information has to be put into nsuserdafults, therefore it puts in stock settings from a base install. This does not support a container import.

pogarek commented 4 years ago

understood. Is there a way to detect old data on 1st run and migrate it ? The kodi instance was running master-darwin-atv branch from October 4th.

sasagr commented 4 years ago

is there any change on the matter? at the moment what is the best practice to preserve settings in case we need to update kodi, eventually even with a different id?

sy6sy2 commented 4 years ago

With a different ID, I think the only way is to download/restore the container. But if you update Kodi with the same ID, your settings are preserved.

pogarek commented 4 years ago

https://kodi.wiki/view/Add-on:Backup . Works. The setup of Google Drive / Dropbox is a little complicated, but works nicely .