Fix broken player status json output
This commit is contained in:
parent
450698cd37
commit
789fa3a1fb
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
|||
|
||||
import multiprocessing
|
||||
import player
|
||||
from flask import Flask, render_template, send_from_directory, request
|
||||
from flask import Flask, render_template, send_from_directory, request, jsonify
|
||||
import json
|
||||
import setproctitle
|
||||
import logging
|
||||
|
@ -287,7 +287,7 @@ def status(channel):
|
|||
response = response[7:]
|
||||
response = response[response.index(":")+1:]
|
||||
try:
|
||||
response = json.loads(response)
|
||||
response = jsonify(json.loads(response))
|
||||
except:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in a new issue