"""
periods = [ p['id'] for p in self.periods.values('id') ]
return not periods or period.id in periods
-
+
class Meta(MetaCore):
db_table = app_label + '_' + 'course'
verbose_name = _('course')
@property
def mount_point(self):
- mount_point = self.server.type
+ # mount_point = self.server.type
if self.server.type == 'stream-m':
mount_point += '/consume/' + self.slug
else:
for stream in conf_dict['streams']:
host = getattr(settings, "TELECASTER_LIVE_STREAMING_SERVER", stream['host'])
- port = getattr(settings, "TELECASTER_LIVE_STREAMING_PORT", stream['port'])
server_type = stream['server_type']
stream_type = stream['stream_type']
+ if server_type == 'icecast':
+ port = getattr(settings, "TELECASTER_LIVE_ICECAST_STREAMING_PORT", stream['port'])
+ elif server_type == 'stream-m':
+ port = getattr(settings, "TELECASTER_LIVE_STREAM_M_STREAMING_PORT", stream['port'])
#site = Site.objects.all()[0]
server, c = StreamingServer.objects.get_or_create(host=host,
port=port,