diff options
author | tv <tv@krebsco.de> | 2023-01-06 12:17:36 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-01-06 12:17:36 +0100 |
commit | 2cd5ed169963725cabda22635f5b4439be5e9ad0 (patch) | |
tree | bc11f3954b96f2fad2349661a1e8c4569ea84160 /lass/2configs/radio/radio.liq | |
parent | 221d5dc01244ffce0c14426e90b76f392d4c5dfa (diff) | |
parent | 0b2952f4ed9572521f7c4a21904943ac33c602b0 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'lass/2configs/radio/radio.liq')
-rw-r--r-- | lass/2configs/radio/radio.liq | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lass/2configs/radio/radio.liq b/lass/2configs/radio/radio.liq index 70d316043..1366287a7 100644 --- a/lass/2configs/radio/radio.liq +++ b/lass/2configs/radio/radio.liq @@ -10,7 +10,7 @@ def stringify_attrs(attrs) = out end -def filter_graveyard(req) = +def filter_music(req) = filename = request.filename(req) if string.match(pattern = '.*/\\.graveyard/.*', filename) then false @@ -27,7 +27,7 @@ end env = environment() port = string.to_int(env["RADIO_PORT"], default = 8000) -all_music = playlist(env["MUSIC"], check_next = filter_graveyard) +all_music = playlist(env["MUSIC"], check_next = filter_music) wishlist = request.queue() tracks = fallback(track_sensitive = true, [wishlist, all_music]) tracks = blank.eat(tracks) @@ -36,7 +36,7 @@ last_metadata = ref([]) def on_metadata(m) = last_metadata := m print("changing tracks") - out = process.read(env["HOOK_TRACK_CHANGE"], env = m) + out = process.read(env["HOOK_TRACK_CHANGE"], env = m, timeout = 5.0) print(out) end tracks.on_metadata(on_metadata) |