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

Map channels to channel-types.

parent 6a9e37d7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment