Fix broken player status json output

This commit is contained in:
Matthew Stratford 2020-12-08 19:21:38 +00:00
parent 450698cd37
commit 789fa3a1fb
No known key found for this signature in database
GPG key ID: 9E53C8B3F0B57395

View file

@ -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