Explorar el Código

Need to load JSON data

Colin Powell hace 2 años
padre
commit
842378e812
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      vrobbler/apps/scrobbles/views.py

+ 1 - 1
vrobbler/apps/scrobbles/views.py

@@ -151,7 +151,7 @@ def jellyfin_websocket(request):
 @csrf_exempt
 @api_view(['POST'])
 def mopidy_websocket(request):
-    data_dict = request.data
+    data_dict = json.loads(request.data)
 
     # For making things easier to build new input processors
     if getattr(settings, "DUMP_REQUEST_DATA", False):