Skip to content

Fix profile switching by replacing API call#1783

Open
Krumbthi wants to merge 1 commit intoCastagnaIT:masterfrom
Krumbthi:fix-netflix-api-change
Open

Fix profile switching by replacing API call#1783
Krumbthi wants to merge 1 commit intoCastagnaIT:masterfrom
Krumbthi:fix-netflix-api-change

Conversation

@Krumbthi
Copy link
Copy Markdown

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.
@dkadioglu
Copy link
Copy Markdown

Works for me, thank you very much!
Just to mention it: my profiles are not locked by a PIN, so could not test that.

@NarkyAbyss
Copy link
Copy Markdown

also testing working profile switch and playback on profiles with no pin

@pgillich
Copy link
Copy Markdown

When it will be released?

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.

4 participants