mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-06 13:16:55 -06:00
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:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user