remove decode, proper return application/json mimetype, fix url being null

should have put in the url filling a long time ago, I just didn't wanna open up the massive JSON response and locate the key required. also, with this I'll have to clear the databases with new URLs (or maybe I should refresh all metadata?)
This commit is contained in:
Xevion
2019-12-24 22:49:00 -06:00
parent 88b7884e55
commit a86e0a7185
2 changed files with 3 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ def status(service, mediaid):
else:
return Response('Invalid ID', status=400, mimetype='text/plain')
else:
return Response(audio.toJSON(), status=200, mimetype='text/plain')
return Response(audio.toJSON(), status=200, mimetype='application/json')
elif service == 'soundcloud':
return Response('Not implemented', status=501, mimetype='text/plain')
elif service == 'spotify':