matthuisman/docker-kodi-headless

Add music sources to kodi library

JanvdW304 opened this issue · 4 comments

The headless installation of Kodi went smoothly, but I am unable to update the music collection with the music that's stored on an external harddisk.

In the docker-compose.yaml I have created a mapping to this hard disk, and that works: if I open the docker console (docker exec -it kodi-headless sh) I can request a directory list of this mapping ('ls /media ').

I then included a path substitution (as mentioned in the readme) in advancedsettings.xml. I have tried that in different ways, at this moment:
</pathsubstitution> <substitute> <from>smb://<user>:<password>@server ip>/<mnt>/<folder>/</from> <to>/media/</to> </substitute> </pathsubstitution>

Finally, I also included a reference in the sources.xml, but that also produced no results:
<music> default pathversion="1"></default> <source> <name>Auto-mounted drives</name> <path pathversion="1">/media/</path> <allowsharing>true</allowsharing> </source> </music>

Kodi itself works just fine, no error messages in the log. But when I refresh the library, Kodi indicates after 0 sec that it is ready.

How can I solve this?

nothing to do with headless.
You'll need to setup the library scrapers externally so they get into the DB probably
just like youd need to do on a normal kodi install

How can to setup the library scrapers externally? In my normal kodi installation I define the path to the library via the KODI GUI, but I can't doe this in the web interface

thats a limitation of their web gui i believe.
You'll need to use another kodi on windows or something, point it to the shared DB. add the library sources (these are stored in DB).

Ah, right. Do you know a good 'how to' instruction how to get the job done? Otherwise I'll check it that later. Thanks.