Skip to content

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

@kyl416

Description

@kyl416

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions