Closed raupie closed 5 years ago
I bet it has something to do with the TV Show scraper.
By default I think for TV Shows it wants to use the themoviedb
but I chose the thetvdb
instead on my kodi player devices.
hmmmm.
The biggest hurdle for the Rancher/Portainer implementation of this build is the custom scraper. I need to be able to copy the Addons27.db and metadata.tvdb.com to the container but when I do I get permissions issues with Addons27.db and the entire addons folder get's wiped out except for my new downloaded scrapper.
I believe it has something to do with the original docker file creating a volume mount or something. I thought this would be easy to extend this build to include these custom files but it has been a challenge.
Current strategy is cloning this repo and injecting these files into the original Dockerfile like the advancedsettings.xml file is handled.
REMINDER: If you are not using TMDB/TVDB scrapers you need to take care of installing and enabling the respective plugins in the container yourself.
Finally got kodi-headless
to work in RancherOS. I'm not very proud of my solution but it works.
I created a data folder and moved Addons27.db
, addons/metadata.tvdb.com
, kodi_init
, sources.xml
into it.
Dockerfile excerpt:
COPY ./data/sources.xml /config/userdata/sources.xml
COPY ./data/ /tmp/data/
RUN chown -R kodi:kodi /tmp/data
COPY ./data/kodi_init /sbin/kodi_init
kodi_init excerpt:
mkdir /config/userdata/Database
cp /tmp/data/Addons27.db /config/userdata/Database/Addons27.db
chown -R kodi:kodi /config/userdata/Database
mkdir /config/addons
cp -R /tmp/data/addons/metadata.tvdb.com /config/addons/metadata.tvdb.com
chown -R kodi:kodi /config/addons
As I said I find this to be really "hacky". I wish I could have just COPY
via the Dockerfile all this stuff and done a RUN chown
command to set the permissions right but something was blocking me from getting that to work. Having to clone the kodi_init
and add my custom commands in there seems hard to maintain or future proof but it works.
I can see that the UpdateLibrary function is working as my new movies are being added to the Kodi MySQL Database. However, my new show episodes are not being found.
Any ideas?