当前位置: 首页>>代码示例>>Python>>正文


Python ContentProvider.__init__方法代码示例

本文整理汇总了Python中provider.ContentProvider.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ContentProvider.__init__方法的具体用法?Python ContentProvider.__init__怎么用?Python ContentProvider.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在provider.ContentProvider的用法示例。


在下文中一共展示了ContentProvider.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self, username=None, password=None, filter=None, tmp_dir='/tmp'):
     ContentProvider.__init__(self, 'rtvs.sk', 'http://www.rtvs.sk', username, password, filter, tmp_dir)
     opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
     urllib2.install_opener(opener)
     self.archive_url = self._url('tv.archive.alphabet/')
     if not os.path.exists(self.tmp_dir):
         os.makedirs(self.tmp_dir)
开发者ID:mx3L,项目名称:xbmc-doplnky,代码行数:9,代码来源:rtvs.py

示例2: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self, username=None, password=None, filter=None,
              tmp_dir='/tmp'):
     ContentProvider.__init__(self, 'videacesky.cz',
                              'http://www.videacesky.cz',
                              username, password, filter, tmp_dir)
     opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
     urllib2.install_opener(opener)
开发者ID:jose1711,项目名称:plugin.video.videacesky.cz,代码行数:9,代码来源:videacesky.py

示例3: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self,username=None,password=None,filter=None):
     ContentProvider.__init__(self,'ulozto.cz','https://www.ulozto.cz/',username,password,filter)
     self.search_type=''
     self.cp = urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar())
     self.rh = UloztoHTTPRedirectHandler()
     self.rh.throw = False
     self.rh.location = None
     self.init_urllib()
开发者ID:jose1711,项目名称:plugin.video.online-files,代码行数:10,代码来源:ulozto.py

示例4: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self, username=None, password=None, filter=None, reverse_eps=False):
     ContentProvider.__init__(self, name='sosac.ph', base_url=MOVIES_BASE_URL, username=username,
                              password=password, filter=filter)
     util.init_urllib(self.cache)
     cookies = self.cache.get(util.CACHE_COOKIES)
     if not cookies or len(cookies) == 0:
         util.request(self.base_url)
     self.reverse_eps = reverse_eps
开发者ID:bbaronSVK,项目名称:plugin.video.sosac.ph,代码行数:10,代码来源:sosac.py

示例5: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self, username=None, password=None, filter=None, quickparser=False):
     ContentProvider.__init__(self, 'sledujufilmy.cz', self.urls['Filmy'],
                              username, password, filter)
     # Work around April Fools' Day page
     util.init_urllib(self.cache)
     self.quickparser=quickparser
     cookies = self.cache.get('cookies')
     if not cookies or len(cookies) == 0:
         util.request(self.base_url)
开发者ID:jose1711,项目名称:plugin.video.sledujufilmy.cz,代码行数:11,代码来源:sledujufilmy.py

示例6: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self, username=None, password=None, filter=None, reverse_eps=False):
     ContentProvider.__init__(self, name='sosac.ph', base_url=MOVIES_BASE_URL, username=username,
                              password=password, filter=filter)
     opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
     urllib2.install_opener(opener)
     self.reverse_eps = reverse_eps
     self.streamujtv_user = None
     self.streamujtv_pass = None
     self.streamujtv_location = None
开发者ID:mx3L,项目名称:archivczsk-doplnky,代码行数:11,代码来源:sosac.py

示例7: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
	def __init__(self,username=None,password=None,filter=None):
		ContentProvider.__init__(self,'zkouknito.cz','http://zkouknito.cz/',username,password,filter)
		ck = cookielib.Cookie(version=0, name='confirmed', value='1', port=None, port_specified=False,
										 domain='zkouknito.cz', domain_specified=True, domain_initial_dot=False, 
										 path='/', path_specified=True, secure=False, expires=None, discard=True, 
										 comment=None, comment_url=None, rest={'HttpOnly': None}, rfc2109=False)
		cj = cookielib.LWPCookieJar()
		cj.set_cookie(ck)
		opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
		urllib2.install_opener(opener)
