Kodi Community Forum

Full Version: Kodi 17 - Clean library: "no matching source" message but source exists
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can someone confirm that cleaning library doesn't work as expected ?

commit: 3bf615737d13cdca0f19572e5961fd9473577832

I can play all files ok but when I clean library I get "no matching source found for"

Log from video player:
Code:
DEBUG: CPlayerCoreFactory::GetPlayers(/media/SAMSUNG/media/series/.......)

Log from clean library
Code:
DEBUG: CUtil::GetMatchingSource: no matching source found for [/media/SAMSUNG/media/series/.......]

Full logs: https://gist.github.com/fernandog/0d56f5...d3099d1afb

My setup:
Kodi 1 is a mysql server where files are locate in /media/SAMSUNG/media/.... and served as NFS

Kodi 2 is a client (i cleaned library on this one)
I have a "SAMSUNG" symlink in /media/ pointing to "/mnt/SAMSUNG" - which is mounted using fstab:

Code:
x.x.x.x:/media/SAMSUNG /mnt/SAMSUNG nfs rsize=8192,tcp,cto,noatime,intr,x-systemd.automount,noauto,nfsvers=3 0 0


This same setup works in Jarvis
I compared jarvis code with krypton code:
This is the only difference related to GetMatchingSource


https://github.com/xbmc/xbmc/blob/Jarvis....cpp#L1136
// add any concatenated paths if they exist
if (share.vecPaths.size() > 0)
vecPaths = share.vecPaths;

https://github.com/xbmc/xbmc/blob/master....cpp#L1240
// add any concatenated paths if they exist
if (!share.vecPaths.empty())
vecPaths = share.vecPaths;

Im python programmer, no C so i can't know if this is the root cause
I update mysql database and change paths from /media/.... to nfs://media/ (as in Wiki) and added sources in the client too so now i can clean video library in client too. My Kodi3 (other client) also had sources.xml - i think that is what caused the issue in Kodi2 not able to detect the media