forked from Mirrors/Dispatcharr
Enhancement: Update xc_player_api to return server_info for unknown actions to align with provider behavior
This commit is contained in:
parent
cb1953baf2
commit
c5f6d8ccf3
1 changed files with 3 additions and 1 deletions
|
|
@ -1963,7 +1963,9 @@ def xc_player_api(request, full=False):
|
|||
else:
|
||||
return JsonResponse([], safe=False)
|
||||
|
||||
raise Http404()
|
||||
# For any other action (including get_account_info or unknown actions),
|
||||
# return server_info/account_info to match provider behavior
|
||||
return JsonResponse(server_info)
|
||||
|
||||
|
||||
def xc_panel_api(request):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue