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

No `VideoLibrary.Scan` method #12

Closed Chiggy-Playz closed 2 years ago

Chiggy-Playz commented 2 years ago

Hello. I started this container yesterday by doing:

sudo docker run 
-d --name=kodi-headless 
--restart unless-stopped 
-v /kodi:/config/.kodi 
-e TZ=Asia/Calcutta 
-p 8080:8080 
-p 9090:9090 
-p 9777:9777/udp 
matthuisman/kodi-headless:Matrix

I had manually created the /kodi dir on my pi before starting the container. After starting the container, I went to /kodi/userdata and edited advancedsettings.xml. I also pasted my sources.xml file there I put in my host ip and the uname and password I also changed the services > devicename setting (I hope this is fine) in the advancedsettings.xml

It runs successfully and i can access the web ui at pi_ip:8080 and in the movies section I can see all the movies on my database but when I do a get request to kodi:kodi@192.168.1.105:8080/jsonrpc, in the methods key of the response, theres no VideoLibrary.Scan method. How do I trigger a scan?

Chiggy-Playz commented 2 years ago

Update: Doing Scan Video Library option from the ui triggers a scan, but i get a notification saying the scan is completed in just 2-3 seconds. That doesnt seem right. I checked sudo docker logs -f kodi-headless but I dont think thats the correct place for kodi logs. Where can I check logs?

Here's my sources.xml

<sources>
    <programs>
        <default pathversion="1"></default>
    </programs>
    <video>
        <default pathversion="1"></default>
        <source>
            <name>Movies</name>
            <path pathversion="1">smb://192.168.1.254/Media-Small/Movies/</path>
            <path pathversion="1">smb://192.168.1.254/Media-Big/Movies/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>TV Shows</name>
            <path pathversion="1">smb://192.168.1.254/Media-Big/TV Shows/</path>
            <path pathversion="1">smb://192.168.1.254/Media-Small/TV Shows/</path>
            <allowsharing>true</allowsharing>
        </source>
    </video>
    <music>
        <default pathversion="1"></default>
    </music>
    <pictures>
        <default pathversion="1"></default>
    </pictures>
    <files>
        <default pathversion="1"></default>
    </files>
    <games>
        <default pathversion="1"></default>
    </games>
</sources>
matthuisman commented 2 years ago

You need to familiarize yourself with how docker works. You probably need to mount the hosts path where media is into the container for starters. And the log will be inside the container etc

On Mon, 2 May 2022, 22:41 Chiggy-Playz, @.***> wrote:

Update: Doing Scan Video Library option from the ui triggers a scan, but i get a notification saying the scan is completed in just 2-3 seconds. That doesnt seem right. I checked sudo docker logs -f kodi-headless but I dont think thats the correct place for kodi logs. Where can I check logs?

— Reply to this email directly, view it on GitHub https://github.com/matthuisman/docker-kodi-headless/issues/12#issuecomment-1114713685, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPQAKLDMQLK2G7DSJXJN3DVH6WNVANCNFSM5U3TA4DA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

matthuisman commented 2 years ago

With smb you shouldn't need to mount anything from host. I suspect your missing the scraper. Can be hard getting them working. Especially the new python scrapers. Log is inside the container. Look at source code. Should tell you where abouts. Can't remember of top of my head

Chiggy-Playz commented 2 years ago

I looked at the source code and I found something which I believe logs things, but I didnt find a path or anything. Also, container logs (sudo docker logs -f kodi-headless) show nothing when I go to the webui and click on scan library. Also, why is getting the scraper hard? How does one install it? Sorry for bothering you with such questions.

matthuisman commented 2 years ago

Well you cant install add-ons via Kodi web interface. So you need.to manually copy them and their dependencies into the Kodi addons directory etc.

On Wed, 4 May 2022, 02:05 Chiggy-Playz, @.***> wrote:

I looked at the source code and I found something which I believe logs things, but I didnt find a path or anything. Also, container logs (sudo docker logs -f kodi-headless) show nothing when I go to the webui and click on scan library. Also, why is getting the scraper hard? How does one install it? Sorry for bothering you with such questions.

— Reply to this email directly, view it on GitHub https://github.com/matthuisman/docker-kodi-headless/issues/12#issuecomment-1116140378, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPQAKPPEVL2QRU4RQDM5BDVIEXCNANCNFSM5U3TA4DA . You are receiving this because you modified the open/close state.Message ID: @.***>

Chiggy-Playz commented 2 years ago

So I solved it. It was just me being an idiot. I had forgotten to paste my passwords.xml file in userdata and it was having issues finding it. It works now. Thank You!

matthuisman commented 2 years ago

Oh, great to hear that :)

On Wed, 4 May 2022, 08:33 Chiggy-Playz, @.***> wrote:

So I solved it. It was just me being an idiot. I had forgotten to paste my passwords.xml file in userdata and it was having issues finding it. It works now. Thank You!

— Reply to this email directly, view it on GitHub https://github.com/matthuisman/docker-kodi-headless/issues/12#issuecomment-1116574065, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPQAKOZUSGFXWHAJ6IWV43VIGEQ7ANCNFSM5U3TA4DA . You are receiving this because you modified the open/close state.Message ID: @.***>