mirror of
https://github.com/fergalmoran/dss.git
synced 2026-02-15 12:34:00 +00:00
Fixed up icecast stream parser
Added debug filter to logging
This commit is contained in:
@@ -15,10 +15,17 @@ LOGGING = {
|
||||
'format': '%(levelname)s %(message)s'
|
||||
},
|
||||
},
|
||||
'filters': {
|
||||
'require_debug_false': {
|
||||
'()': 'django.utils.log.RequireDebugFalse'
|
||||
}
|
||||
},
|
||||
'handlers': {
|
||||
'mail_admins': {
|
||||
'level': 'ERROR',
|
||||
'class': 'django.utils.log.AdminEmailHandler'
|
||||
'filters': ['require_debug_false'],
|
||||
'class': 'django.utils.log.AdminEmailHandler',
|
||||
'include_html': True
|
||||
},
|
||||
'console': {
|
||||
'level': 'DEBUG',
|
||||
|
||||
@@ -126,11 +126,11 @@ def live_now_playing(request):
|
||||
return HttpResponse(
|
||||
simplejson.dumps({
|
||||
'stream_url': 'http://%s:%s/%s' % (
|
||||
localsettings.JS_SETTINGS['LIVE_STREAM_URL'] %
|
||||
localsettings.JS_SETTINGS['LIVE_STREAM_PORT'] %
|
||||
localsettings.JS_SETTINGS['LIVE_STREAM_URL'],
|
||||
localsettings.JS_SETTINGS['LIVE_STREAM_PORT'],
|
||||
localsettings.JS_SETTINGS['LIVE_STREAM_MOUNT']),
|
||||
'description': 'Description',
|
||||
'title': now_playing_info
|
||||
'description': now_playing_info['stream_description'],
|
||||
'title': now_playing_info['current_song']
|
||||
}), mimetype="application/json")
|
||||
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user