@@ -744,8 +744,8 @@ class SingleEntry(DB.Model, AuraDatabaseModel):
type=EngineUtil.get_channel_type(self.uri)
iftype==ChannelType.FILESYSTEM:
returnChannel.FILESYSTEM_A
eliftype==ChannelType.STREAM:
returnChannel.STREAM_A
eliftype==ChannelType.HTTP:
returnChannel.HTTP_A
else:
return"foo:bar"
#FIXME Extend & finalize!!
...
...
@@ -943,7 +943,7 @@ class SingleEntryMetaData(DB.Model, AuraDatabaseModel):
#
# def set_entry_type(self):
# if self.uri.startswith("http"):
# self.type = ScheduleEntryType.STREAM
# self.type = ScheduleEntryType.HTTP
# if self.uri.startswith("pool") or self.uri.startswith("playlist") or self.uri.startswith("file"):
# self.type = ScheduleEntryType.FILESYSTEM
# if self.uri.startswith("live") or self.uri.startswith("linein"):
...
...
@@ -1052,7 +1052,7 @@ class SingleEntryMetaData(DB.Model, AuraDatabaseModel):
# if self.type == self.type.LIVE_0 or self.type == self.type.LIVE_1 or self.type == self.type.LIVE_2 or self.type == self.type.LIVE_3 or self.type == self.type.LIVE_4: