clean up
This commit is contained in:
@@ -35,19 +35,21 @@ live = audio_to_stereo(
|
||||
)
|
||||
)
|
||||
|
||||
DanDubstepThingies = "/playlists/Daniel/Dan - dubstepthingies.m3u"
|
||||
normal_songs = playlist(reload=600, mime_type="application/x-mpegURL", "http://web/playlist.php")
|
||||
halloween = playlist("/playlists/events/Halloween.m3u")
|
||||
|
||||
randomsong = playlist(conservative=true, DanDubstepThingies)
|
||||
count = list.length(playlist.parse(DanDubstepThingies))
|
||||
|
||||
randomsong = audio_to_stereo(randomsong)
|
||||
requests = audio_to_stereo(drop_video(request.queue(id="request")))
|
||||
|
||||
default = switch([
|
||||
({true}, normal_songs)
|
||||
])
|
||||
|
||||
mix = blank()
|
||||
mix = fallback(track_sensitive=false, [randomsong, mix])
|
||||
mix = fallback(track_sensitive=true, transitions=[crossfade], [requests,mix])
|
||||
mix = fallback(track_sensitive=false, [default, mix])
|
||||
mix = fallback(track_sensitive=true, [requests,mix])
|
||||
mix = fallback(track_sensitive=false, transitions=[crossfade], [live, mix])
|
||||
mix = normalize(mix)
|
||||
mix = audio_to_stereo(mix)
|
||||
|
||||
# OUTPUTS
|
||||
output.icecast(
|
||||
@@ -57,4 +59,4 @@ output.icecast(
|
||||
%wav,
|
||||
mount="dodsorfas.main",
|
||||
mix
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user