|
@@ -173,12 +173,14 @@ AUTHENTICATION_BACKENDS = [
|
|
|
"allauth.account.auth_backends.AuthenticationBackend",
|
|
|
]
|
|
|
|
|
|
+# We have to ignore content negotiation because Jellyfin is a bad actor
|
|
|
REST_FRAMEWORK = {
|
|
|
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.AllowAny",),
|
|
|
'DEFAULT_AUTHENTICATION_CLASSES': [
|
|
|
'rest_framework.authentication.TokenAuthentication',
|
|
|
'rest_framework.authentication.SessionAuthentication',
|
|
|
],
|
|
|
+ 'DEFAULT_CONTENT_NEGOTIATION_CLASS': 'vrobbler.negotiation.IgnoreClientContentNegotiation',
|
|
|
"DEFAULT_FILTER_BACKENDS": [
|
|
|
"django_filters.rest_framework.DjangoFilterBackend"
|
|
|
],
|