Skip to content

Commit

Permalink
🐛 (liquidsoap) stop sniffing mimetype on playlists and don't use play…
Browse files Browse the repository at this point in the history
…list.once anymore
  • Loading branch information
hairmare committed Aug 23, 2020
1 parent 9b82a16 commit 4925c9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions klangbecken.liq
Expand Up @@ -103,24 +103,24 @@ def check_next_func(r) =
end

# Priority playlist for 'play next' feature
prio = playlist.once(id="prio", reload_mode="watch", path.concat(DATA_DIR, "prio.m3u"))
prio = playlist(id="prio", reload_mode="watch", mode="normal", mime_type="audio/x-mpegurl", path.concat(DATA_DIR, "prio.m3u"))
# Cut silence at start and end
prio = cue_cut(prio, cue_in_metadata="cue_in", cue_out_metadata="cue_out")

# Music playlist
music = playlist(id="music", mode="randomize", reload_mode="watch",
music = playlist(id="music", mode="randomize", reload_mode="watch", mime_type="audio/x-mpegurl",
check_next=check_next_func, path.concat(DATA_DIR, "music.m3u"))
# Cut silence at start and end
music = cue_cut(music, cue_in_metadata="cue_in", cue_out_metadata="cue_out")

# Classics playlist
classics = playlist(id="classics", mode="randomize", reload_mode="watch",
classics = playlist(id="classics", mode="randomize", reload_mode="watch", mime_type="audio/x-mpegurl",
check_next=check_next_func, path.concat(DATA_DIR, "classics.m3u"))
# Cut silence at start and end
classics = cue_cut(classics, cue_in_metadata="cue_in", cue_out_metadata="cue_out")

# Jingles playlist
jingles = playlist(id="jingles", mode="randomize", reload_mode="watch",
jingles = playlist(id="jingles", mode="randomize", reload_mode="watch", mime_type="audio/x-mpegurl",
check_next=check_next_func, path.concat(DATA_DIR, "jingles.m3u"))
# Convert mono jingles to stereo
jingles = audio_to_stereo(jingles)
Expand Down

0 comments on commit 4925c9b

Please sign in to comment.