Skip to main content
Topic: Biography Discussion (Read 63850 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Biography Discussion

Reply #400
Problem: YTTM directory is grown over 900 MB !!!!!

Hello,
I want to know if it is possible to avoid any caching at all or limit to total amount of disk space used to a given limit (like 20MB or so).

Thanks and regards
Andrea

Re: Biography Discussion

Reply #401
Currently you can limit the cache size by locating the following, and entering a number, e.g. as indicated.

menu > sources > server settings:

[MISCELLANEOUS]
...
Image [Artist] Cache Limit=6

Save biography.ini after making changes & restart foobar2000.

The value is the number of images per artist. So that will limit the number of images to 6 per artist (or whatever number is entered). The cache limit is applied for a particular artist when updated during the normal image update cycle and when images are no longer in use.

Lfm have taken significant steps to inhibit image downloading already, & so I'm reluctant to potentially aggravate the situation by removing caching altogether. Also to quote from the site: "You will implement suitable caching...".

If the cache limit is used with "Auto-Add New", also in server settings, newer images are added & older removed to give a fixed number of up-to-date images.

Re: Biography Discussion

Reply #402
1.
so I'm reluctant to potentially aggravate the situation by removing caching altogether.
WilB,
But the user can independently clear the cache as much as he wants by deleting image files. Therefore, the enabled image caching mode by default allows your script to provide "You will implement suitable caching..." and having the ability to disable caching will provide the user with the necessary choices.
2.
If the cache limit is used with "Auto-Add New", also in server settings, newer images are added & older removed to give a fixed number of up-to-date images.
Enabling this mode, I can not change the mode of caching images. Maybe I'm doing something wrong, but it seems that it does not work.

3. Implementing the “lock” mode for Biography script (as suggested previously and as implemented in YouTube Track Manager script) will also allow in some cases to reduce traffic.
(It was also previously noted that the need for the "lock" mode is necessary because sometimes a song ends (image and text change) before you have time to read the text and view the images (for example when listening to internet radio).

Thank you!

Re: Biography Discussion

Reply #403
Lock mode.

I implemented that for you a while ago in the Spider Monkey Panel version. See Changelog here.

To use the feature "menu > sources > show more items" button has to be enabled. Middle click the button to toggle the lock (as indicated by the tooltips). This was added as a discrete button (top left) so as not to interfere with image only views. The button also gives access to other features through normal click.

Image [Artist] Cache Limit.

This is a per artist limit. It can't be limited to a number lower than the target number of images per artist ("Initial Fetch Number"), as that takes precedence. If auto-add is enabled that always tops up to a minimum of 5 per artist, and so it can't be lower than that either. I confirmed its working as expected on my device. It was really designed to limit increases through auto-add. It only operates as images for a particular artist are updated during the normal image update cycle and providing they not in use. It's also worth pointing out that images can be set to save anywhere. So, for example could be saved to an old "USB" stick and forgotten about etc etc. It also means that multiple foobar2000 installs can use the same set of images. If there are still issues I might consider adding some other handling.

Re: Biography Discussion

Reply #404
Lock mode.

I implemented that for you a while ago in the Spider Monkey Panel version. See Changelog here.

To use the feature "menu > sources > show more items" button has to be enabled. Middle click the button to toggle the lock (as indicated by the tooltips). This was added as a discrete button (top left) so as not to interfere with image only views. The button also gives access to other features through normal click.
WilB,
1. I apologize, I was not attentive. The lock mode feature is implemented and that made very nice and convenient.
Thank you very much! :)
Is it correct that the images continue to load when the lock mode is on?
2. I tried to experiment with the Server Settings. As a result, to limit the download of the number of images, it is enough to set the number for the parameter "Initial Fetch Number" from 1 to 20 (bioini.jpg). Thus, we can limit the size of the load, if you don't think it is right to disable caching.

Thanks again for your great work!

Re: Biography Discussion

Reply #405
Quote
Is it correct that the images continue to load when the lock mode is on?

Images for the locked artist should continue to load and cycle as normal, if that's what you mean. However, certain track types, like YouTube tracks, can be slow to start actual playback and if locked in that few second window between double-clicking a track and actual playback starting it will lock on previous.

 
SimplePortal 1.0.0 RC1 © 2008-2019