登录:     


Forum: General Discussion

Topic: 'Remove already played' with a script?
There is a line on the Automix menu called 'Remove Already Played'. It works perfectly by removing all the songs that have been played from the playlist except for the currently playing song.

I want to use this feature with a keyboard, but all I found was the script called 'playlist_remove_played', which works differently and removes all played songs, including the currently playing one.

So, what script would perform the same function as the command on the Automix menu does?
 

发表时间 Sat 01 Feb 25 @ 8:16 pm
That is the action.

Whether or not the track that's "playing" will get removed depends on whether or not it has been audible for enough time to get marked as played.

In other words, if the track that's playing out is only playing for 15 seconds when you use the action, it won't get removed.
However, if the track has been playing for 40 seconds in the air (and therefore marked as played) when you use the script, it WILL get removed among with the other tracks.
 

You didn't tell me anything new, but you gave me an idea 😁👍
I need something like this:

Automix && Deck automix song position > 0 && The Song is played ?

Mark the Song as unplayed & playlist_remove_played & Mark the Song as played :

playlist_remove_played
 

(automix & param_bigger 0 `get_automix_position`) ? deck automix not_played & (playlist_remove_played)


That's all I was able to do... It was surprise for me that I couldn't find an action for marking a song as played. Is the really no such action?!
 

browsed_song "already played" 1
 

Thanks!! It works!

(automix && param_bigger 0 `get_automix_position` && deck automix loaded_song "Already Played" 1) ? deck automix loaded_song "Already Played" 0 & playlist_remove_played & deck automix loaded_song "Already Played" 1 : playlist_remove_played