@@ -28,17 +28,19 @@ from datetime import datetime, timedelta
frommodules.base.utilsimportSimpleUtilasSU
frommodules.base.mailimportAuraMailer
frommodules.core.resourcesimportResourceClass
frommodules.core.engineimportEngine
frommodules.core.channelsimportChannel
classFallbackType(Enum):
"""
Types of playlists.
"""
NONE={"id":0,"name":"default"}# No fallback active, default playout
SCHEDULE={"id":1,"name":"schedule"}# The first played when some default playlist fails
SHOW={"id":2,"name":"show"}# The second played when the timeslot fallback fails
STATION={"id":3,"name":"station"}# The last played when everything else fails
NONE={"id":0,"name":"default","lqs_sources":[Channel.QUEUE_A,Channel.QUEUE_A]}# No fallback active, default playout
SCHEDULE={"id":1,"name":"schedule","lqs_sources":[Channel.FALLBACK_QUEUE_A,Channel.FALLBACK_QUEUE_B]}# The first played when some default playlist fails
SHOW={"id":2,"name":"show","lqs_sources":["station_folder","station_playlist"]}# The second played when the timeslot fallback fails
STATION={"id":3,"name":"station","lqs_sources":["station_folder","station_playlist"]}# The last played when everything else fails