コード例 #1
0
ファイル: kartina_api.py プロジェクト: sanetti/iptvdream
    def __init__(self, username, password):
        AbstractAPI.__init__(self, username, password)

        self.cookiejar = cookielib.CookieJar()
        self.opener = urllib2.build_opener(
            urllib2.HTTPCookieProcessor(self.cookiejar))
        self.opener.addheaders = [('User-Agent',
                                   'Mozilla/5.0 technic-plugin-1.5')]
コード例 #2
0
ファイル: rodnoe_api.py プロジェクト: rutzel/iptvdream
    def __init__(self, username, password):
        AbstractAPI.__init__(self, username, password)

        self.time_shift = 0
        self.protect_code = ""

        self.cookiejar = cookielib.CookieJar()
        self.opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cookiejar))
        self.opener.addheaders = [("User-Agent", "Mozilla/5.0 technic-plugin-1.5")]
コード例 #3
0
ファイル: m3u_playlist.py プロジェクト: Iohan36/iptvdream
	def __init__(self, username, password):
		AbstractAPI.__init__(self, username, password)
		self.channels = {}
		self.aTime = 0
コード例 #4
0
 def __init__(self, username, password):
     AbstractAPI.__init__(self, username, password)
     self.channels = {}
     self.aTime = 0
コード例 #5
0
ファイル: api1.py プロジェクト: technic/iptvdream-ozo
 def __init__(self, username, password):
     AbstractAPI.__init__(self, username, password, VERSION)
     self.time_shift = 0
     self.time_zone = 0
     self.servertime = 0
     self.settings = {}
コード例 #6
0
ファイル: kartina_api.py プロジェクト: Iohan36/iptvdream
	def __init__(self, username, password):
		AbstractAPI.__init__(self, username, password)

		self.cookiejar = cookielib.CookieJar()
		self.opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cookiejar))
		self.opener.addheaders = [('User-Agent', 'Mozilla/5.0 technic-plugin-1.5')]