diff --git a/modules/base/enum.py b/modules/base/enum.py index a35c16b7a65e64e17eb535c67dd36277a579584b..2a655aee8fce7b54879cf0f4e7bfbda8ce77717b 100644 --- a/modules/base/enum.py +++ b/modules/base/enum.py @@ -102,11 +102,18 @@ class TransitionType(Enum): FADE = "fade" -class FallbackType(Enum): - SHOW = "show" # the first played when the show playlist fails - TIMESLOT = "timeslot" # the second played when timeslot fallback fails - STATION = "station" # the last played when everything else fails +class PlaylistType(Enum): + DEFAULT = { "id": 0, "name": "default" } # Default play mode + SHOW = { "id": 1, "name": "show" } # The first played when some default playlist fails + TIMESLOT = { "id": 2, "name": "timeslot" } # The second played when the timeslot fallback fails + STATION = { "id": 3, "name": "station" } # The last played when everything else fails + @property + def id(self): + return self.value["id"] + + def __str__(self): + return str(self.value["name"]) class TimerType(Enum):