Kodi Community Forum

Full Version: Path Substitution and Library Updates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using a new windows build and trying to create a new MySQL library that will be compatible with my other OpenELEC/Ubuntu clients. Right now my OpenELEC/Ubuntu clients use NFS exports and local OS mounts in /storage/mount/. Works great, no problems there.

For my windows client I have the same NFS shares being exported via Samba and figured I would use Path Substitution to make it able to access and read the library, i.e. replace all /storage/mount paths with smb://server/ paths. My understanding was that during a library update it would do a reverse substitution, such that it sees smb://server/path/movie and checks the library paths for /storage/mount/movie. If not found it adds it to the library using /storage/mount/movie path format (i.e. the original before substitution).

In practise however, whilst the substitution works great for accessing the media it does not work for library updates. Every update results in no new content, even though currently the library is actually empty.

I don't want to go back to Samba across the board since the windows client is temporary and OpenELEC or Ubuntu will be the final clients (once EDEN goes stable and libnfs matures etc).

Any help would be much appreciated!

Code:
<substitute>
    <from>/storage/mount/media1</from>
    <to>smb://lara/mybook1</to>
</substitute>

09:45:02 T:1508  NOTICE: Starting XBMC, Platform: Windows 7, 32-bit Service Pack 1 build 7601. Built on Aug 21 2011 (Git:20110820-046ab03, compiler 1600)

09:45:33 T:2512  NOTICE: VideoInfoScanner: Starting scan ..
09:45:33 T:2512   DEBUG: CMultiPathDirectory::GetDirectory(multipath://%2fstorage%2fmount%2fmedia1%2fMovies%2f/%2fstorage%2fmount%2fmedia2%2fMovies%2f/%2fstorage%2fmount%2fmedia3%2fMovies%2f/%2fstorage%2fmount%2fmedia4%2fMovies%2f/)
09:45:33 T:2512   DEBUG: Getting Directory (/storage/mount/media1/Movies/)
09:45:33 T:2512   DEBUG: Getting Directory (/storage/mount/media2/Movies/)
09:45:33 T:2512   DEBUG: Getting Directory (/storage/mount/media3/Movies/)
09:45:33 T:2512   DEBUG: Getting Directory (/storage/mount/media4/Movies/)
09:45:33 T:2512   DEBUG: CMultiPathDirectory::MergeItems, items = 244

09:45:33 T:2512   DEBUG: Testing path: [168] smb://lara/mybook1/Movies/Surveillance (2008)/

09:45:43 T:2512   DEBUG: VideoInfoScanner: Scanning dir 'multipath://%2fstorage%2fmount%2fmedia1%2fMovies%2f/%2fstorage%2fmount%2fmedia2%2fMovies%2f/%2fstorage%2fmount%2fmedia3%2fMovies%2f/%2fstorage%2fmount%2fmedia4%2fMovies%2f/' as not in the database
09:45:47 T:2512   DEBUG: VideoInfoScanner: No (new) information was found in dir multipath://%2fstorage%2fmount%2fmedia1%2fMovies%2f/%2fstorage%2fmount%2fmedia2%2fMovies%2f/%2fstorage%2fmount%2fmedia3%2fMovies%2f/%2fstorage%2fmount%2fmedia4%2fMovies%2f/
09:45:51 T:2512  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:17
Did you every figure this out. I am having the same issue
theadlee Wrote:Did you every figure this out. I am having the same issue

Same story hereStare