check_next
question
#3816
-
Hi! I've got a question and would like to ask for your help. I know that it's possible to avoid repetitions of the file with this function:
But what should be done/changed in order to check the Artist? I mean with the above function Maybe it's possible to achieve somehow with making a file with playback history and checking through it? I'm not good at writing function stuff. So here I am. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Hi @Marco8585,
That's pretty easy, you should use artist as the identifier. def my_hash(m)
metadata.artist(m)
end |
Beta Was this translation helpful? Give feedback.
-
It all very much depends upon how good your files are tagged. I’d probably use the MusicBrainz Artist ID to identify an artist (or maybe even the MusicBrainz Artist Sortname), and the ISRC (if known) for song identification. But @vitoyucepi’s script examples—as usual—are great! |
Beta Was this translation helpful? Give feedback.
It depends on the desired behavior. Maybe you could use an already defined
check
function in each of them. You could also define your own function with the playlist encapsulated in it.Sure, yes
The
playlog
function is a good solution, but you may want to crea…