Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peacock's "premium plus" and local NBC stations missing from live channels #37

Open
kyl416 opened this issue Nov 26, 2023 · 1 comment

Comments

@kyl416
Copy link

kyl416 commented Nov 26, 2023

The live channels section is missing the local NBC live stations and the "premium plus" only channels like Hallmark, Reelz, Squawk Box, Morning Joe, etc

Looking at the code in endpoints.py and comparing it to what Peacock does online, you need to fetch the "content" values returned by the "/auth/users/me" call and use those values as the contentSegments parameter when making the "/bff/channel_guide" request.
Free = Returns the channels available to all users
D2C = Returns the channels that are only available to Premium Plus subscribers
LOCAL_AFFILIATES = Returns the user's local NBC affiliate
i.e. for regular Peacock subscribers:
/bff/channel_guide?startTime={start_time}&contentSegments=Free
For Premium Plus subscribers:
/bff/channel_guide?startTime={start_time}&contentSegments=D2C,Free,LOCAL_AFFILIATES

However to get the local NBC affiliate it's a little more complicated, you need to do the "/ls/localisation" call to get the "x-skyott-bouquetId" and "x-skyott-subBouquetId" values and use them as "X-SkyOTT-BouquetId" and "X-SkyOTT-SubBouquetId" headers in the channel_guide request.

@Paco8
Copy link
Owner

Paco8 commented Mar 3, 2024

I only have a free Peacock account, so I'm afraid I can't implement this.
A patch is welcome.

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

No branches or pull requests

2 participants