コード例 #1
0
    def __init__(self):
        self.LIST_URL = 'https://tpfeed.cbc.ca/f/ExhSPC/FNiv9xQx_BnT?q=id:*&pretty=true&sort=pubDate%7Cdesc'
        self.LIST_ELEMENT = 'entries'

        # Create requests session object
        self.session = requests.Session()
        session_cookies = loadCookies()
        if not session_cookies == None:
            self.session.cookies = session_cookies
コード例 #2
0
 def __init__(self):
     """
     Init constants 
     """
     self.SHOW_LIST_URL = 'https://api-cbc.cloud.clearleap.com/cloffice/client/web/browse/babb23ae-fe47-40a0-b3ed-cdc91e31f3d6'
     self.IMAGE_PROFILES = [ 'CBC-POSTER-1X', 'CBC-BANNER-1X' ]
     self.SHOW_TAGS = [ 'title', 'clearleap:series', 'clearleap:season',
                        'clearleap:episodeInSeason', 'media:keywords',
                        'media:rating']
     # Create requests session object
     self.session = requests.Session()
     session_cookies = loadCookies()
     if not session_cookies == None: 
         self.session.cookies = session_cookies 
コード例 #3
0
ファイル: cbc.py プロジェクト: iCanuck/plugin.video.cbc
    def __init__(self):
        self.ENV_JS = 'https://watch.cbc.ca/public/js/env.js'
        self.API_KEY = '3f4beddd-2061-49b0-ae80-6f1f2ed65b37'
        self.RADIUS_LOGIN_FMT = 'https://api.loginradius.com/identity/v2/auth/login?{}'
        self.RADIUS_JWT_FMT = 'https://cloud-api.loginradius.com/sso/jwt/api/token?{}'
        self.IDENTITIES_URL = 'https://api-cbc.cloud.clearleap.com/cloffice/client/identities'
        self.DEVICE_XML_FMT = """<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<device>
  <type>web</type>
</device>"""
        self.LOGIN_XML_FMT = """<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<login>
  <token>{}</token>
  <device>
    <deviceId>{}</deviceId>
    <type>web</type>
  </device>
</login>"""
        # Create requests session object
        self.session = requests.Session()
        session_cookies = loadCookies()
        if not session_cookies == None:
            self.session.cookies = session_cookies