PDA

View Full Version : Custom Skip Filter - Never Played Songs



Club1820
2007-06-25, 11:44
I mostly play my songs by choosing several genres and playing them randomly. I currently am using the customer skip filter to only play songs that have not played within the last 24 hours. Unfortunately the maximum amount of time is 24 hours.

Does anyone know if this can be increased? Or is there another way to only play songs that for example, have not been played for 72 hours? Or perhaps a week, month. etc. ?

Thanks.

erland
2007-06-25, 13:45
I mostly play my songs by choosing several genres and playing them randomly. I currently am using the customer skip filter to only play songs that have not played within the last 24 hours. Unfortunately the maximum amount of time is 24 hours.

Does anyone know if this can be increased? Or is there another way to only play songs that for example, have not been played for 72 hours? Or perhaps a week, month. etc. ?

Thanks.
If you use the "Random songs" playlist available under "Dynamic Playlists" menu when you have the SQLPlayList plugin installed, the songs will not be repeated until the whole library has been played. I suppose you are using the Random Mix plugin now ?

I think what you ideally want to make this work is a new option on this "Random songs" playlist to select the number of hours/days until a song is allowed to play again. I will add this to the wish list to the SQLPlayList/DynamicPlaylist plugins.

In theory you could also use the Custom Skip plugin for this, but I don't think it will be a good solution if you choose to skip everything played within the last 72 hours. The reason is that there will be a lot of skipping going on after a number of days and this will slow down the performance. This is especially the case if almost all tracks within the selected genres has been played. Anyway, if you still want to go the Custom Skip route I think you will be able to change the *.cs.xml file manually, you should find the time in number of seconds in this file. For example 86400 if you have selected to skip everything within 24 hours. I think it will work if you just increase this number. I will add an option for 72 hours or something similar in the next TrackStat release.

Club1820
2007-06-25, 17:26
Erland, thanks for the quick reply!

I didnt know that the plugin - random playlist cycled through the whole library before repeating. and yes, I have also used the random mix - so perhaps the songs were repeating then and not with the dynamic playlist-random songs.

If its true about the Dynamic Playlist not repeating until the whole library is played - then that's good enough for me. I guess after initially getting my sb3 I wanted to listen to songs that hadnt been played. And it didnt seem like this was happening. Was really looking to play randomly songs that hadnt yet been played and this option wasnt available when I was trying to build a custom skip filter.

On another note - just recently this same dynamic playlist (random songs) doesnt seem to be working. After selecting the genres, saving them, and then hitting "random songs". I get an error message "Failed". I tried several times, resaving, restarting slimserver, etc. to no avail. Still says "failed".

Any ideas? Should I reinstall the plugin?

Thanks again for your help.

erland
2007-06-25, 21:28
If its true about the Dynamic Playlist not repeating until the whole library is played - then that's good enough for me. I guess after initially getting my sb3 I wanted to listen to songs that hadnt been played. And it didnt seem like this was happening. Was really looking to play randomly songs that hadnt yet been played and this option wasnt available when I was trying to build a custom skip filter.One thing I didn't mentioned is that if you abort the playlist and restart it, it will start from the beginning. So if you start a random songs playlist and never stops it, it will not repeat tracks. If you stop it and play a manually selected album in the middle and then restart the random songs playlist, it could repeat already played tracks from the last time you started it.

If I add a new option to the "Random songs" playlist, so it doesn't play songs recently played, it should take care of this case.



On another note - just recently this same dynamic playlist (random songs) doesnt seem to be working. After selecting the genres, saving them, and then hitting "random songs". I get an error message "Failed". I tried several times, resaving, restarting slimserver, etc. to no avail. Still says "failed".

Any ideas? Should I reinstall the plugin?
Try to turn on the debugging parameter in the bottom of the "Dynamic Playlists" section in "Server Settings/Plugins", after this start playing the playlist again and when it fails goto: http://localhost:9000/log.txt
Post the log here or mail it to me.

Club1820
2007-06-26, 10:42
One thing I didn't mentioned is that if you abort the playlist and restart it, it will start from the beginning. So if you start a random songs playlist and never stops it, it will not repeat tracks. If you stop it and play a manually selected album in the middle and then restart the random songs playlist, it could repeat already played tracks from the last time you started it.

If I add a new option to the "Random songs" playlist, so it doesn't play songs recently played, it should take care of this case.

Oh, Ok. Yes, I would start a random playlist and then clear it to listen to particular songs or albums. Then use a random playlist again. So a new option of not playing recently played songs would help. Although wouldnt my custom skip filter be taking care of this? I guess it would be easier if you could add it to the random playlist as an option. ?



Try to turn on the debugging parameter in the bottom of the "Dynamic Playlists" section in "Server Settings/Plugins", after this start playing the playlist again and when it fails goto: http://localhost:9000/log.txt
Post the log here or mail it to me.

I just sent you a copy of the log to your hotmail account.

erland
2007-06-26, 21:21
Try to turn on the debugging parameter in the bottom of the "Dynamic Playlists" section in "Server Settings/Plugins", after this start playing the playlist again and when it fails goto: http://localhost:9000/log.txt
Post the log here or mail it to me.

I just sent you a copy of the log to your hotmail account.
I suspect the log from the failed attempt isn't from a failed attempt. I'll add some more debug messages in the next Dynamic Playlist release, but at the moment I'm pretty sure this log isn't from a failed attempt.

