2017-09-05, 05:55
(2017-09-05, 05:11)80njc80 Wrote: ./texturecache.py jd movies | ./mklocal.py --local /freenas/media --prefix nfs://192.168.0.3/mnt/share/media --artwork fanart poster clearlogo clearart --output fixup.dat
I am running Libreelec on my pi and accessing my NAS via NFS. Is --local where the cache will be stored on my pi i.e. /freenas/media? Is this a fixed folder I have to create for it to work? Will try below tonight and see if it works. I have my media in a parent folder Videos... Not sure I have to specify or leave as parent?
movies:
./texturecache.py jd movies | ./mklocal.py --local /freenas/media --prefix nfs://IP>ADDRESS/Videos/Movies --artwork fanart poster clearlogo clearart --output fixup.dat
tvshows:
./texturecache.py jd tvshows | ./mklocal.py --local /freenas/media --prefix nfs://IP>ADDRESS/Videos/TV Shows --artwork fanart poster clearlogo clearart --output fixup.dat
No, --local is the OS equivalent mount point for nfs://192.168.0.3/mnt/share/media - in my example, "/freenas/media" is a mount point (for the OS) that gives access to the same content as nfs://192.168.0.3/mnt/share/media (which is a Kodi "mount point"). The script can only access OS mounts, not nfs://whatever, so it has to map and translate between the two, but can access only the content specified by --local.
You can call the --local folder whatever you like, it's just a mount point. The only requirement is that it gives access to the same content as your --prefix. That way the script can translate the paths from Kodi to OS when it needs to, accessing the content (reading, writing, etc.) via the --local path, and then translating the OS paths back to the Kodi nfs:// format for subsequent updating.
Given your examples, assuming your NFS export is actually <IPADDRESS>/Videos (ie. a common top level root used by both your Movies and TV Shows), then the following should work so long as the /freenas/media mount point gives access to the <IPADDRESS>/Videos top-level directory:
Code:
./texturecache.py jd movies | ./mklocal.py --local /freenas/media --prefix nfs://<IPADDRESS>/Videos --artwork fanart poster clearlogo clearart --output fixup.dat
./texturecache.py jd tvshows | ./mklocal.py --local /freenas/media --prefix nfs://<IPADDRESS>/Videos --artwork fanart poster clearlogo clearart --output fixup.dat
The script will then use your prefix, ie. nfs://<IPADDRESS>/Videos, to construct a path suitable for the OS, eg. nfs://<IPADDRESS>/Videos/Movies/Avatar-poster.jpg will be mapped/tranlsated to /freenas/media/Movies/Avatar-poster.jpg.