Skip to content
Snippets Groups Projects
Commit 5b2cf274 authored by David Trattnig's avatar David Trattnig
Browse files

Added scheduled fallback playlist source. #43

parent 8f152443
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ output_source = fallback( ...@@ -92,7 +92,7 @@ output_source = fallback(
id="fallback-scheduled", id="fallback-scheduled",
track_sensitive=false, track_sensitive=false,
replay_metadata=true, replay_metadata=true,
[ stripped_stream, input_fallback_scheduled]) [ stripped_stream, fallback_playlist])
output_source = fallback( output_source = fallback(
id="fallback-station-playlist", id="fallback-station-playlist",
......
...@@ -47,7 +47,11 @@ input_filesystem_1 = on_metadata(id="in_filesystem_1", on_metadata_notification, ...@@ -47,7 +47,11 @@ input_filesystem_1 = on_metadata(id="in_filesystem_1", on_metadata_notification,
# FALLBACK SOURCES # # FALLBACK SOURCES #
##################################### #####################################
input_fallback_scheduled = request.equeue(id="in_fallback_scheduled") fallback_playlist = playlist(
id="playlist_fallback_scheduled",
"",
mode="normal",
reload_mode="watch")
station_playlist = playlist( station_playlist = playlist(
id="station_playlist", id="station_playlist",
...@@ -64,12 +68,12 @@ station_folder = mksafe( ...@@ -64,12 +68,12 @@ station_folder = mksafe(
reload_mode="seconds")) reload_mode="seconds"))
# Apply ReplayGain Normalization # Apply ReplayGain Normalization
input_fallback_scheduled = amplify(id="in_fallback_scheduled", 1., override="replay_gain", input_fallback_scheduled) fallback_playlist = amplify(id="playlist_fallback_scheduled", 1., override="replay_gain", fallback_playlist)
station_playlist = amplify(id="station_playlist", 1., override="replay_gain", station_playlist) station_playlist = amplify(id="station_playlist", 1., override="replay_gain", station_playlist)
station_folder = amplify(id="station_folder", 1., override="replay_gain", station_folder) station_folder = amplify(id="station_folder", 1., override="replay_gain", station_folder)
# Add Event Handlers # Add Event Handlers
input_fallback_scheduled = on_metadata(id="in_fallback_scheduled", on_metadata_notification, input_fallback_scheduled) fallback_playlist = on_metadata(id="playlist_fallback_scheduled", on_metadata_notification, fallback_playlist)
station_playlist = on_metadata(id="station_playlist", on_metadata_notification, station_playlist) station_playlist = on_metadata(id="station_playlist", on_metadata_notification, station_playlist)
station_folder = on_metadata(id="station_folder", on_metadata_notification, station_folder) station_folder = on_metadata(id="station_folder", on_metadata_notification, station_folder)
...@@ -121,19 +125,6 @@ server.register(namespace=source.id(input_filesystem_1), ...@@ -121,19 +125,6 @@ server.register(namespace=source.id(input_filesystem_1),
end end
) )
# Clear Scheduled Fallback Queue
server.register(namespace=source.id(input_fallback_scheduled),
description="Clear all items of the scheduled fallback queue.",
usage="clear",
"clear",
fun (s) ->
begin
clear_queue(input_fallback_scheduled)
"Clearing done."
end
)
# Seek Filesystem Queue A # Seek Filesystem Queue A
server.register(namespace = source.id(input_filesystem_0), server.register(namespace = source.id(input_filesystem_0),
description="seek to relative position in #{source.id(input_filesystem_0)}", description="seek to relative position in #{source.id(input_filesystem_0)}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment