matthuisman / docker-kodi-headless

A headless install of kodi in a docker container
GNU General Public License v3.0
124 stars 11 forks source link

Adding addons #17

Closed Ton-O closed 1 year ago

Ton-O commented 1 year ago

Great work!

One question: how can I add additional addons to KODI? I see the add-on menu-item, but it doesn't allow much interaction. I've managed to get one or 2 added by git clone, but things get a bit complex when dealing with dependencies that need to be resolved.

matthuisman commented 1 year ago

Adding addons is tricky. Currently easiest is install them on another instance eg. On windows. Then copy over the folder.

Ideally I could add a cmdline tool for adding addons that uses the Kodi API. However, pretty sure they show a yes / no dialog so I'd need to patch Kodi to always be yes

Ton-O commented 1 year ago

Thanks for the prompt reply! Well, it would be great if you could add such a cmdline tool; if time permits. For now,I’ll continue the way of copying them.

matthuisman commented 1 year ago

my new Nexus images will contain this new patch: https://github.com/matthuisman/docker-kodi-headless/blob/Nexus/patches/install_addons.patch

It removes the yes / no when installing an add-on via Python or api etc and just installs them in the background (like how update addons would)

Ton-O commented 1 year ago

Thanks! Will try today or tomorrow and report back!

matthuisman commented 1 year ago

and now added a cli tool (yet to be tested) https://github.com/matthuisman/docker-kodi-headless/blob/Nexus/root/usr/bin/install_addon

matthuisman commented 1 year ago

added how-to install addons to readme: https://github.com/matthuisman/docker-kodi-headless/blob/master/README.md#install-add-ons