Page 1 of 1

Configure random album list refresh

PostPosted: Thu Jul 23, 2020 1:14 pm
by demodulated
The default page shown when a user logs in is an automatically-refreshing list of random albums. In my opinion this has two problems:
  1. The delay between refreshes may be too frequent or infrequent for the user to choose an album
  2. Leaving this page open prevents the server's hard drive from going to sleep
I request that the refresh rate be configurable in the following ways:
  • Let the administrator configure a default refresh rate for all users, including forbidding automatic refresh of random albums
  • Let the user configure a default refresh rate for their own random album list, omitting any administrator restrictions
  • In addition to the above, make the default album list page something other than random to avoid unnecessary load on the server hard drive
Does anyone else have any thoughts on this proposal?

Re: Configure random album list refresh

PostPosted: Mon Sep 14, 2020 12:36 pm
by 3Dscrewer
For Random, it is only showing random album as long the browser is open, leaving the page it is stopping.

using settings -> Personal you can choose a couple of start pages, my start page is showing 40 new albums by default, with next button, without refreh. For smaller collections it might be usefull to choose all, where 40 Albums are shown with a next button. To go back, you have to use the browser back .... having more than 20,000 Albums it is not very useful ;-)

Re: Configure random album list refresh

PostPosted: Sun Feb 07, 2021 1:06 pm
by bol
I also want to chime in to make the random albums page refresh rate configurable.

It is my most common way to choose what album to listen to, but the fast refresh of the page inhibits this function to be truly useful.

Is there any way to change this behind the scenes, or is this value hard coded in to the source before the software is built? I don't mind digging in to the code, but if its set before the application is built from source makes it impossible to change since Subsonic isn't open source any more.

Re: Configure random album list refresh

PostPosted: Sun Feb 07, 2021 4:44 pm
by acroyear
there's a function in that iframe for the albums page called "init()". it is in the last script tag of the album page's iframe.

When on random, it contains "setTimeout(refresh, 10000)" - reloading the page every 10 seconds. When on a non-random list, the function is empty.

Not sure what you can do with that info.

There are some extensions (like Tampermonkey) that allow you to run additional javascript, so potentially you could replace the init function that way. While I could probably figure it out, I'm not really a big user of the main UI anymore - only for ID3 fixes and triggering re-scans, so I usually set mine to "recently added" in order to make sure the scan found the new or moved files correctly.

I use my own apps for everything else.