CQS - Stump TV Streaming

CQS

Used for download stump (TV Streaming) data (RemoteTVInput ServiceChannel on Smartglass)

class xbox.webapi.api.provider.cqs.CQSProvider(client)[source]

Bases: BaseProvider

CQS_URL = 'https://cqs.xboxlive.com'
HEADERS_CQS = {'Accept': 'application/json', 'Cache-Control': 'no-cache', 'Pragma': 'no-cache', 'x-xbl-client-type': 'Companion', 'x-xbl-client-version': '2.0', 'x-xbl-contract-version': '1.b', 'x-xbl-device-type': 'WindowsPhone', 'x-xbl-isautomated-client': 'true'}
async get_channel_list(locale_info, headend_id, **kwargs)[source]

Get stump channel list

Parameters:
  • locale_info (str) – Locale string (format: “en-US”)

  • headend_id (str) – Headend id

Returns:

Channel List Response

Return type:

CqsChannelListResponse

async get_schedule(locale_info, headend_id, start_date, duration_minutes, channel_skip, channel_count, **kwargs)[source]

Get stump epg data

Parameters:
  • locale_info (str) – Locale string (format: “en-US”)

  • headend_id (str) – Headend id

  • start_date (str) – Start date (format: 2016-07-11T21:50:00.000Z)

  • duration_minutes (int) – Schedule duration to download

  • channel_skip (int) – Count of channels to skip

  • channel_count (int) – Count of channels to get data for

Returns:

Schedule Response

Return type:

CqsScheduleResponse