diff --git a/libraries/enum/auraenumerations.py b/libraries/enum/auraenumerations.py index 6d563e8cec6b96972b6f25b1704abbe3e062abdb..4d895ba5716d62c593b83bd66db83974fa5ba8b6 100644 --- a/libraries/enum/auraenumerations.py +++ b/libraries/enum/auraenumerations.py @@ -61,15 +61,6 @@ class RedisChannel(Enum): SNF_REPLY = "get_next_file_reply" -class ChannelType(Enum): - """ - Engine channel types mapped to `Entry` source types. - """ - FILESYSTEM = "fs" - STREAM = "http" - LIVE = "live" - - class Channel(Enum): """ Channel name mappings to the Liqidsoap channel IDs @@ -85,6 +76,30 @@ class Channel(Enum): LIVE_4 = "aura_linein_4" +class ChannelType(Enum): + """ + Engine channel types mapped to `Entry` source types. + """ + FILESYSTEM = { + "id": "fs", + "channels": [Channel.FILESYSTEM_A, Channel.FILESYSTEM_B] + } + STREAM = { + "id": "http", + "channels": [Channel.STREAM_A, Channel.STREAM_B] + } + LIVE = { + "id": "live", + "channels": [ + Channel.LIVE_0, + Channel.LIVE_1, + Channel.LIVE_2, + Channel.LIVE_3, + Channel.LIVE_4 + ] + } + + class FallbackType(Enum): SHOW = "show" # the first played when the show playlist fails TIMESLOT = "timeslot" # the second played when timeslot fallback fails