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

PlaylistType mapping.

parent 27508952
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
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