New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playing recently played songs over and over again. #333
Comments
|
I tried this |
anyone? |
Hi! Take a look at issue #197. The check_next parameter must receive a callback function. |
Thanks @giflw for response but I have no idea how it's supposed to look. |
I tried to add this at playlist |
Hi! As I don't know how much you know about liquidsoap I'll do a brief introduction here. As OCaml, liquidsoap is functional. So you don't have mutable states by default. All is function or immutable values. The type Well, in this case, check_next parameter will receive a function to use as a callback. So, you need to give a function referece to that parameter: Now from the docs about playlist we have From issue #197:
The first line, Next we define a function that accept one argument: This check next function uses metadata filename, but you can use anything that you can get from the given request. I hope this help. |
Awesome, thanks @giflw ! |
I'm running liquidsoap 1.3.3 on Debian 9, and I'm getting the following:
I am using the following:
Any ideas? |
Hi, as told on the mailing list, I do use a trick: grepping through the logs to do that: |
For info, I have just introduced
|
Damn… That code was from 2018, nice… But in fact, I updated it quite a lot, and my repeat was written in a not so elegant way, Edit: I have read the playlog() niceness, but… is this not growing forever? I'm a bit worried that for streams I have, that literally ran for years, that might be an issue… And I think my implementation was not that nice either, but I tried to address cleaning up after a given time, so I don't retain the playlog for longer than needed. Could we set a playlog(persistent_log="/tmp/myfile.txt") or something? Also… It brings another question I had in mind, that might be out of scope here: you set hash() to use the filename, what would be the nicest way to be able to deal with something like an actual md5sum() of the file itself throughout (I'm thinking about storing unique ids, rather than the filename, and not mistaking 2 same files with a different name…). Adding the md5sum or acoustic id in the metadata ? :P |
Let me try to answer this:
|
I just added a |
Closing this since |
Is there a way to skip recently played songs? It's frusturating because my playlist isn't huge and pretty often I hear same song over and over again. If there was a way to skip certain song if it was recenlty played that would be awesome.
The text was updated successfully, but these errors were encountered: