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


Python Addon.load_data方法代码示例

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


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

示例1: proxpesquisa

# 需要导入模块: from t0mm0.common.addon import Addon [as 别名]
# 或者: from t0mm0.common.addon.Addon import load_data [as 别名]
def proxpesquisa():
    from t0mm0.common.addon import Addon
    addon=Addon(addon_id)
    form_d=addon.load_data('temp.txt')
    ref_data = {'Accept':'*/*','Content-Type':'application/x-www-form-urlencoded','Host':'abelhas.pt','Origin':'http://abelhas.pt','Referer':url,'User-Agent':user_agent,'X-Requested-With':'XMLHttpRequest'}
    form_d['Page']= form_d['Page'] + 1
    endlogin=MainURL + 'action/SearchFiles/Results'
    net.set_cookies(cookies)
    conteudo= net.http_POST(endlogin,form_data=form_d,headers=ref_data).content.encode('latin-1','ignore')
    addon.save_data('temp.txt',form_d)
    pastas(MainURL + 'action/nada','coco',conteudo=conteudo)
开发者ID:Thewallguy,项目名称:fightnight-addons,代码行数:13,代码来源:default.py

示例2: Search

# 需要导入模块: from t0mm0.common.addon import Addon [as 别名]
# 或者: from t0mm0.common.addon.Addon import load_data [as 别名]
def Search():
    last_search = Addon.load_data('search')
    if not last_search: last_search = ''
    search_entered =''
    keyboard = xbmc.Keyboard(search_entered, '[B][I] SEARCH TV-REALEASE.NET TVShows[/B][/I]')
    last_search = last_search.replace('%20',' ')
    keyboard.setDefault(last_search)
    keyboard.doModal()
    if keyboard.isConfirmed():
        search_entered = keyboard.getText().replace(' ','%20')# sometimes you need to replace spaces with + or %20#
        Addon.save_data('search',search_entered)
    if search_entered == None or len(search_entered)<1:
        MAIN()
    else:
        url = base64.b64encode('http://www.tv-release.net/?s='+search_entered+'&cat=')
        Index(url, '')
开发者ID:philtimmes,项目名称:addons,代码行数:18,代码来源:default.py

示例3: SEARCH

# 需要导入模块: from t0mm0.common.addon import Addon [as 别名]
# 或者: from t0mm0.common.addon.Addon import load_data [as 别名]
def SEARCH(url):
    last_search = Addon.load_data('search')
    if not last_search: last_search = ''
    search_entered =''
    keyboard = xbmc.Keyboard(search_entered, '[B][I] SEARCH TV-REALEASE.NET TVShows[/B][/I]')
    last_search = last_search.replace('+',' ')
    keyboard.setDefault(last_search)
    keyboard.doModal()
    if keyboard.isConfirmed():
        search_entered = keyboard.getText().replace(' ','+')# sometimes you need to replace spaces with + or %20#
        Addon.save_data('search',search_entered)
    if search_entered == None or len(search_entered)<1:
        MAIN()
    else:
        url = 'http://tv-release.net/?s="%s"&cat='%(search_entered)
        types = None
        SEARCHRESULTS(url,types)
开发者ID:Ultraporing,项目名称:jas0npc,代码行数:19,代码来源:default.py

示例4: GETHTML

# 需要导入模块: from t0mm0.common.addon import Addon [as 别名]
# 或者: from t0mm0.common.addon.Addon import load_data [as 别名]
        dialog.ok("[I]TubePLUS by www.xbmchub.com[/I]", "[I][B][COLOR red]IMPORTANT[/B][/COLOR] Some of the options below could take [/I]","[I]a long time to list, Due to the amount of information[/I]","[I]that gets cached, This only happens ONCE.[/I]")
        dialog.ok("[I]TubePLUS by www.xbmchub.com[/I]", "[I]You can dissable this popup in the addon settings[/I]")

    url = 'http://www.tubeplus.me'
    html = GETHTML(url)
    AZ_DIRECTORIES = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y', 'Z']
    url = 'http://www.tubeplus.me/browse/tv-shows/All_Genres/-/'
    addDir(150,url,'None','ATOZ','','0-9','')
    for i in AZ_DIRECTORIES:
        iconimage=i
        name = i
        url = BASE_URL+'browse/tv-shows/All_Genres/%s/'%i
        addDir(150,url,'None','ATOZ','',name,'')
    
elif mode == 130:
    last_search = addon.load_data('tvsearch')
    if not last_search: last_search = ''
    search_entered =''
    keyboard = xbmc.Keyboard(search_entered, '[B][I] SEARCH TubePlus TVShows[/B][/I]')
    last_search = last_search.replace('+',' ')
    keyboard.setDefault(last_search)
    keyboard.doModal()
    if keyboard.isConfirmed():
        search_entered = keyboard.getText().replace(' ','+')# sometimes you need to replace spaces with + or %20#
        addon.save_data('tvsearch',search_entered)
    if search_entered == None or len(search_entered)<1:
        TVMENU()
    else:
        url = 'http://www.tubeplus.me/search/tv-shows/%s/'%(search_entered)
        types = 'None'
        linkback = 'latesttv'
开发者ID:Ultraporing,项目名称:jas0npc,代码行数:33,代码来源:default.py


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