Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Kodi fails to scan music from Web server directory (HTTP)
#1
I have some music files that I've ripped from my CDs. I've processed them via Picard, so they are tagged correctly.

bash:


~/Music/Jet$ tree
.
└── Get Born
    ├── 1-01 Last Chance.mp3
    ├── 1-02 Are You Gonna Be My Girl.mp3
    ├── 1-03 Rollover D.J..mp3
    ├── 1-04 Look What You've Done.mp3
    ├── 1-05 Get What You Need.mp3
    ├── 1-06 Move On.mp3
    ├── 1-07 Radio Song.mp3
    ├── 1-08 Get Me Outta Here.mp3
    ├── 1-09 Cold Hard Bitch.mp3
    ├── 1-10 Come Around Again.mp3
    ├── 1-11 Take It or Leave It.mp3
    ├── 1-12 Lazy Gun.mp3
    ├── 1-13 Timothy.mp3
    ├── 1-14 Sgt. Major.mp3
    ├── 2-01 Are You Gonna Be My Girl (acoustic version).mp3
    ├── 2-02 Bruises (demo).mp3
    ├── 2-03 Hey Kids.mp3
    ├── 2-04 Move On (live).mp3
    ├── 2-05 Cold Hard Bitch (live).mp3
    ├── 2-06 You Don't Look the Same (demo).mp3
    ├── 2-07 Look What You've Done (live).mp3
    └── folder.jpg

1 directory, 22 files

I'm serving these files via a HTTP server. For example purposes, I'm using a Python HTTP server, but I've tried this with other servers with the same result.

I'm running Kodi on a Google TV set top box. When I point Kodi to the above server, it lists the files correctly, but fails to scan them into the library - in other words, they do not appear in the Music section.

Here's some output from the server:

bash:

~/Music/Jet$ python -m http.server --bind 172.16.15.89 8080
Serving HTTP on 172.16.15.89 port 8080 (http://172.16.15.89:8080/) ...
172.16.15.78 - - [25/Nov/2020 10:54:53] "GET / HTTP/1.1" 200 -
172.16.15.78 - - [25/Nov/2020 10:55:04] "GET /Get%20Born/ HTTP/1.1" 200 -
172.16.15.78 - - [25/Nov/2020 10:55:04] "GET /Get%20Born/ HTTP/1.1" 200 -
172.16.15.78 - - [25/Nov/2020 10:55:04] "GET / HTTP/1.1" 200 -
172.16.15.78 - - [25/Nov/2020 10:55:04] "GET / HTTP/1.1" 200 -

I can

Code:

172.16.15.78 - - [25/Nov/2020 10:56:35] "GET /Get%20Born/ HTTP/1.1" 200 -
172.16.15.78 - - [25/Nov/2020 10:56:39] "HEAD /Get%20Born/1-01%20Last%20Chance.mp3 HTTP/1.1" 200 -
172.16.15.78 - - [25/Nov/2020 10:56:40] "GET /Get%20Born/1-01%20Last%20Chance.mp3 HTTP/1.1" 200 -

As you can see, Kodi is connecting to the server, listing the files and streaming them correctly, but for some reason it isn't scanning the files into the music library. Can anybody suggest why it's not doing the scan?

If I connect to the same server via SSH, then the music files get scanned into the library correctly. I could use SSH as a work-around, but it's slower than HTTPS, so I'd prefer not to.

So, the problem is not with the files. It's likely a problem either with Kodi or the HTTP server I'm using, but like I said, I tried multiple servers and got the same result, so I suspect it may be a problem with Kodi.
Reply
#2
it only works with "standard" html index lists, like those produced by apache, (I think nginx) and lighthttpd
Reply
#3
(2020-11-25, 11:06)wsnipex Wrote: it only works with "standard" html index lists, like those produced by apache, (I think nginx) and lighthttpd
Thank you for your reply. I installed Apache locally to serve the same files and pointed Kodi to it. Unfortunately, I got the same result: Kodi sees the individual files, but does not scan them into the music library.

From what I understand, all that Kodi can get from the html index lists are the file names in each subdirectory and their file sizes. It seems to be doing that just fine regardless of the server being used (I tried several). The part Kodi is failing to do - getting the artist/album names, etc. - that should come from reading each individual file and extracting the MP3 tags. I'm not sure why it's not doing that - do you have any other ideas?
Reply
#4
please provide a Debug Log
Reply
#5
(2020-11-26, 08:24)wsnipex Wrote: please provide a Debug Log

Sure, please see https://paste.kodi.tv/nuyocacuto.kodi

I did some more digging and it sounds like I may have found a bug (long story: the open-source ffprobe can extract MP3 tags from my URLs, but Kodi can't), so I opened a ticket in the issue tracker.

https://github.com/xbmc/xbmc/issues/18866
Reply
#6
(2020-11-25, 04:02)getborn Wrote: I have some music files that I've ripped from my CDs. I've processed them via Picard, so they are tagged correctly.
...

I'm serving these files via a HTTP server. For example purposes, I'm using a Python HTTP server, but I've tried this with other servers with the same result.

I'm running Kodi on a Google TV set top box. When I point Kodi to the above server, it lists the files correctly, but fails to scan them into the library - in other words, they do not appear in the Music section.

As you can see, Kodi is connecting to the server, listing the files and streaming them correctly, but for some reason it isn't scanning the files into the music library. Can anybody suggest why it's not doing the scan?
Kodi can not tell the difference between continuous streams served over http and ordinary tagged music files, hence files served via http can not be scanned into the music library. It isn't a bug but by design.

You can play the http served music files via file view, just like you can play music streams, but not add them to the music library.

What you can try is WebDAV, not something I have done myself but I can see in the code that files served as dav:// and davs:// (with correct certificates) will be scanned into the library.
Reply
#7
Hello,

i have exactly the same problem with WEBDAV from 1und1.
Is there a solution in the meanwhile ?
I think i didnt habe the problem before matrix
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi fails to scan music from Web server directory (HTTP)0