CSQ provider¶
CQS
Used for download stump (TV Streaming) data (RemoteTVInput ServiceChannel on Smartglass)
pythonxbox.api.provider.cqs.CQSProvider(client)
¶
Bases: BaseProvider
Source code in src/pythonxbox/api/provider/baseprovider.py
CQS_URL = 'https://cqs.xboxlive.com'
class-attribute
instance-attribute
¶
HEADERS_CQS = {'Cache-Control': 'no-cache', 'Accept': 'application/json', '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'}
class-attribute
instance-attribute
¶
get_channel_list(locale_info, headend_id, **kwargs)
async
¶
Get stump channel list
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
locale_info
|
str
|
Locale string (format: "en-US") |
required |
headend_id
|
str
|
Headend id |
required |
Returns:
| Type | Description |
|---|---|
CqsChannelListResponse
|
class: |
Source code in src/pythonxbox/api/provider/cqs/__init__.py
get_schedule(locale_info, headend_id, start_date, duration_minutes, channel_skip, channel_count, **kwargs)
async
¶
Get stump epg data
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
locale_info
|
str
|
Locale string (format: "en-US") |
required |
headend_id
|
str
|
Headend id |
required |
start_date
|
str
|
Start date (format: 2016-07-11T21:50:00.000Z) |
required |
duration_minutes
|
int
|
Schedule duration to download |
required |
channel_skip
|
int
|
Count of channels to skip |
required |
channel_count
|
int
|
Count of channels to get data for |
required |
Returns:
| Type | Description |
|---|---|
CqsScheduleResponse
|
class: |