Skip to content

check_next question #3816

Answered by vitoyucepi
ghost asked this question in Q&A
Mar 24, 2024 · 2 comments · 12 replies
Discussion options

You must be logged in to vote

And I have to use new playlog function for every playlist?

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.

Maybe it is better to trim artist_name in case same artist would exist but without spaces

Sure, yes

def my_hash(m)
  artist = metadata.artist(m)
  string.trim(artist)
end

playlog(persistency="p.log", duration=7200., hash=my_hash)

Is there a "best practice" for such case in general (I mean not repeating an artist) taking into consideration my lack of LS skills? Something robust?

The playlog function is a good solution, but you may want to crea…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
12 replies
@ghost
Comment options

@vitoyucepi
Comment options

Answer selected
@ghost
Comment options

@vitoyucepi
Comment options

@ghost
Comment options

@vitoyucepi
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants