From d6522acc84c5aba9d70c433d6a508b14465f3bd5 Mon Sep 17 00:00:00 2001
From: David Trattnig <david.trattnig@o94.at>
Date: Sat, 21 Mar 2020 09:44:45 +0100
Subject: [PATCH] Map channels to channel-types.

---
 libraries/enum/auraenumerations.py | 33 ++++++++++++++++++++++--------
 1 file changed, 24 insertions(+), 9 deletions(-)

diff --git a/libraries/enum/auraenumerations.py b/libraries/enum/auraenumerations.py
index 6d563e8c..4d895ba5 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
-- 
GitLab