CQS - Stump TV Streaming

CQS

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

class xbox.webapi.api.provider.cqs.CQSProvider(client)

Bases: xbox.webapi.api.provider.baseprovider.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'}
get_channel_list(locale_info, headend_id)

Get stump channel list

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

HTTP Response

Return type:

requests.Response

get_schedule(locale_info, headend_id, start_date, duration_minutes, channel_skip, channel_count)

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:

HTTP Response

Return type:

requests.Response

class xbox.webapi.api.provider.cqs.VesperType

Bases: xbox.webapi.common.enum.StrEnum

An enumeration.

MOBILE_LINEUP = 'vesper_mobile_lineup'
MOBILE_SCHEDULE = 'vesper_mobile_schedule'