Skip to content

Fix profile switching by replacing dead /api/shakti endpoint with /Sw… - #1

Merged
atrHusK merged 1 commit into
atrHusK:masterfrom
Krumbthi:fix-netflix-api-change
Jun 21, 2026
Merged

Fix profile switching by replacing dead /api/shakti endpoint with /Sw…#1
atrHusK merged 1 commit into
atrHusK:masterfrom
Krumbthi:fix-netflix-api-change

Conversation

@atrHusK

@atrHusK atrHusK commented Jun 21, 2026

Copy link
Copy Markdown
Owner

As per CastagnaIT#1783

Summary

Replace dead Netflix /api/shakti/mre/profiles/switch endpoint (returns 404) with /SwitchProfile endpoint for server-side profile switching
    Fetch /browse after switch to obtain fresh authURL for the new profile
    Remove unused activate_profile endpoint definition and http_requests_bak.py backup file

Details

Netflix seems to have removed the /api/shakti/mre/profiles/switch API, breaking profile switching with a 404 error. The /SwitchProfile?tkn=GUID endpoint was previously abandoned (May 2020) because it didn't work for PIN-locked profiles, but PIN verification is now handled separately in directory_utils.py:verify_profile_pin before activate_profile is called, making this limitation irrelevant.

Test plan

Switch to a non-PIN-locked profile — switches without errors, content loads correctly
Switch back to the original profile

I did not test to switch to a PIN-locked profile — PIN prompt appears, switch works after entering correct PIN

Tested on:

LibreELEC (Omega) 12.2.1
Ubuntu Linux 24.04 Kodi 20.5.0

…itchProfile

  The /api/shakti/mre/profiles/switch endpoint was removed by Netflix,
  causing 404 errors on profile switch. Replace with the /SwitchProfile
  endpoint which handles server-side profile switching, followed by a
  /browse fetch to obtain a fresh authURL. PIN verification is handled
  separately before this method is called, so the old PIN limitation
  of /SwitchProfile no longer applies.
@atrHusK
atrHusK merged commit 708d061 into atrHusK:master Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant