Replies: 1 comment 1 reply
-
Hi @PilatP, playlist_path="#{playlist_dir}/playlist_news.m3u"
files = playlist.files(playlist_path)
log.debug("playlist_path=#{playlist_path}, files=#{files}", label="get_today_news")
news = list.find(
fun (path) -> begin
result = string.contains(substring=current_date, path)
log.debug("path=#{path}, current_date=#{current_date}, result=#{result}", label="get_today_news")
result
end,
files
) By the way, if I were you, I would use the ISO 8601 date format. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
azuracas + liquidsoap
I have function to find a today news
After the script was run I uploaded a news track
новости_06.05.2025.mp3
and I'm sure that the playlist was updated.But I'm getting
It's weird but is there any cache?
If I restart liquidsoap it's going to find the news.
Beta Was this translation helpful? Give feedback.
All reactions