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

Add music sources to kodi library #41

Closed JanvdW304 closed 6 months ago

JanvdW304 commented 6 months ago

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: `

smb://:@server ip>/// /media/

`

Finally, I also included a reference in the sources.xml, but that also produced no results: ` default pathversion="1">

  <name>Auto-mounted drives</name>
  <path pathversion="1">/media/</path>
  <allowsharing>true</allowsharing>
</source>

`

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?

matthuisman commented 6 months ago

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

JanvdW304 commented 6 months ago

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

matthuisman commented 6 months ago

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).

JanvdW304 commented 6 months ago

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