开发者ID:cplaiasu,项目名称:xbmc-doplnky,代码行数:12,代码来源:zkouknito.py

示例8: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self, username=None, password=None, filter=None, reverse_eps=False):
     ContentProvider.__init__(self, name='sosac.ph', base_url=MOVIES_BASE_URL, username=username,
                              password=password, filter=filter)
     opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
     urllib2.install_opener(opener)
     self.reverse_eps = reverse_eps
     if self.lang == ISO_639_1_CZECH:
         self.ISO_639_1_CZECH = ISO_639_1_CZECH + '/'
     else:
         self.ISO_639_1_CZECH = ''
开发者ID:slavkodemeter,项目名称:archivczsk-doplnky,代码行数:12,代码来源:sosac.py

示例9: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self, username=None, password=None, filter=None):
     try:
         ContentProvider.__init__(self, name='czsklib', base_url='/', username=username, password=password, filter=filter)
         util.init_urllib()
         self.wsuser = username
         self.wspass = password
         self.language = language.getLanguage()
         self.init_trans()
         orangelog.logDebug("init orangetv...");
         self.session = None
     except:
         orangelog.logError("init orangetv failed.\n%s"%traceback.format_exc())
         pass
开发者ID:mx3L,项目名称:archivczsk-doplnky,代码行数:15,代码来源:orangetv.py

示例10: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self, username=None, password=None, filter=None, reverse_eps=False):
     ContentProvider.__init__(self, name='prehraj.me', base_url=MOVIES_BASE_URL, username=username,
                              password=password, filter=filter)
     opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
     urllib2.install_opener(opener)
     self.reverse_eps = reverse_eps
开发者ID:CZ-2W,项目名称:plugin.video.prehraj.me,代码行数:8,代码来源:prehrajme.py

示例11: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self,username=None,password=None,filter=None,reverse_eps=False):
     ContentProvider.__init__(self,'tv.sosac.ph','http://tv.sosac.ph/',username,password,filter)
     opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
     urllib2.install_opener(opener)
     self.reverse_eps = reverse_eps
开发者ID:cplaiasu,项目名称:xbmc-doplnky,代码行数:7,代码来源:tvsosac.py

示例12: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self,username=None,password=None,filter=None,tmp_dir='.'):
     ContentProvider.__init__(self,'pohadkar.cz','http://www.pohadkar.cz/',username,password,filter)
     opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
     urllib2.install_opener(opener)
     self.tmp_dir = tmp_dir
开发者ID:skata890,项目名称:xbmc-doplnky,代码行数:7,代码来源:pohadkar.py

示例13: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self,username=None,password=None,filter=None,site_url='http://hellspy.cz/'):
     ContentProvider.__init__(self,'hellspy.cz',site_url,username,password,filter)
     opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
     urllib2.install_opener(opener)
开发者ID:vrockai,项目名称:xbmc-doplnky,代码行数:6,代码来源:hellspy.py

示例14: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self, username=None, password=None, filter=None, quickparser=False):
     ContentProvider.__init__(self, 'tv-archiv.sk', self.urls['Filmy'],
                              username, password, filter)
开发者ID:jose1711,项目名称:plugin.video.tvarchiv.sk,代码行数:5,代码来源:tvarchiv.py

示例15: __init__

# 需要导入模块: from provider import ContentProvider [as 别名]
# 或者: from provider.ContentProvider import __init__ [as 别名]
 def __init__(self, username=None, password=None, filter=None):
     ContentProvider.__init__(self, 'topserialy.to', self.urls['Seriály'],
                              username, password, filter)
开发者ID:jose1711,项目名称:plugin.video.topserialy.sk,代码行数:5,代码来源:topserialy.py


注:本文中的provider.ContentProvider.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。