2013-09-12, 22:11
(2013-09-12, 16:07)slinuxgeek Wrote: By going through the source code in file "addons/script.audio.spotimc/resources/libs/spotimcgui/settings.py"
I found that for automatic cache management following is written:
PHP Code:if after_cache_management == CacheManagement.Automatic:
session.set_cache_size(0)
How do you make it to use 10% of available disk space by setting the cache size to 0?
where is that code written to understand 0 as 10% of available disk space? Is that in some .egg file(s)? Please help me locate that.
I have to make it 50%
Thanks for help in advance.
Hi slinuxgeek. I haven't looked at any of the code for spotimc, but I've worked a lot with libspotify (which is the C library from spotify that spotimc uses). Setting the cache size to 0 will let libspotify automatically manage the cache as 10% of available disk space. Unfortunately there's no way to change this percentage, if you want something else you'll need to manage it yourself. Look here:
https://developer.spotify.com/docs/libsp...7bee7adfea
(This is the C library method called to set the cache size in libspotify)