Just to make sure:
- When it fails, are you clicking the buttons in the SS web interface ?
- Is it the play button or the + button ? (It looks like the + button from the log)
- Does the SqueezeBox display say "Failed" when it fails or do you see it some other way ?

There is an issue with the RandomPlaylist plugin which cause it to fail if you start the playlist from the "Random Playlists" menu and not the "Dynamic Playlists" menu. The problem occurs if you choose the +/add button from the "Random Playlists" menu and you have never shown the "Dynamic Playlists" menu since last SlimServer restart. The play buttons seems to work correctly.

But to make a long story short, I would suggest that you use the SQLPlayList plugin instead of the RandomPlayList plugin. The reason is that the SQLPlayList plugin provides similar random menus with some more options and it doesn't have the previous described "failed" problem. Any new functionality will also only be made to the SQLPlayList plugin and not to the RandomPlayList plugin.

Club1820
2007-06-27, 08:26
I suspect the log from the failed attempt isn't from a failed attempt. I'll add some more debug messages in the next Dynamic Playlist release, but at the moment I'm pretty sure this log isn't from a failed attempt.
Well, the only thing I know is that the random list was not created and nothing was added to the player on this attempt.

Just curious, why was the 1st log entry I sent you (failed/no playlist created) so much shorter than the successful one?



Just to make sure:
- When it fails, are you clicking the buttons in the SS web interface ?
- Is it the play button or the + button ? (It looks like the + button from the log)
- Does the SqueezeBox display say "Failed" when it fails or do you see it some other way ?

The SB3 display does say failed.

It has failed both when trying from SS and from the SB3. I do believe it has been mostly when hitting the + add button, but I seem to recall the one time I did it from the SB3, I hit the play button and it also failed. (I could be wrong on this?).

The 2 log attempts I sent you were attempted at work using SS and listening through Squeezebox. The successful attempt was in fact when I hit the Play button (on squeezebox)and not the + button. Since then, I have been able to use the + button on SS and it has worked. ?



There is an issue with the RandomPlaylist plugin which cause it to fail if you start the playlist from the "Random Playlists" menu and not the "Dynamic Playlists" menu. The problem occurs if you choose the +/add button from the "Random Playlists" menu and you have never shown the "Dynamic Playlists" menu since last SlimServer restart. The play buttons seems to work correctly.

But to make a long story short, I would suggest that you use the SQLPlayList plugin instead of the RandomPlayList plugin. The reason is that the SQLPlayList plugin provides similar random menus with some more options and it doesn't have the previous described "failed" problem. Any new functionality will also only be made to the SQLPlayList plugin and not to the RandomPlayList plugin.

I have always used the Random Playlist since day one and have never had an issue until now. ? (about 2 1/2 mths)

But I will go ahead and try the SQLPlaylist and see how that goes. It just seemed easier to use the Random Playlist since it was already set up as a selection in the menu.

Thanks again for all of your help!

erland
2007-06-27, 08:54
Just curious, why was the 1st log entry I sent you (failed/no playlist created) so much shorter than the successful one?In the first log entry there were already 94 tracks in the current playlist, so when you hit the add button it retrieved the additional 6 until it reach the 100 tracks you had configured it to retrieve in the user interface.
In the second log entry you hit play, the result is that it will clear the current playlist and add 100 new tracks. Each added track generates a log row, so that's the reason why the second log entry is longer than the first.

But both logs indicates that it has actually added tracks to the playlist, so that's the reason I'm a bit confused.




I have always used the Random Playlist since day one and have never had an issue until now. ? (about 2 1/2 mths)Do you know which version of Dynamic Playlist and Random Playlist plugins are you using ?

Have you recently upgraded and of these plugins ? If so, did the problems start after the upgrade ?


It just seemed easier to use the Random Playlist since it was already set up as a selection in the menu.I'm not sure I understand what you mean with this.
The SQLPlayList plugin provides four built-in random playlists by default:
- Random Albums
- Random Artists
- Random Years
- Random Tracks
This wasn't the situation in the first releases, but now it is. The SQLPlayList playlists is shown:
- On the SqueezeBox: Below the "Dynamic Playlists" menu
- On the web interface: Below the "Dynamic Playlists" menu and below the "SQL Playlists" menu.
The built-in playlists are available in these places directly after the installation.
Or are you thinking about something else with "... already set up as a selection in the menu" ?

Club1820
2007-06-27, 12:07
But both logs indicates that it has actually added tracks to the playlist, so that's the reason I'm a bit confused.

Not sure what to tell you. ? But the 1st entry log was of a failed attempt.


Do you know which version of Dynamic Playlist and Random Playlist plugins are you using ?

Have you recently upgraded and of these plugins ? If so, did the problems start after the upgrade ?

I tried to locate a version # but couldnt. Not sure where to look exactly. ? But if it helps, I first dl from your website in mid-april. Have not upgraded or reinstalled them since.



I'm not sure I understand what you mean with this.
The SQLPlayList plugin provides four built-in random playlists by default:
- Random Albums
- Random Artists
- Random Years
- Random Tracks
This wasn't the situation in the first releases, but now it is. The SQLPlayList playlists is shown:
- On the SqueezeBox: Below the "Dynamic Playlists" menu
- On the web interface: Below the "Dynamic Playlists" menu and below the "SQL Playlists" menu.
The built-in playlists are available in these places directly after the installation.
Or are you thinking about something else with "... already set up as a selection in the menu" ?

I think we are talking about the same thing. I attached a snapshot of the menu in fishbone skin of SS.

Thanks.