Jump to content

Issues with Caching Artwork


nuentes

Recommended Posts

nuentes

I've brought this up with you before. I have path substitution enabled in my advanced preferences, so all of my artwork gets cached to an NFS server.

I would like to use the "cache artwork" feature. When trying to use this feature in the past, I would always get an error that I was low on disc space. The NFS server had plenty of space, but my TV itself was low on storage, so I was unable to cache artwork. You finally added a feature where I could disable the disk space check (I'm currently on 7.13.1). I unchecked the box and started caching some artwork, and after a few minutes, I got swarmed with errors that my TV had run out of storage. So the artwork was somehow caching to the local storage, rather than to the NFS storage.

The relevent section of my advanced settings file is below:

 <pathsubstitution>
  <substitute>
    <from>special://profile/Thumbnails/</from>
    <to>nfs://192.168.1.209/export/kodi/Thumbnails</to>
  </substitute>
 </pathsubstitution>
Link to comment
Share on other sites

quickmic
58 minutes ago, nuentes said:

I've brought this up with you before. I have path substitution enabled in my advanced preferences, so all of my artwork gets cached to an NFS server.

I would like to use the "cache artwork" feature. When trying to use this feature in the past, I would always get an error that I was low on disc space. The NFS server had plenty of space, but my TV itself was low on storage, so I was unable to cache artwork. You finally added a feature where I could disable the disk space check (I'm currently on 7.13.1). I unchecked the box and started caching some artwork, and after a few minutes, I got swarmed with errors that my TV had run out of storage. So the artwork was somehow caching to the local storage, rather than to the NFS storage.

The relevent section of my advanced settings file is below:

 <pathsubstitution>
  <substitute>
    <from>special://profile/Thumbnails/</from>
    <to>nfs://192.168.1.209/export/kodi/Thumbnails</to>
  </substitute>
 </pathsubstitution>

This is an internal kodi setting and not respected by the plugin. However, why you are not just linking the folder? This would solve all you problems and is also what I'm doing on my Vero4K device.

Edited by quickmic
Link to comment
Share on other sites

nuentes
54 minutes ago, quickmic said:

This is an internal kodi setting and not respected by the plugin. However, why you are not just linking the folder? This would solve all you problems and is also what I'm doing on my Vero4K device.

What do you mean "linking the folder"? I'm definitely open to doing this another way. Is there no way to have the plugin respect the path substitution?

Link to comment
Share on other sites

quickmic
8 minutes ago, nuentes said:

What do you mean "linking the folder"? I'm definitely open to doing this another way. Is there no way to have the plugin respect the path substitution?

Path substitutions is a very bad workaround for something which actually should be handled on os bases.

...just my two cents

Use softlinks or mounts -> e.g. use ln -s or mount nfs into Kodi's thumbnail folder

 

root@kodi-bedroom:~# ls /home/osmc/.kodi/userdata/ -All
total 100
drwxrwxrwx  3 root root  4096 Dec 21 17:55 Database
-rw-r--r--  1 osmc osmc   380 Dec 21 17:19 RssFeeds.xml
drwxrwxrwx  5 root root  4096 May 21  2022 Savestates
lrwxrwxrwx  1 root root    23 May 21  2022 Thumbnails -> /mnt/sdcard/Thumbnails/
drwxrwxrwx 31 root root  4096 Dec 15 19:03 addon_data
-rwxrwxrwx  1 root root   451 Aug  8 18:33 advancedsettings.xml
-rwxrwxrwx  1 root root    86 May 21  2022 disp_cap
-rwxrwxrwx  1 root root 51541 Dec 10 07:57 guisettings.xml
drwxrwxrwx  2 root root  4096 May 21  2022 keymaps
drwxrwxrwx  4 root root  4096 Nov  7 13:43 library
drwxrwxrwx  2 root root  4096 May 21  2022 peripheral_data
drwxrwxrwx  5 osmc osmc  4096 Sep 18 09:44 playlists
-rwxrwxrwx  1 root root   960 Dec 21 17:36 profiles.xml
-rwxrwxrwx  1 root root   271 May 21  2022 sources.xml

Edited by quickmic
Link to comment
Share on other sites

nuentes
8 minutes ago, quickmic said:

Path substitutions is a very bad workaround for something which actually should be handled on os bases.

...just my two cents

Use softlinks or mounts -> e.g. use ln -s or mount nfs into Kodi's thumbnail folder

 

root@kodi-bedroom:~# ls /home/osmc/.kodi/userdata/ -All
total 100
drwxrwxrwx  3 root root  4096 Dec 21 17:55 Database
-rw-r--r--  1 osmc osmc   380 Dec 21 17:19 RssFeeds.xml
drwxrwxrwx  5 root root  4096 May 21  2022 Savestates
lrwxrwxrwx  1 root root    23 May 21  2022 Thumbnails -> /mnt/sdcard/Thumbnails/
drwxrwxrwx 31 root root  4096 Dec 15 19:03 addon_data
-rwxrwxrwx  1 root root   451 Aug  8 18:33 advancedsettings.xml
-rwxrwxrwx  1 root root    86 May 21  2022 disp_cap
-rwxrwxrwx  1 root root 51541 Dec 10 07:57 guisettings.xml
drwxrwxrwx  2 root root  4096 May 21  2022 keymaps
drwxrwxrwx  4 root root  4096 Nov  7 13:43 library
drwxrwxrwx  2 root root  4096 May 21  2022 peripheral_data
drwxrwxrwx  5 osmc osmc  4096 Sep 18 09:44 playlists
-rwxrwxrwx  1 root root   960 Dec 21 17:36 profiles.xml
-rwxrwxrwx  1 root root   271 May 21  2022 sources.xml

I'll look into this solution. Thanks

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...