Commit a986bc4d authored by David Trattnig's avatar David Trattnig
Browse files

Fixed channel property.

parent dd12d43c
......@@ -467,9 +467,9 @@ class PlaylistEntry(DB.Model, AuraDatabaseModel):
@hybrid_property
def channel(self):
type = EngineUtil.get_channel_type(self.uri)
if type == ChannelType.FILESYSTEM["id"]:
if type == ChannelType.FILESYSTEM:
return Channel.FILESYSTEM_A
elif type == ChannelType.STREAM["id"]:
elif type == ChannelType.STREAM:
return Channel.STREAM_A
else:
return "foo:bar"
......@@ -755,9 +755,9 @@ class SingleEntry(DB.Model, AuraDatabaseModel):
@hybrid_property
def channel(self):
type = EngineUtil.get_channel_type(self.uri)
if type == ChannelType.FILESYSTEM["id"]:
if type == ChannelType.FILESYSTEM:
return Channel.FILESYSTEM_A
elif type == ChannelType.STREAM["id"]:
elif type == ChannelType.STREAM:
return Channel.STREAM_A
else:
return "foo:bar"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment