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 multiprocessing
|
||||||
import player
|
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 json
|
||||||
import setproctitle
|
import setproctitle
|
||||||
import logging
|
import logging
|
||||||
|
@ -287,7 +287,7 @@ def status(channel):
|
||||||
response = response[7:]
|
response = response[7:]
|
||||||
response = response[response.index(":")+1:]
|
response = response[response.index(":")+1:]
|
||||||
try:
|
try:
|
||||||
response = json.loads(response)
|
response = jsonify(json.loads(response))
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue