Skip to content

Fix profile switching by replacing API call#1783

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

Fix profile switching by replacing API call#1783
Krumbthi wants to merge 1 commit into
CastagnaIT: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?

@dkambur

dkambur commented May 10, 2026

Copy link
Copy Markdown

Manually applied using patch on my tuner. Works like charm. Profile switching works.

@Taijian

Taijian commented May 13, 2026

Copy link
Copy Markdown

Manually applied using patch on my tuner. Works like charm. Profile switching works.

Same here, this patch makes it work again on my CoreElec Machine.

Thank you!

@cappsie

cappsie commented Jun 2, 2026

Copy link
Copy Markdown

Can confirm this works. Always back up your files first!

@Froleatric

Froleatric commented Jun 7, 2026

Copy link
Copy Markdown

Tested with Kodi 21 on Debian 13 (Trixie). It works. Thanks a lot for fixing.

@kripper

kripper commented Jun 9, 2026

Copy link
Copy Markdown

Why not merge?

@CastagnaIT

Copy link
Copy Markdown
Owner

because has been removed API mode,
really dont exists anymore? or has been removed because you have no idea?
atm i dont have an account to verify the website

also the same commit change value to set default params
without explaining the reason behind this

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.

10 participants