I created a quick little "bubble" stack to do just that from a function I found in the examples. It keeps up with the last 3 artist played and rejects duplicate artists. I suppose a stack would be better but there is speed you will have to think about. A function can't be to busy during track switch.
# Monitors playlist and skips playing the same artist # twice in a row prev1 = ref("") prev2 = ref("") prev3 = ref("") def check_next(r) metadata = request.metadata(r) if metadata["artist"] == "" then true else if metadata["artist"] == !prev1 or metadata["artist"] == !prev2 or metadata["artist"] == !prev3 then false else prev3 := !prev2 prev2 := !prev1 prev1 := metadata["artist"] true end end end On Sat, Apr 14, 2018 at 4:07 PM, <jwhy...@warwind.org> wrote: > Most of this seems to be fairly straight forward and easy enough to figure > out. I think I’m missing something on lists. > > > > Well what I’m trying to figure out is how to create a stack. My first > though it so create one to keep up with artists and songs are played to > avoid duplicates. > > > > From: Nicholas Vrtis <nick.vr...@gmail.com> > Sent: Friday, April 13, 2018 9:39 PM > To: savonet-users@lists.sourceforge.net > Subject: Re: [Savonet-users] Any eamples on how to use lists > > > > Not that directly show lists as far as I remember. A number of the examples > use lists as part of the code. > > > > The API documentation on them is fairly good, since a list isn't too > complicated. > > > > I guess another question would be: > > What do you want to do with the list? > > Maybe we can all work on that, and use it as an example. > > > > Nick > > > > On Fri, Apr 13, 2018 at 9:45 PM, Jeff Hyche <jwhy...@warwind.org> wrote: > > Are there any examples of list practices any where? > > On Fri, Apr 13, 2018 at 01:42:04PM -0500, Jeff Hyche wrote: >> Can some one recommend a tutoral or even some examples of how to use the >> lists commands? I'm specfically looking on how to search a list for >> entry. >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Savonet-users mailing list >> Savonet-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/savonet-users > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Savonet-users mailing list > Savonet-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/savonet-users > > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Savonet-users mailing list > Savonet-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/savonet-users > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users