Skip to content

Run in a jingle way #4382

Answered by vitoyucepi
PilatP asked this question in Q&A
Mar 2, 2025 · 1 comments · 9 replies
Discussion options

You must be logged in to vote

@PilatP, if it's possible to set prefetch=0 for playlist_calls, then try the following snippet

thread.when({0m-15m}, {playlist_calls.fetch()}, fast=false)
radio = fallback([playlist_calls, playlist_music], track_sensitive=false)
  1. I defined playlist_calls as playlist('path/to/playlist', prefetch=0), so it would not fetch new tracks automatically.
  2. The first argument of thread.when behaves similarly to predicate.activates.
  3. The second argument of thread.when tries to fetch a new track from the playlist.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@vitoyucepi
Comment options

@PilatP
Comment options

@PilatP
Comment options

@vitoyucepi
Comment options

Answer selected by PilatP
@PilatP
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants