Пример #1
0
def Grab_Hardware(url):
    buildsURL = 'http://totalxbmc.com/totalrevolution/HardwarePortal/sortby.php?sortx=Added&orderx=DESC&%s' % (url)
    link = extras.Open_URL(buildsURL).replace('\n','').replace('\r','')
    match=re.compile('name="(.+?)" <br> id="(.+?)" <br> thumb="(.+?)" <br><br>', re.DOTALL).findall(link)
    extras.Sort_By(buildsURL,'hardware')
    for name, id, thumb in match:
        extras.addDir('folder2',name,id,'hardware_final_menu',thumb,'','')
Пример #2
0
def Grab_Tutorials(url):
    buildsURL = 'http://totalxbmc.com/totalrevolution/TutorialPortal/sortby.php?sortx=Name&orderx=ASC&%s' % (url)
    link = extras.Open_URL(buildsURL).replace('\n','').replace('\r','')
    match=re.compile('name="(.+?)" <br> about="(.+?)" <br> id="(.+?)" <br><br>', re.DOTALL).findall(link)
    extras.Sort_By(buildsURL,'tutorials')
    for name, about, id in match:
        extras.addDir('folder',name,id,'tutorial_final_menu','TotalXBMC_Guides.png','',about)
Пример #3
0
def Addon(url):
    HTML = OPEN_URL(url)
    Next = re.compile('<li class="nextPage"><a class=".+?" href="(.+?)"><dfn title="next Page">.+?</dfn></a></li>').findall(HTML)
    for url in Next:
        extras.addDir('folder','NEXT PAGE',url, 'Addon','','','','')
    match = re.compile('<li><a href="(.+?)"><span class=".+?"><img src="(.+?)" width=".+?" alt=".+?" class=".+?" /></span><strong>(.+?)</strong></a></li>').findall(HTML)
    for url,img,name in match:
        extras.addDir('',name,url, 'Addon_Extract','https://addons.tvaddons.ag/'+img,'','','')
Пример #4
0
def Categories():
	sign = 0
	maintenance  =  ADDON.getSetting('maintenance')
	mainmenu  =  ADDON.getSetting('mainmenu')
	guisettings  =  ADDON.getSetting('guisettings')
	adultbuilds  =  ADDON.getSetting('adultbuilds')
	brettus = ADDON.getSetting('brettus')
	#if mainmenu == 'true':
	extras.addDir('folder','BDN Builds','none', 'buildmenu', 'Build_Menu.png','','','')
Пример #5
0
def Popular():
    link = extras.Open_URL(
        'http://totalxbmc.tv/totalrevolution/Addon_Packs/addonpacks.txt'
    ).replace('\n', '').replace('\r', '')
    match = re.compile(
        'name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?escription="(.+?)"'
    ).findall(link)
    for name, url, iconimage, fanart, description in match:
        extras.addDir('folder2', name, url, 'popularwizard', iconimage, fanart,
                      description)
Пример #6
0
def Grab_Addons(url):
    if ADDON.getSetting('adult') == 'true':
        adult = 'yes'
    else:
        adult = 'no'
    buildsURL = 'http://totalxbmc.com/totalrevolution/AddonPortal/sortby.php?sortx=name&user=%s&pass=%s&adult=%s&%s' % (username, password, adult, url)
    link = extras.Open_URL(buildsURL).replace('\n','').replace('\r','')
    match=re.compile('name="(.+?)" <br> downloads="(.+?)" <br> icon="(.+?)" <br> UID="(.+?)" <br>', re.DOTALL).findall(link)
    extras.Sort_By(buildsURL,'addons')
    for name,downloads,icon,uid in match:
        extras.addDir('folder2',name+'[COLOR=lime] ['+downloads+' downloads][/COLOR]',uid,'addon_final_menu',icon,'','')        
Пример #7
0
def Grab_Tutorials(url):
    buildsURL = 'http://totalxbmc.com/totalrevolution/TutorialPortal/sortby.php?sortx=Name&orderx=ASC&%s' % (
        url)
    link = extras.Open_URL(buildsURL).replace('\n', '').replace('\r', '')
    match = re.compile(
        'name="(.+?)" <br> about="(.+?)" <br> id="(.+?)" <br><br>',
        re.DOTALL).findall(link)
    extras.Sort_By(buildsURL, 'tutorials')
    for name, about, id in match:
        extras.addDir('folder', name, id, 'tutorial_final_menu',
                      'TotalXBMC_Guides.png', '', about)
Пример #8
0
def Wipe_Tools():
    extras.addDir('', '[B]Chiefs Clear Cache[/B]', 'url', 'clear_cache',
                  'Clear_Cache.png', '', '', '')
    extras.addDir('', '[B]Chiefs Clear My Cached Artwork[/B]', 'none',
                  'remove_textures', 'Delete_Cached_Artwork.png', '', '', '')
    extras.addDir('', '[B]Chiefs Delete Addon_Data[/B]', 'url',
                  'remove_addon_data', 'Delete_Addon_Data.png', '', '', '')
    extras.addDir('', '[B]Chiefs Delete Old Crash Logs[/B]', 'url',
                  'remove_crash_logs', 'Delete_Crash_Logs.png', '', '', '')
    extras.addDir('', '[B]Chiefs Delete Packages Folder[/B]', 'url',
                  'remove_packages', 'Delete_Packages.png', '', '', '')
Пример #9
0
def Grab_Hardware(url):
    buildsURL = 'http://totalxbmc.com/totalrevolution/HardwarePortal/sortby.php?sortx=Added&orderx=DESC&%s' % (
        url)
    link = extras.Open_URL(buildsURL).replace('\n', '').replace('\r', '')
    match = re.compile(
        'name="(.+?)" <br> id="(.+?)" <br> thumb="(.+?)" <br><br>',
        re.DOTALL).findall(link)
    extras.Sort_By(buildsURL, 'hardware')
    for name, id, thumb in match:
        extras.addDir('folder2', name, id, 'hardware_final_menu', thumb, '',
                      '')
Пример #10
0
def Addon_Cat():
    HTML = OPEN_URL(base_url)
    match = re.compile('<li><a href="(.+?)"><span class="thumbnail"><img src="(.+?)" class="pic" alt=".+?" /></span><strong>(.+?)</strong></a></li>').findall(HTML)
    for url,img,name in match:
        if 'Repositories' in name:
            pass
        elif 'Services' in name:
            pass
        elif 'International' in name:
            pass
        else:
            extras.addDir('folder',name,url, 'Addon','https://addons.tvaddons.ag/'+img,'','','')
Пример #11
0
def Grab_News(url):
    buildsURL = 'http://totalxbmc.com/totalrevolution/LatestNews/sortby.php?sortx=item_date&orderx=DESC&%s' % (url)
    link = extras.Open_URL(buildsURL).replace('\n','').replace('\r','')
    match=re.compile('name="(.+?)" <br> date="(.+?)" <br> source="(.+?)" <br> id="(.+?)" <br><br>', re.DOTALL).findall(link)
    for name, date, source, id in match:
        if "OpenELEC" in source:
            extras.addDir('',name+'  ('+date+')',id,'news_menu','OpenELEC.png','','')
        if "Official" in source:
            extras.addDir('',name+'  ('+date+')',id,'news_menu','XBMC.png','','')
        if "Raspbmc" in source:
            extras.addDir('',name+'  ('+date+')',id,'news_menu','Raspbmc.png','','')
        if "XBMC4Xbox" in source:
            extras.addDir('',name+'  ('+date+')',id,'news_menu','XBMC4Xbox.png','','')
        if "TotalXBMC" in source:
            extras.addDir('',name+'  ('+date+')',id,'news_menu','TOTALXBMC.png','','')
Пример #12
0
def Grab_Addons(url):
    if ADDON.getSetting('adult') == 'true':
        adult = 'yes'
    else:
        adult = 'no'
    buildsURL = 'http://totalxbmc.com/totalrevolution/AddonPortal/sortby.php?sortx=name&user=%s&pass=%s&adult=%s&%s' % (
        username, password, adult, url)
    link = extras.Open_URL(buildsURL).replace('\n', '').replace('\r', '')
    match = re.compile(
        'name="(.+?)" <br> downloads="(.+?)" <br> icon="(.+?)" <br> UID="(.+?)" <br>',
        re.DOTALL).findall(link)
    extras.Sort_By(buildsURL, 'addons')
    for name, downloads, icon, uid in match:
        extras.addDir(
            'folder2',
            name + '[COLOR=lime] [' + downloads + ' downloads][/COLOR]', uid,
            'addon_final_menu', icon, '', '')
Пример #13
0
def Categories():
	sign = 0
	maintenance  =  ADDON.getSetting('maintenance')
	mainmenu  =  ADDON.getSetting('mainmenu')
	guisettings  =  ADDON.getSetting('guisettings')
	adultbuilds  =  ADDON.getSetting('adultbuilds')
	brettus = ADDON.getSetting('brettus')
	if mainmenu == 'true':
		extras.addDir('folder','Shadow Builds','none', 'buildmenu', 'Build_Menu.png','','','')
	if adultbuilds == 'true':
		extras.addDir('folder','Adult Builds','none', 'adultmenu', 'Adult_Menu.png','','','')
	if brettus == 'true':
		extras.addDir('folder','Brettus Builds','none', 'brettusbuilds', 'brettus_Menu.png','','','')
	if guisettings == 'true':
		extras.addDir('folder','Gui Settings XML','none', 'guisettings', 'Gui_Menu.png','','','')
	if maintenance == 'true':
		extras.addDir('folder','Maintenance','none', 'tools', 'Tools.png','','','')
Пример #14
0
def Addon_Removal_Menu():
    for file in glob.glob(os.path.join(ADDONS, '*')):
        name = str(file).replace(
            ADDONS, '[COLOR=white]REMOVE [/COLOR]').replace(
                'plugin.', '[COLOR=white](PLUGIN) [/COLOR]'
            ).replace('audio.', '').replace('video.', '').replace(
                'skin.', '[COLOR=yellow](SKIN) [/COLOR]').replace(
                    'repository.',
                    '[COLOR=orange](REPOSITORY) [/COLOR]').replace(
                        'script.', '[COLOR=cyan](SCRIPT) [/COLOR]').replace(
                            'metadata.',
                            '[COLOR=gold](METADATA) [/COLOR]').replace(
                                'service.',
                                '[COLOR=pink](SERVICE) [/COLOR]').replace(
                                    'weather.',
                                    '[COLOR=green](WEATHER) [/COLOR]').replace(
                                        'module.',
                                        '[COLOR=gold](MODULE) [/COLOR]')
        iconimage = (os.path.join(file, 'icon.png'))
        fanart = (os.path.join(file, 'fanart.jpg'))
        extras.addDir('', name, file, 'remove_addons', iconimage, fanart, '',
                      '')
Пример #15
0
def Grab_News(url):
    buildsURL = 'http://totalxbmc.com/totalrevolution/LatestNews/sortby.php?sortx=item_date&orderx=DESC&%s' % (
        url)
    link = extras.Open_URL(buildsURL).replace('\n', '').replace('\r', '')
    match = re.compile(
        'name="(.+?)" <br> date="(.+?)" <br> source="(.+?)" <br> id="(.+?)" <br><br>',
        re.DOTALL).findall(link)
    for name, date, source, id in match:
        if "OpenELEC" in source:
            extras.addDir('', name + '  (' + date + ')', id, 'news_menu',
                          'OpenELEC.png', '', '')
        if "Official" in source:
            extras.addDir('', name + '  (' + date + ')', id, 'news_menu',
                          'XBMC.png', '', '')
        if "Raspbmc" in source:
            extras.addDir('', name + '  (' + date + ')', id, 'news_menu',
                          'Raspbmc.png', '', '')
        if "XBMC4Xbox" in source:
            extras.addDir('', name + '  (' + date + ')', id, 'news_menu',
                          'XBMC4Xbox.png', '', '')
        if "TotalXBMC" in source:
            extras.addDir('', name + '  (' + date + ')', id, 'news_menu',
                          'TOTALXBMC.png', '', '')
Пример #16
0
def Categories():
	sign = 0
	maintenance  =  ADDON.getSetting('maintenance')
	mainmenu  =  ADDON.getSetting('mainmenu')
	if mainmenu == 'true':
		extras.addDir('folder','[B]Chiefs Builds[/B]','none', 'buildmenu', 'build_menu.png','','','')
	if maintenance == 'true':
		extras.addDir('folder','[B]Chiefs Maintenance[/B]','none', 'tools', 'Tool.png','','','')
	if maintenance == 'true':	
		extras.addDir('','[B]Update My Add-ons (Force Refresh)[/B]', 'none', 'update', 'Tool.png','','','')
Пример #17
0
def Categories():
	setView('movies', 'MAIN')
	sign = 0
	maintenance  =  ADDON.getSetting('maintenance')
	mainmenu  =  ADDON.getSetting('mainmenu')
	thirdpartybuilds  =  ADDON.getSetting('thirdpartybuilds')
	if mainmenu == 'true':
		extras.addDir('folder','[COLOR blue]Brokentechie Builds[/COLOR]','none', 'buildmenu', 'Brokentechie_Builds.png','','','')
	if thirdpartybuilds == 'true':
		extras.addDir('folder','[COLOR gold]Third-Party Builds[/COLOR]','none', 'thirdpartymenu', 'ThirdParty_Builds.png','','','')
	if maintenance == 'true':
		extras.addDir('folder','[COLOR green]Maintenance[/COLOR]','none', 'tools', 'Maintenance.png','','','')
Пример #18
0
def Categories():
    sign = 0
    maintenance = ADDON.getSetting('maintenance')
    mainmenu = ADDON.getSetting('mainmenu')
    if mainmenu == 'true':
        extras.addDir('folder', '[B]Chiefs Builds[/B]', 'none', 'buildmenu',
                      'build_menu.png', '', '', '')
    if maintenance == 'true':
        extras.addDir('folder', '[B]Chiefs Maintenance[/B]', 'none', 'tools',
                      'Tool.png', '', '', '')
    if maintenance == 'true':
        extras.addDir('', '[B]Update My Add-ons (Force Refresh)[/B]', 'none',
                      'update', 'Tool.png', '', '', '')
Пример #19
0
def Tools():
    extras.addDir('folder','Add-on Maintenance/Fixes', 'none', 'addonfixes', 'Addon_Fixes.png','','','')
    extras.addDir('folder','Backup/Restore My Content','none','backup_restore','Backup.png','','','')
    extras.addDir('folder','Clean/Wipe Options', 'none', 'wipetools', 'Addon_Fixes.png','','','')
    extras.addDir('','Check XBMC/Kodi Version', 'none', 'xbmcversion', 'Version_Check.png','','','')
    extras.addDir('','Convert Physical Paths To Special',HOME,'fix_special','Special_Paths.png','','','')
    extras.addDir('','Force Close Kodi','url','kill_xbmc','Kill_XBMC.png','','','')
Пример #20
0
def Tools():
    extras.addDir('folder', '[B]Chiefs Tools[/B]', 'none', 'wipetools',
                  'Addon_Fixes.png', '', '', '')
    extras.addDir('', '[B]Force Close Kodi[/B]', 'url', 'kill_xbmc',
                  'Kill_XBMC.png', '', '', '')
Пример #21
0
def Hardware_Menu(url):
    BaseURL = 'http://totalxbmc.com/totalrevolution/HardwarePortal/hardwaredetails.php?id=%s' % (
        url)
    link = extras.Open_URL(BaseURL).replace('\n', '').replace('\r', '')
    namematch = re.compile('name="(.+?)"').findall(link)
    manufacturermatch = re.compile('manufacturer="(.+?)"').findall(link)
    videoguide1match = re.compile('video_guide1="(.+?)"').findall(link)
    videoguide2match = re.compile('video_guide2="(.+?)"').findall(link)
    videoguide3match = re.compile('video_guide3="(.+?)"').findall(link)
    videoguide4match = re.compile('video_guide4="(.+?)"').findall(link)
    videoguide5match = re.compile('video_guide5="(.+?)"').findall(link)
    videolabel1match = re.compile('video_label1="(.+?)"').findall(link)
    videolabel2match = re.compile('video_label2="(.+?)"').findall(link)
    videolabel3match = re.compile('video_label3="(.+?)"').findall(link)
    videolabel4match = re.compile('video_label4="(.+?)"').findall(link)
    videolabel5match = re.compile('video_label5="(.+?)"').findall(link)
    shopmatch = re.compile('shops="(.+?)"').findall(link)
    descmatch = re.compile('description="(.+?)"').findall(link)
    screenshot1match = re.compile('screenshot1="(.+?)"').findall(link)
    screenshot2match = re.compile('screenshot2="(.+?)"').findall(link)
    screenshot3match = re.compile('screenshot3="(.+?)"').findall(link)
    screenshot4match = re.compile('screenshot4="(.+?)"').findall(link)
    screenshot5match = re.compile('screenshot5="(.+?)"').findall(link)
    screenshot6match = re.compile('screenshot6="(.+?)"').findall(link)
    screenshot7match = re.compile('screenshot7="(.+?)"').findall(link)
    screenshot8match = re.compile('screenshot8="(.+?)"').findall(link)
    screenshot9match = re.compile('screenshot9="(.+?)"').findall(link)
    screenshot10match = re.compile('screenshot10="(.+?)"').findall(link)
    screenshot11match = re.compile('screenshot11="(.+?)"').findall(link)
    screenshot12match = re.compile('screenshot12="(.+?)"').findall(link)
    screenshot13match = re.compile('screenshot13="(.+?)"').findall(link)
    screenshot14match = re.compile('screenshot14="(.+?)"').findall(link)
    addedmatch = re.compile('added="(.+?)"').findall(link)
    platformmatch = re.compile('platform="(.+?)"').findall(link)
    chipsetmatch = re.compile('chipset="(.+?)"').findall(link)
    guidematch = re.compile('official_guide="(.+?)"').findall(link)
    previewmatch = re.compile('official_preview="(.+?)"').findall(link)
    thumbmatch = re.compile('thumbnail="(.+?)"').findall(link)
    stockmatch = re.compile('stock_rom="(.+?)"').findall(link)
    cpumatch = re.compile('CPU="(.+?)"').findall(link)
    gpumatch = re.compile('GPU="(.+?)"').findall(link)
    rammatch = re.compile('RAM="(.+?)"').findall(link)
    flashmatch = re.compile('flash="(.+?)"').findall(link)
    wifimatch = re.compile('wifi="(.+?)"').findall(link)
    bluetoothmatch = re.compile('bluetooth="(.+?)"').findall(link)
    lanmatch = re.compile('LAN="(.+?)"').findall(link)
    xbmcmatch = re.compile('xbmc_version="(.+?)"').findall(link)
    prosmatch = re.compile('pros="(.+?)"').findall(link)
    consmatch = re.compile('cons="(.+?)"').findall(link)
    librarymatch = re.compile('library_scan="(.+?)"').findall(link)
    fourkmatch = re.compile('4k="(.+?)"').findall(link)
    teneightymatch = re.compile('1080="(.+?)"').findall(link)
    seventwentymatch = re.compile('720="(.+?)"').findall(link)
    threedmatch = re.compile('3D="(.+?)"').findall(link)
    dtsmatch = re.compile('DTS="(.+?)"').findall(link)
    reviewmatch = re.compile('total_review="(.+?)"').findall(link)
    cbmatch = re.compile('CB_Premium="(.+?)"').findall(link)

    name = namematch[0] if (len(namematch) > 0) else ''
    manufacturer = manufacturermatch[0] if (len(manufacturermatch) > 0) else ''
    videoguide1 = videoguide1match[0] if (
        len(videoguide1match) > 0) else 'None'
    videoguide2 = videoguide2match[0] if (
        len(videoguide2match) > 0) else 'None'
    videoguide3 = videoguide3match[0] if (
        len(videoguide3match) > 0) else 'None'
    videoguide4 = videoguide4match[0] if (
        len(videoguide4match) > 0) else 'None'
    videoguide5 = videoguide5match[0] if (
        len(videoguide5match) > 0) else 'None'
    videolabel1 = videolabel1match[0] if (
        len(videolabel1match) > 0) else 'None'
    videolabel2 = videolabel2match[0] if (
        len(videolabel2match) > 0) else 'None'
    videolabel3 = videolabel3match[0] if (
        len(videolabel3match) > 0) else 'None'
    videolabel4 = videolabel4match[0] if (
        len(videolabel4match) > 0) else 'None'
    videolabel5 = videolabel5match[0] if (
        len(videolabel5match) > 0) else 'None'
    shop = shopmatch[0] if (len(shopmatch) > 0) else ''
    description = descmatch[0] if (len(descmatch) > 0) else ''
    screenshot1 = screenshot1match[0] if (len(screenshot1match) > 0) else ''
    screenshot2 = screenshot2match[0] if (len(screenshot2match) > 0) else ''
    screenshot3 = screenshot3match[0] if (len(screenshot3match) > 0) else ''
    screenshot4 = screenshot4match[0] if (len(screenshot4match) > 0) else ''
    screenshot5 = screenshot5match[0] if (len(screenshot5match) > 0) else ''
    screenshot6 = screenshot6match[0] if (len(screenshot6match) > 0) else ''
    screenshot7 = screenshot7match[0] if (len(screenshot7match) > 0) else ''
    screenshot8 = screenshot8match[0] if (len(screenshot8match) > 0) else ''
    screenshot9 = screenshot9match[0] if (len(screenshot9match) > 0) else ''
    screenshot10 = screenshot10match[0] if (len(screenshot10match) > 0) else ''
    screenshot11 = screenshot11match[0] if (len(screenshot11match) > 0) else ''
    screenshot12 = screenshot12match[0] if (len(screenshot12match) > 0) else ''
    screenshot13 = screenshot13match[0] if (len(screenshot13match) > 0) else ''
    screenshot14 = screenshot14match[0] if (len(screenshot14match) > 0) else ''
    added = addedmatch[0] if (len(addedmatch) > 0) else ''
    platform = platformmatch[0] if (len(platformmatch) > 0) else ''
    chipset = chipsetmatch[0] if (len(chipsetmatch) > 0) else ''
    guide = guidematch[0] if (len(guidematch) > 0) else ''
    preview = previewmatch[0] if (len(previewmatch) > 0) else ''
    thumb = thumbmatch[0] if (len(thumbmatch) > 0) else ''
    stock = stockmatch[0] if (len(stockmatch) > 0) else ''
    CPU = cpumatch[0] if (len(cpumatch) > 0) else ''
    GPU = gpumatch[0] if (len(gpumatch) > 0) else ''
    RAM = rammatch[0] if (len(rammatch) > 0) else ''
    flash = flashmatch[0] if (len(flashmatch) > 0) else ''
    wifi = wifimatch[0] if (len(wifimatch) > 0) else ''
    bluetooth = bluetoothmatch[0] if (len(bluetoothmatch) > 0) else ''
    LAN = lanmatch[0] if (len(lanmatch) > 0) else ''
    xbmc_version = xbmcmatch[0] if (len(xbmcmatch) > 0) else ''
    pros = prosmatch[0] if (len(prosmatch) > 0) else ''
    cons = consmatch[0] if (len(consmatch) > 0) else ''
    library = librarymatch[0] if (len(librarymatch) > 0) else ''
    fourk = fourkmatch[0] if (len(fourkmatch) > 0) else ''
    teneighty = teneightymatch[0] if (len(teneightymatch) > 0) else ''
    seventwenty = seventwentymatch[0] if (len(seventwentymatch) > 0) else ''
    threed = threedmatch[0] if (len(threedmatch) > 0) else ''
    DTS = dtsmatch[0] if (len(dtsmatch) > 0) else ''
    review = reviewmatch[0] if (len(reviewmatch) > 0) else ''
    cb = cbmatch[0] if (len(cbmatch) > 0) else ''
    official_description = str(
        '[COLOR=gold]Available From: [/COLOR]' + shop +
        ' @ [COLOR=lime]www.totalboxshop.tv[/COLOR][CR][CR][COLOR=dodgerblue]Added: [/COLOR]'
        + added + '[CR][COLOR=dodgerblue]Manufacturer: [/COLOR]' +
        manufacturer + '[CR][COLOR=dodgerblue]Supported Roms: [/COLOR]' +
        platform + '[CR][COLOR=dodgerblue]Chipset: [/COLOR]' + chipset +
        '[CR][COLOR=dodgerblue]CPU: [/COLOR]' + CPU +
        '[CR][COLOR=dodgerblue]GPU: [/COLOR]' + GPU +
        '[CR][COLOR=dodgerblue]RAM: [/COLOR]' + RAM +
        '[CR][COLOR=dodgerblue]Flash: [/COLOR]' + flash +
        '[CR][COLOR=dodgerblue]Wi-Fi: [/COLOR]' + wifi +
        '[CR][COLOR=dodgerblue]Bluetooth: [/COLOR]' + bluetooth +
        '[CR][COLOR=dodgerblue]LAN: [/COLOR]' + LAN +
        '[CR][CR][COLOR=yellow]About: [/COLOR]' + description)
    official_description2 = str(
        '[COLOR=gold]Availability: [/COLOR]Sorry this device is currently unavailable at [COLOR=lime]www.totalboxshop.tv[/COLOR][CR][CR][COLOR=dodgerblue]Added: [/COLOR]'
        + added + '[CR][COLOR=dodgerblue]Manufacturer: [/COLOR]' +
        manufacturer + '[CR][COLOR=dodgerblue]Supported Roms: [/COLOR]' +
        platform + '[CR][COLOR=dodgerblue]Chipset: [/COLOR]' + chipset +
        '[CR][COLOR=dodgerblue]CPU: [/COLOR]' + CPU +
        '[CR][COLOR=dodgerblue]GPU: [/COLOR]' + GPU +
        '[CR][COLOR=dodgerblue]RAM: [/COLOR]' + RAM +
        '[CR][COLOR=dodgerblue]Flash: [/COLOR]' + flash +
        '[CR][COLOR=dodgerblue]Wi-Fi: [/COLOR]' + wifi +
        '[CR][COLOR=dodgerblue]Bluetooth: [/COLOR]' + bluetooth +
        '[CR][COLOR=dodgerblue]LAN: [/COLOR]' + LAN +
        '[CR][CR][COLOR=yellow]About: [/COLOR]' + description)
    total_review = str(
        '[COLOR=gold]Available From: [/COLOR]' + shop +
        ' @ [COLOR=lime]www.totalboxshop.tv[/COLOR][CR][CR][COLOR=dodgerblue]Added: [/COLOR]'
        + added + '[CR][COLOR=dodgerblue]Manufacturer: [/COLOR]' +
        manufacturer + '[CR][COLOR=dodgerblue]Supported Roms: [/COLOR]' +
        platform + '[CR][COLOR=dodgerblue]Chipset: [/COLOR]' + chipset +
        '[CR][COLOR=dodgerblue]CPU: [/COLOR]' + CPU +
        '[CR][COLOR=dodgerblue]GPU: [/COLOR]' + GPU +
        '[CR][COLOR=dodgerblue]RAM: [/COLOR]' + RAM +
        '[CR][COLOR=dodgerblue]Flash: [/COLOR]' + flash +
        '[CR][COLOR=dodgerblue]Wi-Fi: [/COLOR]' + wifi +
        '[CR][COLOR=dodgerblue]Bluetooth: [/COLOR]' + bluetooth +
        '[CR][COLOR=dodgerblue]LAN: [/COLOR]' + LAN +
        '[CR][CR][COLOR=yellow]About: [/COLOR]' + review +
        '[CR][CR][COLOR=yellow]Summary:[/COLOR][CR][CR][COLOR=dodgerblue]Pros:[/COLOR]    '
        + pros + '[CR][CR][COLOR=dodgerblue]Cons:[/COLOR]  ' + cons +
        '[CR][CR][COLOR=gold]4k Playback:[/COLOR]  ' + fourk +
        '[CR][CR][COLOR=gold]1080p Playback:[/COLOR]  ' + teneighty +
        '[CR][CR][COLOR=gold]720p Playback:[/COLOR]  ' + seventwenty +
        '[CR][CR][COLOR=gold]DTS Compatibility:[/COLOR]  ' + DTS +
        '[CR][CR][COLOR=gold]Time taken to scan 100 movies:[/COLOR]  ' +
        library)
    total_review2 = str(
        '[COLOR=gold]Availability: [/COLOR]Sorry this device is currently unavailable at [COLOR=lime]www.totalboxshop.tv[/COLOR][CR][CR][COLOR=dodgerblue]Added: [/COLOR]'
        + added + '[CR][COLOR=dodgerblue]Manufacturer: [/COLOR]' +
        manufacturer + '[CR][COLOR=dodgerblue]Supported Roms: [/COLOR]' +
        platform + '[CR][COLOR=dodgerblue]Chipset: [/COLOR]' + chipset +
        '[CR][COLOR=dodgerblue]CPU: [/COLOR]' + CPU +
        '[CR][COLOR=dodgerblue]GPU: [/COLOR]' + GPU +
        '[CR][COLOR=dodgerblue]RAM: [/COLOR]' + RAM +
        '[CR][COLOR=dodgerblue]Flash: [/COLOR]' + flash +
        '[CR][COLOR=dodgerblue]Wi-Fi: [/COLOR]' + wifi +
        '[CR][COLOR=dodgerblue]Bluetooth: [/COLOR]' + bluetooth +
        '[CR][COLOR=dodgerblue]LAN: [/COLOR]' + LAN +
        '[CR][CR][COLOR=yellow]About: [/COLOR]' + review +
        '[CR][CR][COLOR=yellow]Summary:[/COLOR][CR][CR][COLOR=dodgerblue]Pros:[/COLOR]    '
        + pros + '[CR][CR][COLOR=dodgerblue]Cons:[/COLOR]  ' + cons +
        '[CR][CR][COLOR=gold]4k Playback:[/COLOR]  ' + fourk +
        '[CR][CR][COLOR=gold]1080p Playback:[/COLOR]  ' + teneighty +
        '[CR][CR][COLOR=gold]720p Playback:[/COLOR]  ' + seventwenty +
        '[CR][CR][COLOR=gold]DTS Compatibility:[/COLOR]  ' + DTS +
        '[CR][CR][COLOR=gold]Time taken to scan 100 movies:[/COLOR]  ' +
        library)
    if description != '' and shop != '':
        extras.addDir(
            '', '[COLOR=yellow][Text Guide][/COLOR]  Official Description',
            official_description, 'text_guide', 'TotalXBMC_Guides.png', FANART,
            '', '')
    if description != '' and shop == '':
        extras.addDir(
            '', '[COLOR=yellow][Text Guide][/COLOR]  Official Description',
            official_description2, 'text_guide', 'TotalXBMC_Guides.png',
            FANART, '', '')
    if review != '' and shop != '':
        extras.addDir('',
                      '[COLOR=yellow][Text Guide][/COLOR]  TotalXBMC Review',
                      total_review, 'text_guide', 'TotalXBMC_Guides.png',
                      FANART, '', '')
    if review != '' and shop == '':
        extras.addDir('',
                      '[COLOR=yellow][Text Guide][/COLOR]  TotalXBMC Review',
                      total_review2, 'text_guide', 'TotalXBMC_Guides.png',
                      FANART, '', '')
    if preview != 'None':
        extras.addDir('',
                      '[COLOR=lime][VIDEO][/COLOR]   Official Video Preview',
                      preview, 'play_video', 'Video_Guide.png', FANART, '', '')
    if guide != 'None':
        extras.addDir('', '[COLOR=lime][VIDEO][/COLOR]   Official Video Guide',
                      guide, 'play_video', 'Video_Guide.png', FANART, '', '')
    if videoguide1 != 'None':
        extras.addDir('', '[COLOR=lime][VIDEO][/COLOR]  ' + videolabel1,
                      videoguide1, 'play_video', 'Video_Guide.png', FANART, '',
                      '')
    if videoguide2 != 'None':
        extras.addDir('', '[COLOR=lime][VIDEO][/COLOR]  ' + videolabel2,
                      videoguide2, 'play_video', 'Video_Guide.png', FANART, '',
                      '')
    if videoguide3 != 'None':
        extras.addDir('', '[COLOR=lime][VIDEO][/COLOR]  ' + videolabel3,
                      videoguide3, 'play_video', 'Video_Guide.png', FANART, '',
                      '')
    if videoguide4 != 'None':
        extras.addDir('', '[COLOR=lime][VIDEO][/COLOR]  ' + videolabel4,
                      videoguide4, 'play_video', 'Video_Guide.png', FANART, '',
                      '')
    if videoguide5 != 'None':
        extras.addDir('', '[COLOR=lime][VIDEO][/COLOR]  ' + videolabel5,
                      videoguide5, 'play_video', 'Video_Guide.png', FANART, '',
                      '')
Пример #22
0
def Tutorial_Menu(url):
    incremental = 'http://totalxbmc.com/totalrevolution/TutorialPortal/downloadcount.php?id=%s' % (
        url)
    extras.Open_URL(incremental)
    BaseURL = 'http://totalxbmc.com/totalrevolution/TutorialPortal/tutorialdetails.php?id=%s' % (
        url)
    link = extras.Open_URL(BaseURL).replace('\n', '').replace('\r', '')
    namematch = re.compile('name="(.+?)"').findall(link)
    authormatch = re.compile('author="(.+?)"').findall(link)
    videoguide1match = re.compile('video_guide1="(.+?)"').findall(link)
    videoguide2match = re.compile('video_guide2="(.+?)"').findall(link)
    videoguide3match = re.compile('video_guide3="(.+?)"').findall(link)
    videoguide4match = re.compile('video_guide4="(.+?)"').findall(link)
    videoguide5match = re.compile('video_guide5="(.+?)"').findall(link)
    videolabel1match = re.compile('video_label1="(.+?)"').findall(link)
    videolabel2match = re.compile('video_label2="(.+?)"').findall(link)
    videolabel3match = re.compile('video_label3="(.+?)"').findall(link)
    videolabel4match = re.compile('video_label4="(.+?)"').findall(link)
    videolabel5match = re.compile('video_label5="(.+?)"').findall(link)
    aboutmatch = re.compile('about="(.+?)"').findall(link)
    step1match = re.compile('step1="(.+?)"').findall(link)
    step2match = re.compile('step2="(.+?)"').findall(link)
    step3match = re.compile('step3="(.+?)"').findall(link)
    step4match = re.compile('step4="(.+?)"').findall(link)
    step5match = re.compile('step5="(.+?)"').findall(link)
    step6match = re.compile('step6="(.+?)"').findall(link)
    step7match = re.compile('step7="(.+?)"').findall(link)
    step8match = re.compile('step8="(.+?)"').findall(link)
    step9match = re.compile('step9="(.+?)"').findall(link)
    step10match = re.compile('step10="(.+?)"').findall(link)
    step11match = re.compile('step11="(.+?)"').findall(link)
    step12match = re.compile('step12="(.+?)"').findall(link)
    step13match = re.compile('step13="(.+?)"').findall(link)
    step14match = re.compile('step14="(.+?)"').findall(link)
    step15match = re.compile('step15="(.+?)"').findall(link)
    screenshot1match = re.compile('screenshot1="(.+?)"').findall(link)
    screenshot2match = re.compile('screenshot2="(.+?)"').findall(link)
    screenshot3match = re.compile('screenshot3="(.+?)"').findall(link)
    screenshot4match = re.compile('screenshot4="(.+?)"').findall(link)
    screenshot5match = re.compile('screenshot5="(.+?)"').findall(link)
    screenshot6match = re.compile('screenshot6="(.+?)"').findall(link)
    screenshot7match = re.compile('screenshot7="(.+?)"').findall(link)
    screenshot8match = re.compile('screenshot8="(.+?)"').findall(link)
    screenshot9match = re.compile('screenshot9="(.+?)"').findall(link)
    screenshot10match = re.compile('screenshot10="(.+?)"').findall(link)
    screenshot11match = re.compile('screenshot11="(.+?)"').findall(link)
    screenshot12match = re.compile('screenshot12="(.+?)"').findall(link)
    screenshot13match = re.compile('screenshot13="(.+?)"').findall(link)
    screenshot14match = re.compile('screenshot14="(.+?)"').findall(link)
    screenshot15match = re.compile('screenshot15="(.+?)"').findall(link)

    name = namematch[0] if (len(namematch) > 0) else ''
    author = authormatch[0] if (len(authormatch) > 0) else ''
    videoguide1 = videoguide1match[0] if (
        len(videoguide1match) > 0) else 'None'
    videoguide2 = videoguide2match[0] if (
        len(videoguide2match) > 0) else 'None'
    videoguide3 = videoguide3match[0] if (
        len(videoguide3match) > 0) else 'None'
    videoguide4 = videoguide4match[0] if (
        len(videoguide4match) > 0) else 'None'
    videoguide5 = videoguide5match[0] if (
        len(videoguide5match) > 0) else 'None'
    videolabel1 = videolabel1match[0] if (
        len(videolabel1match) > 0) else 'None'
    videolabel2 = videolabel2match[0] if (
        len(videolabel2match) > 0) else 'None'
    videolabel3 = videolabel3match[0] if (
        len(videolabel3match) > 0) else 'None'
    videolabel4 = videolabel4match[0] if (
        len(videolabel4match) > 0) else 'None'
    videolabel5 = videolabel5match[0] if (
        len(videolabel5match) > 0) else 'None'
    about = aboutmatch[0] if (len(aboutmatch) > 0) else ''
    step1 = '[CR][CR][COLOR=dodgerblue]Step 1:[/COLOR][CR]' + step1match[0] if (
        len(step1match) > 0) else ''
    step2 = '[CR][CR][COLOR=dodgerblue]Step 2:[/COLOR][CR]' + step2match[0] if (
        len(step2match) > 0) else ''
    step3 = '[CR][CR][COLOR=dodgerblue]Step 3:[/COLOR][CR]' + step3match[0] if (
        len(step3match) > 0) else ''
    step4 = '[CR][CR][COLOR=dodgerblue]Step 4:[/COLOR][CR]' + step4match[0] if (
        len(step4match) > 0) else ''
    step5 = '[CR][CR][COLOR=dodgerblue]Step 5:[/COLOR][CR]' + step5match[0] if (
        len(step5match) > 0) else ''
    step6 = '[CR][CR][COLOR=dodgerblue]Step 6:[/COLOR][CR]' + step6match[0] if (
        len(step6match) > 0) else ''
    step7 = '[CR][CR][COLOR=dodgerblue]Step 7:[/COLOR][CR]' + step7match[0] if (
        len(step7match) > 0) else ''
    step8 = '[CR][CR][COLOR=dodgerblue]Step 8:[/COLOR][CR]' + step8match[0] if (
        len(step8match) > 0) else ''
    step9 = '[CR][CR][COLOR=dodgerblue]Step 9:[/COLOR][CR]' + step9match[0] if (
        len(step9match) > 0) else ''
    step10 = '[CR][CR][COLOR=dodgerblue]Step 10:[/COLOR][CR]' + step10match[
        0] if (len(step10match) > 0) else ''
    step11 = '[CR][CR][COLOR=dodgerblue]Step 11:[/COLOR][CR]' + step11match[
        0] if (len(step11match) > 0) else ''
    step12 = '[CR][CR][COLOR=dodgerblue]Step 12:[/COLOR][CR]' + step12match[
        0] if (len(step12match) > 0) else ''
    step13 = '[CR][CR][COLOR=dodgerblue]Step 13:[/COLOR][CR]' + step13match[
        0] if (len(step13match) > 0) else ''
    step14 = '[CR][CR][COLOR=dodgerblue]Step 14:[/COLOR][CR]' + step14match[
        0] if (len(step14match) > 0) else ''
    step15 = '[CR][CR][COLOR=dodgerblue]Step 15:[/COLOR][CR]' + step15match[
        0] if (len(step15match) > 0) else ''
    screenshot1 = screenshot1match[0] if (len(screenshot1match) > 0) else ''
    screenshot2 = screenshot2match[0] if (len(screenshot2match) > 0) else ''
    screenshot3 = screenshot3match[0] if (len(screenshot3match) > 0) else ''
    screenshot4 = screenshot4match[0] if (len(screenshot4match) > 0) else ''
    screenshot5 = screenshot5match[0] if (len(screenshot5match) > 0) else ''
    screenshot6 = screenshot6match[0] if (len(screenshot6match) > 0) else ''
    screenshot7 = screenshot7match[0] if (len(screenshot7match) > 0) else ''
    screenshot8 = screenshot8match[0] if (len(screenshot8match) > 0) else ''
    screenshot9 = screenshot9match[0] if (len(screenshot9match) > 0) else ''
    screenshot10 = screenshot10match[0] if (len(screenshot10match) > 0) else ''
    screenshot11 = screenshot11match[0] if (len(screenshot11match) > 0) else ''
    screenshot12 = screenshot12match[0] if (len(screenshot12match) > 0) else ''
    screenshot13 = screenshot13match[0] if (len(screenshot13match) > 0) else ''
    screenshot14 = screenshot14match[0] if (len(screenshot14match) > 0) else ''
    screenshot15 = screenshot15match[0] if (len(screenshot15match) > 0) else ''
    description = str('[COLOR=gold]Author: [/COLOR]' + author +
                      '[CR][CR][COLOR=lime]About: [/COLOR]' + about + step1 +
                      step2 + step3 + step4 + step5 + step6 + step7 + step8 +
                      step9 + step10 + step11 + step12 + step13 + step14 +
                      step15)
    if step1 != '':
        extras.addDir('', '[COLOR=yellow][Text Guide][/COLOR]  ' + name,
                      description, 'text_guide', 'How_To.png', FANART, about,
                      '')
    if videoguide1 != 'None':
        extras.addDir('', '[COLOR=lime][VIDEO][/COLOR]  ' + videolabel1,
                      videoguide1, 'play_video', 'Video_Guide.png', FANART, '',
                      '')
    if videoguide2 != 'None':
        extras.addDir('', '[COLOR=lime][VIDEO][/COLOR]  ' + videolabel2,
                      videoguide2, 'play_video', 'Video_Guide.png', FANART, '',
                      '')
    if videoguide3 != 'None':
        extras.addDir('', '[COLOR=lime][VIDEO][/COLOR]  ' + videolabel3,
                      videoguide3, 'play_video', 'Video_Guide.png', FANART, '',
                      '')
    if videoguide4 != 'None':
        extras.addDir('', '[COLOR=lime][VIDEO][/COLOR]  ' + videolabel4,
                      videoguide4, 'play_video', 'Video_Guide.png', FANART, '',
                      '')
    if videoguide5 != 'None':
        extras.addDir('', '[COLOR=lime][VIDEO][/COLOR]  ' + videolabel5,
                      videoguide5, 'play_video', 'Video_Guide.png', FANART, '',
                      '')
Пример #23
0
def Addon_Countries():
    extras.addDir('folder', 'African', '&genre=african', 'grab_addons',
                  'african.png', '', '', '')
    extras.addDir('folder', 'Arabic', '&genre=arabic', 'grab_addons',
                  'arabic.png', '', '', '')
    extras.addDir('folder', 'Asian', '&genre=asian', 'grab_addons',
                  'asian.png', '', '', '')
    extras.addDir('folder', 'Australian', '&genre=australian', 'grab_addons',
                  'australian.png', '', '', '')
    extras.addDir('folder', 'Austrian', '&genre=austrian', 'grab_addons',
                  'austrian.png', '', '', '')
    extras.addDir('folder', 'Belgian', '&genre=belgian', 'grab_addons',
                  'belgian.png', '', '', '')
    extras.addDir('folder', 'Brazilian', '&genre=brazilian', 'grab_addons',
                  'brazilian.png', '', '', '')
    extras.addDir('folder', 'Canadian', '&genre=canadian', 'grab_addons',
                  'canadian.png', '', '', '')
    extras.addDir('folder', 'Columbian', '&genre=columbian', 'grab_addons',
                  'columbian.png', '', '', '')
    extras.addDir('folder', 'Czech', '&genre=czech', 'grab_addons',
                  'czech.png', '', '', '')
    extras.addDir('folder', 'Danish', '&genre=danish', 'grab_addons',
                  'danish.png', '', '', '')
    extras.addDir('folder', 'Dominican', '&genre=dominican', 'grab_addons',
                  'dominican.png', '', '', '')
    extras.addDir('folder', 'Dutch', '&genre=dutch', 'grab_addons',
                  'dutch.png', '', '', '')
    extras.addDir('folder', 'Egyptian', '&genre=egyptian', 'grab_addons',
                  'egyptian.png', '', '', '')
    extras.addDir('folder', 'Filipino', '&genre=filipino', 'grab_addons',
                  'filipino.png', '', '', '')
    extras.addDir('folder', 'Finnish', '&genre=finnish', 'grab_addons',
                  'finnish.png', '', '', '')
    extras.addDir('folder', 'French', '&genre=french', 'grab_addons',
                  'french.png', '', '', '')
    extras.addDir('folder', 'German', '&genre=german', 'grab_addons',
                  'german.png', '', '', '')
    extras.addDir('folder', 'Greek', '&genre=greek', 'grab_addons',
                  'greek.png', '', '', '')
    extras.addDir('folder', 'Hebrew', '&genre=hebrew', 'grab_addons',
                  'hebrew.png', '', '', '')
    extras.addDir('folder', 'Hungarian', '&genre=hungarian', 'grab_addons',
                  'hungarian.png', '', '', '')
    extras.addDir('folder', 'Icelandic', '&genre=icelandic', 'grab_addons',
                  'icelandic.png', '', '', '')
    extras.addDir('folder', 'Indian', '&genre=indian', 'grab_addons',
                  'indian.png', '', '', '')
    extras.addDir('folder', 'Irish', '&genre=irish', 'grab_addons',
                  'irish.png', '', '', '')
    extras.addDir('folder', 'Italian', '&genre=italian', 'grab_addons',
                  'italian.png', '', '', '')
    extras.addDir('folder', 'Japanese', '&genre=japanese', 'grab_addons',
                  'japanese.png', '', '', '')
    extras.addDir('folder', 'Korean', '&genre=korean', 'grab_addons',
                  'korean.png', '', '', '')
    extras.addDir('folder', 'Lebanese', '&genre=lebanese', 'grab_addons',
                  'lebanese.png', '', '', '')
    extras.addDir('folder', 'Mongolian', '&genre=mongolian', 'grab_addons',
                  'mongolian.png', '', '', '')
    extras.addDir('folder', 'Nepali', '&genre=nepali', 'grab_addons',
                  'nepali.png', '', '', '')
    extras.addDir('folder', 'New Zealand', '&genre=newzealand', 'grab_addons',
                  'newzealand.png', '', '', '')
    extras.addDir('folder', 'Norwegian', '&genre=norwegian', 'grab_addons',
                  'norwegian.png', '', '', '')
    extras.addDir('folder', 'Pakistani', '&genre=pakistani', 'grab_addons',
                  'pakistani.png', '', '', '')
    extras.addDir('folder', 'Polish', '&genre=polish', 'grab_addons',
                  'polish.png', '', '', '')
    extras.addDir('folder', 'Portuguese', '&genre=portuguese', 'grab_addons',
                  'portuguese.png', '', '', '')
    extras.addDir('folder', 'Romanian', '&genre=romanian', 'grab_addons',
                  'romanian.png', '', '', '')
    extras.addDir('folder', 'Russian', '&genre=russian', 'grab_addons',
                  'russian.png', '', '', '')
    extras.addDir('folder', 'Singapore', '&genre=singapore', 'grab_addons',
                  'singapore.png', '', '', '')
    extras.addDir('folder', 'Spanish', '&genre=spanish', 'grab_addons',
                  'spanish.png', '', '', '')
    extras.addDir('folder', 'Swedish', '&genre=swedish', 'grab_addons',
                  'swedish.png', '', '', '')
    extras.addDir('folder', 'Swiss', '&genre=swiss', 'grab_addons',
                  'swiss.png', '', '', '')
    extras.addDir('folder', 'Syrian', '&genre=syrian', 'grab_addons',
                  'syrian.png', '', '', '')
    extras.addDir('folder', 'Tamil', '&genre=tamil', 'grab_addons',
                  'tamil.png', '', '', '')
    extras.addDir('folder', 'Thai', '&genre=thai', 'grab_addons', 'thai.png',
                  '', '', '')
    extras.addDir('folder', 'Turkish', '&genre=turkish', 'grab_addons',
                  'turkish.png', '', '', '')
    extras.addDir('folder', 'UK', '&genre=uk', 'grab_addons', 'uk.png', '', '',
                  '')
    extras.addDir('folder', 'USA', '&genre=usa', 'grab_addons', 'usa.png', '',
                  '', '')
    extras.addDir('folder', 'Vietnamese', '&genre=vietnamese', 'grab_addons',
                  'vietnamese.png', '', '', '')
Пример #24
0
def Addon_Final_Menu(url):
    BaseURL='http://totalxbmc.com/totalrevolution/AddonPortal/addondetails.php?id=%s' % (url)
    link = extras.Open_URL(BaseURL).replace('\n','').replace('\r','')
    namematch = re.compile('name="(.+?)"').findall(link)
    UIDmatch = re.compile('UID="(.+?)"').findall(link)
    idmatch = re.compile('id="(.+?)"').findall(link)
    providernamematch = re.compile('provider_name="(.+?)"').findall(link)
    versionmatch = re.compile('version="(.+?)"').findall(link)
    createdmatch = re.compile('created="(.+?)"').findall(link)
    contentmatch = re.compile('addon_types="(.+?)"').findall(link)
    updatedmatch = re.compile('updated="(.+?)"').findall(link)
    downloadsmatch = re.compile('downloads="(.+?)"').findall(link)
#    xboxmatch = re.compile('xbox_compatible="(.+?)"').findall(link)
    descriptionmatch = re.compile('description="(.+?)"').findall(link)
    devbrokenmatch = re.compile('devbroke="(.+?)"').findall(link)
    brokenmatch = re.compile('broken="(.+?)"').findall(link)
    deletedmatch = re.compile('deleted="(.+?)"').findall(link)
    notesmatch = re.compile('mainbranch_notes="(.+?)"').findall(link)
#    xboxnotesmatch = re.compile('xbox_notes="(.+?)"').findall(link)
    repourlmatch = re.compile('repo_url="(.+?)"').findall(link)
    dataurlmatch = re.compile('data_url="(.+?)"').findall(link)
    zipurlmatch = re.compile('zip_url="(.+?)"').findall(link)
    genresmatch = re.compile('genres="(.+?)"').findall(link)
    forummatch = re.compile('forum="(.+?)"').findall(link)
    repoidmatch = re.compile('repo_id="(.+?)"').findall(link)
    licensematch = re.compile('license="(.+?)"').findall(link)
    platformmatch = re.compile('platform="(.+?)"').findall(link)
    visiblematch = re.compile('visible="(.+?)"').findall(link)
    scriptmatch = re.compile('script="(.+?)"').findall(link)
    programpluginmatch = re.compile('program_plugin="(.+?)"').findall(link)
    scriptmodulematch = re.compile('script_module="(.+?)"').findall(link)
    videopluginmatch = re.compile('video_plugin="(.+?)"').findall(link)
    audiopluginmatch = re.compile('audio_plugin="(.+?)"').findall(link)
    imagepluginmatch = re.compile('image_plugin="(.+?)"').findall(link)
    repositorymatch = re.compile('repository="(.+?)"').findall(link)
    weatherservicematch = re.compile('weather_service="(.+?)"').findall(link)
    skinmatch = re.compile('skin="(.+?)"').findall(link)
    servicematch = re.compile('service="(.+?)"').findall(link)
    warningmatch = re.compile('warning="(.+?)"').findall(link)
    webinterfacematch = re.compile('web_interface="(.+?)"').findall(link)
    moviescrapermatch = re.compile('movie_scraper="(.+?)"').findall(link)
    tvscrapermatch = re.compile('tv_scraper="(.+?)"').findall(link)
    artistscrapermatch = re.compile('artist_scraper="(.+?)"').findall(link)
    musicvideoscrapermatch = re.compile('music_video_scraper="(.+?)"').findall(link)
    subtitlesmatch = re.compile('subtitles="(.+?)"').findall(link)
    requiresmatch = re.compile('requires="(.+?)"').findall(link)
    modulesmatch = re.compile('modules="(.+?)"').findall(link)
    iconmatch = re.compile('icon="(.+?)"').findall(link)
    videopreviewmatch = re.compile('video_preview="(.+?)"').findall(link)
    videoguidematch = re.compile('video_guide="(.+?)"').findall(link)
    videoguidematch1 = re.compile('video_guide1="(.+?)"').findall(link)
    videoguidematch2 = re.compile('video_guide2="(.+?)"').findall(link)
    videoguidematch3 = re.compile('video_guide3="(.+?)"').findall(link)
    videoguidematch4 = re.compile('video_guide4="(.+?)"').findall(link)
    videoguidematch5 = re.compile('video_guide5="(.+?)"').findall(link)
    videoguidematch6 = re.compile('video_guide6="(.+?)"').findall(link)
    videoguidematch7 = re.compile('video_guide7="(.+?)"').findall(link)
    videoguidematch8 = re.compile('video_guide8="(.+?)"').findall(link)
    videoguidematch9 = re.compile('video_guide9="(.+?)"').findall(link)
    videoguidematch10 = re.compile('video_guide10="(.+?)"').findall(link)
    videolabelmatch1 = re.compile('video_label1="(.+?)"').findall(link)
    videolabelmatch2 = re.compile('video_label2="(.+?)"').findall(link)
    videolabelmatch3 = re.compile('video_label3="(.+?)"').findall(link)
    videolabelmatch4 = re.compile('video_label4="(.+?)"').findall(link)
    videolabelmatch5 = re.compile('video_label5="(.+?)"').findall(link)
    videolabelmatch6 = re.compile('video_label6="(.+?)"').findall(link)
    videolabelmatch7 = re.compile('video_label7="(.+?)"').findall(link)
    videolabelmatch8 = re.compile('video_label8="(.+?)"').findall(link)
    videolabelmatch9 = re.compile('video_label9="(.+?)"').findall(link)
    videolabelmatch10 = re.compile('video_label10="(.+?)"').findall(link)

#Need to add if broken version > current version statement   
    name  = namematch[0] if (len(namematch) > 0) else ''
    UID  = UIDmatch[0] if (len(UIDmatch) > 0) else ''
    addon_id  = idmatch[0] if (len(idmatch) > 0) else ''
    provider_name  = providernamematch[0] if (len(providernamematch) > 0) else ''
    version  = versionmatch[0] if (len(versionmatch) > 0) else ''
    created  = createdmatch[0] if (len(createdmatch) > 0) else ''
    content_types  = contentmatch[0] if (len(contentmatch) > 0) else ''
    updated  = updatedmatch[0] if (len(updatedmatch) > 0) else ''
    downloads  = downloadsmatch[0] if (len(downloadsmatch) > 0) else ''
#    xbox  = xboxmatch[0] if (len(xboxmatch) > 0) else ''
    desc  = '[CR][CR][COLOR=dodgerblue]Description: [/COLOR]'+descriptionmatch[0] if (len(descriptionmatch) > 0) else ''
    devbroken  = devbrokenmatch[0] if (len(devbrokenmatch) > 0) else ''
    broken  = brokenmatch[0] if (len(brokenmatch) > 0) else ''
    deleted  = '[CR]'+deletedmatch[0] if (len(deletedmatch) > 0) else ''
    notes  = '[CR][CR][COLOR=dodgerblue]User Notes: [/COLOR]'+notesmatch[0] if (len(notesmatch) > 0) else ''
#    xbox_notes  = xboxnotesmatch[0] if (len(xboxnotesmatch) > 0) else ''
    repo_url  = repourlmatch[0] if (len(repourlmatch) > 0) else ''
    data_url  = dataurlmatch[0] if (len(dataurlmatch) > 0) else ''
    zip_url  = zipurlmatch[0] if (len(zipurlmatch) > 0) else ''
    genres  = genresmatch[0] if (len(genresmatch) > 0) else ''
    forum  = '[CR][CR][COLOR=dodgerblue]Support Forum: [/COLOR]'+forummatch[0] if (len(forummatch) > 0) else ''
    repo_id  = repoidmatch[0] if (len(repoidmatch) > 0) else ''
    license  = licensematch[0] if (len(licensematch) > 0) else ''
    platform  = '[COLOR=gold]     Platform: [/COLOR]'+platformmatch[0] if (len(platformmatch) > 0) else ''
    visible  = visiblematch[0] if (len(visiblematch) > 0) else ''
    script  = scriptmatch[0] if (len(scriptmatch) > 0) else ''
    program_plugin  = programpluginmatch[0] if (len(programpluginmatch) > 0) else ''
    script_module  = scriptmodulematch[0] if (len(scriptmodulematch) > 0) else ''
    video_plugin  = videopluginmatch[0] if (len(videopluginmatch) > 0) else ''
    audio_plugin  = audiopluginmatch[0] if (len(audiopluginmatch) > 0) else ''
    image_plugin  = imagepluginmatch[0] if (len(imagepluginmatch) > 0) else ''
    repository  = repositorymatch[0] if (len(repositorymatch) > 0) else ''
    service  = servicematch[0] if (len(servicematch) > 0) else ''
    skin  = skinmatch[0] if (len(skinmatch) > 0) else ''
    warning  = warningmatch[0] if (len(warningmatch) > 0) else ''
    web_interface  = webinterfacematch[0] if (len(webinterfacematch) > 0) else ''
    weather_service  = weatherservicematch[0] if (len(weatherservicematch) > 0) else ''
    movie_scraper  = moviescrapermatch[0] if (len(moviescrapermatch) > 0) else ''
    tv_scraper  = tvscrapermatch[0] if (len(tvscrapermatch) > 0) else ''
    artist_scraper  = artistscrapermatch[0] if (len(artistscrapermatch) > 0) else ''
    music_video_scraper  = musicvideoscrapermatch[0] if (len(musicvideoscrapermatch) > 0) else ''
    subtitles  = subtitlesmatch[0] if (len(subtitlesmatch) > 0) else ''
    requires  = requiresmatch[0] if (len(requiresmatch) > 0) else ''
    modules  = modulesmatch[0] if (len(modulesmatch) > 0) else ''
    icon  = iconmatch[0] if (len(iconmatch) > 0) else ''
    videopreview  = videopreviewmatch[0] if (len(videopreviewmatch) > 0) else 'None'
    videoguide  = videoguidematch[0] if (len(videoguidematch) > 0) else 'None'
    videoguide1  = videoguidematch1[0] if (len(videoguidematch1) > 0) else 'None'
    videoguide2  = videoguidematch2[0] if (len(videoguidematch2) > 0) else 'None'
    videoguide3  = videoguidematch3[0] if (len(videoguidematch3) > 0) else 'None'
    videoguide4  = videoguidematch4[0] if (len(videoguidematch4) > 0) else 'None'
    videoguide5  = videoguidematch5[0] if (len(videoguidematch5) > 0) else 'None'
    videoguide6  = videoguidematch6[0] if (len(videoguidematch6) > 0) else 'None'
    videoguide7  = videoguidematch7[0] if (len(videoguidematch7) > 0) else 'None'
    videoguide8  = videoguidematch8[0] if (len(videoguidematch8) > 0) else 'None'
    videoguide9  = videoguidematch9[0] if (len(videoguidematch9) > 0) else 'None'
    videoguide10  = videoguidematch10[0] if (len(videoguidematch10) > 0) else 'None'
    videolabel1  = videolabelmatch1[0] if (len(videolabelmatch1) > 0) else 'None'
    videolabel2  = videolabelmatch2[0] if (len(videolabelmatch2) > 0) else 'None'
    videolabel3  = videolabelmatch3[0] if (len(videolabelmatch3) > 0) else 'None'
    videolabel4  = videolabelmatch4[0] if (len(videolabelmatch4) > 0) else 'None'
    videolabel5  = videolabelmatch5[0] if (len(videolabelmatch5) > 0) else 'None'
    videolabel6  = videolabelmatch6[0] if (len(videolabelmatch6) > 0) else 'None'
    videolabel7  = videolabelmatch7[0] if (len(videolabelmatch7) > 0) else 'None'
    videolabel8  = videolabelmatch8[0] if (len(videolabelmatch8) > 0) else 'None'
    videolabel9  = videolabelmatch9[0] if (len(videolabelmatch9) > 0) else 'None'
    videolabel10  = videolabelmatch10[0] if (len(videolabelmatch10) > 0) else 'None'
    if deleted != '':
        brokenfinal  = '[CR][CR][COLOR=dodgerblue]Status: [/COLOR][COLOR=red]This add-on is depreciated, it\'s no longer available.[/COLOR]'
    elif broken == '' and devbroken == '' and warning =='':
        brokenfinal  = '[CR][CR][COLOR=dodgerblue]Status: [/COLOR][COLOR=lime]No reported problems[/COLOR]'
    elif broken == '' and devbroken == '' and warning !='' and deleted =='':
        brokenfinal  = '[CR][CR][COLOR=dodgerblue]Status: [/COLOR][COLOR=orange]Although there have been no reported problems there may be issues with this add-on, see below.[/COLOR]'
    elif broken == '' and devbroken != '':
        brokenfinal  = '[CR][CR][COLOR=dodgerblue]Status: [/COLOR]Marked as broken by the add-on developer.[CR][COLOR=dodgerblue]Developer Comments: [/COLOR]'+devbroken
    elif broken != '' and devbroken == '':
        brokenfinal  = '[CR][CR][COLOR=dodgerblue]Status: [/COLOR]Marked as broken by a member of the community at [COLOR=lime]www.totalxbmc.tv[/COLOR][CR][COLOR=dodgerblue]User Comments: [/COLOR]'+broken
    elif broken != '' and devbroken != '':
        brokenfinal  = '[CR][CR][COLOR=dodgerblue]Status: [/COLOR]Marked as broken by both the add-on developer and a member of the community at [COLOR=lime]www.totalxbmc.tv[/COLOR][CR][COLOR=dodgerblue]Developer Comments: [/COLOR]'+devbroken+'[CR][COLOR=dodgerblue]User Comments: [/COLOR]'+broken
    description = str('[COLOR=gold]Name: [/COLOR]'+name+'[COLOR=gold]     Author(s): [/COLOR]'+provider_name+'[COLOR=gold][CR][CR]Version: [/COLOR]'+version+'[COLOR=gold]     Created: [/COLOR]'+created+'[COLOR=gold]     Updated: [/COLOR]'+updated+'[COLOR=gold][CR][CR]Repository: [/COLOR]'+repo_id+platform+'[COLOR=gold]     Add-on Type(s): [/COLOR]'+content_types+requires+brokenfinal+deleted+warning+forum+desc+notes)

    if (broken == '') and (devbroken =='') and (deleted =='') and (warning ==''):
        extras.addDir('addon','[COLOR=yellow][FULL DETAILS][/COLOR][COLOR=lime] No problems reported[/COLOR]',description,'text_guide',icon,'','',description)    
    if (broken != '' and deleted == '') or (devbroken != '' and deleted == '') or (warning != '' and deleted ==''):
        extras.addDir('addon','[COLOR=yellow][FULL DETAILS][/COLOR][COLOR=orange] Possbile problems reported[/COLOR]',description,'text_guide',icon,'','',description)            
    if deleted != '':
        extras.addDir('addon','[COLOR=yellow][FULL DETAILS][/COLOR][COLOR=red] Add-on now depreciated[/COLOR]',description,'text_guide',icon,'','',description)            
    if deleted =='':
        extras.Add_Install_Dir('[COLOR=lime][INSTALL] [/COLOR]'+name,name,'','addon_install','Install.png','','',desc,zip_url,repo_url,repo_id,addon_id,provider_name,forum,data_url)    
    if videopreview != 'None':
        extras.addDir('','[COLOR=dodgerblue][VIDEO][/COLOR]  Preview',videoguide1,'play_video','Video_Guide.png','','','')    
    if videoguide1 != 'None':
        extras.addDir('','[COLOR=dodgerblue][VIDEO][/COLOR]  '+videolabel1,videoguide1,'play_video','Video_Guide.png','','','')    
    if videoguide2 != 'None':
        extras.addDir('','[COLOR=dodgerblue][VIDEO][/COLOR]  '+videolabel2,videoguide2,'play_video','Video_Guide.png','','','')    
    if videoguide3 != 'None':
        extras.addDir('','[COLOR=dodgerblue][VIDEO][/COLOR]  '+videolabel3,videoguide3,'play_video','Video_Guide.png','','','')    
    if videoguide4 != 'None':
        extras.addDir('','[COLOR=dodgerblue][VIDEO][/COLOR]  '+videolabel4,videoguide4,'play_video','Video_Guide.png','','','')    
    if videoguide5 != 'None':
        extras.addDir('','[COLOR=dodgerblue][VIDEO][/COLOR]  '+videolabel5,videoguide5,'play_video','Video_Guide.png','','','')    
    if videoguide6 != 'None':
        extras.addDir('','[COLOR=dodgerblue][VIDEO][/COLOR]  '+videolabel6,videoguide6,'play_video','Video_Guide.png','','','')    
    if videoguide7 != 'None':
        extras.addDir('','[COLOR=dodgerblue][VIDEO][/COLOR]  '+videolabel7,videoguide7,'play_video','Video_Guide.png','','','')    
    if videoguide8 != 'None':
        extras.addDir('','[COLOR=dodgerblue][VIDEO][/COLOR]  '+videolabel8,videoguide8,'play_video','Video_Guide.png','','','')    
    if videoguide9 != 'None':
        extras.addDir('','[COLOR=dodgerblue][VIDEO][/COLOR]  '+videolabel9,videoguide9,'play_video','Video_Guide.png','','','')    
    if videoguide10 != 'None':
        extras.addDir('','[COLOR=dodgerblue][VIDEO][/COLOR]  '+videolabel10,videoguide10,'play_video','Video_Guide.png','','','')    
Пример #25
0
def Popular():
    link = extras.Open_URL('http://totalxbmc.tv/totalrevolution/Addon_Packs/addonpacks.txt').replace('\n','').replace('\r','')
    match = re.compile('name="(.+?)".+?rl="(.+?)".+?mg="(.+?)".+?anart="(.+?)".+?escription="(.+?)"').findall(link)
    for name,url,iconimage,fanart,description in match:
        extras.addDir('folder2',name,url,'popularwizard',iconimage,fanart,description)
Пример #26
0
def Wipe_Tools():
    extras.addDir('','Clear Cache','url','clear_cache','Clean.png','','','')
    extras.addDir('','Clear My Cached Artwork', 'none', 'remove_textures', 'Clean.png','','','')
    extras.addDir('','Delete Packages Folder','url','remove_packages','Clean.png','','','')
    extras.addDir('','Wipe My Install (Fresh Start)', 'none', 'wipe_xbmc', 'Fresh_Start.png','','','')
Пример #27
0
def Addon_Final_Menu(url):
    BaseURL = 'http://totalxbmc.com/totalrevolution/AddonPortal/addondetails.php?id=%s' % (
        url)
    link = extras.Open_URL(BaseURL).replace('\n', '').replace('\r', '')
    namematch = re.compile('name="(.+?)"').findall(link)
    UIDmatch = re.compile('UID="(.+?)"').findall(link)
    idmatch = re.compile('id="(.+?)"').findall(link)
    providernamematch = re.compile('provider_name="(.+?)"').findall(link)
    versionmatch = re.compile('version="(.+?)"').findall(link)
    createdmatch = re.compile('created="(.+?)"').findall(link)
    contentmatch = re.compile('addon_types="(.+?)"').findall(link)
    updatedmatch = re.compile('updated="(.+?)"').findall(link)
    downloadsmatch = re.compile('downloads="(.+?)"').findall(link)
    #    xboxmatch = re.compile('xbox_compatible="(.+?)"').findall(link)
    descriptionmatch = re.compile('description="(.+?)"').findall(link)
    devbrokenmatch = re.compile('devbroke="(.+?)"').findall(link)
    brokenmatch = re.compile('broken="(.+?)"').findall(link)
    deletedmatch = re.compile('deleted="(.+?)"').findall(link)
    notesmatch = re.compile('mainbranch_notes="(.+?)"').findall(link)
    #    xboxnotesmatch = re.compile('xbox_notes="(.+?)"').findall(link)
    repourlmatch = re.compile('repo_url="(.+?)"').findall(link)
    dataurlmatch = re.compile('data_url="(.+?)"').findall(link)
    zipurlmatch = re.compile('zip_url="(.+?)"').findall(link)
    genresmatch = re.compile('genres="(.+?)"').findall(link)
    forummatch = re.compile('forum="(.+?)"').findall(link)
    repoidmatch = re.compile('repo_id="(.+?)"').findall(link)
    licensematch = re.compile('license="(.+?)"').findall(link)
    platformmatch = re.compile('platform="(.+?)"').findall(link)
    visiblematch = re.compile('visible="(.+?)"').findall(link)
    scriptmatch = re.compile('script="(.+?)"').findall(link)
    programpluginmatch = re.compile('program_plugin="(.+?)"').findall(link)
    scriptmodulematch = re.compile('script_module="(.+?)"').findall(link)
    videopluginmatch = re.compile('video_plugin="(.+?)"').findall(link)
    audiopluginmatch = re.compile('audio_plugin="(.+?)"').findall(link)
    imagepluginmatch = re.compile('image_plugin="(.+?)"').findall(link)
    repositorymatch = re.compile('repository="(.+?)"').findall(link)
    weatherservicematch = re.compile('weather_service="(.+?)"').findall(link)
    skinmatch = re.compile('skin="(.+?)"').findall(link)
    servicematch = re.compile('service="(.+?)"').findall(link)
    warningmatch = re.compile('warning="(.+?)"').findall(link)
    webinterfacematch = re.compile('web_interface="(.+?)"').findall(link)
    moviescrapermatch = re.compile('movie_scraper="(.+?)"').findall(link)
    tvscrapermatch = re.compile('tv_scraper="(.+?)"').findall(link)
    artistscrapermatch = re.compile('artist_scraper="(.+?)"').findall(link)
    musicvideoscrapermatch = re.compile('music_video_scraper="(.+?)"').findall(
        link)
    subtitlesmatch = re.compile('subtitles="(.+?)"').findall(link)
    requiresmatch = re.compile('requires="(.+?)"').findall(link)
    modulesmatch = re.compile('modules="(.+?)"').findall(link)
    iconmatch = re.compile('icon="(.+?)"').findall(link)
    videopreviewmatch = re.compile('video_preview="(.+?)"').findall(link)
    videoguidematch = re.compile('video_guide="(.+?)"').findall(link)
    videoguidematch1 = re.compile('video_guide1="(.+?)"').findall(link)
    videoguidematch2 = re.compile('video_guide2="(.+?)"').findall(link)
    videoguidematch3 = re.compile('video_guide3="(.+?)"').findall(link)
    videoguidematch4 = re.compile('video_guide4="(.+?)"').findall(link)
    videoguidematch5 = re.compile('video_guide5="(.+?)"').findall(link)
    videoguidematch6 = re.compile('video_guide6="(.+?)"').findall(link)
    videoguidematch7 = re.compile('video_guide7="(.+?)"').findall(link)
    videoguidematch8 = re.compile('video_guide8="(.+?)"').findall(link)
    videoguidematch9 = re.compile('video_guide9="(.+?)"').findall(link)
    videoguidematch10 = re.compile('video_guide10="(.+?)"').findall(link)
    videolabelmatch1 = re.compile('video_label1="(.+?)"').findall(link)
    videolabelmatch2 = re.compile('video_label2="(.+?)"').findall(link)
    videolabelmatch3 = re.compile('video_label3="(.+?)"').findall(link)
    videolabelmatch4 = re.compile('video_label4="(.+?)"').findall(link)
    videolabelmatch5 = re.compile('video_label5="(.+?)"').findall(link)
    videolabelmatch6 = re.compile('video_label6="(.+?)"').findall(link)
    videolabelmatch7 = re.compile('video_label7="(.+?)"').findall(link)
    videolabelmatch8 = re.compile('video_label8="(.+?)"').findall(link)
    videolabelmatch9 = re.compile('video_label9="(.+?)"').findall(link)
    videolabelmatch10 = re.compile('video_label10="(.+?)"').findall(link)

    #Need to add if broken version > current version statement
    name = namematch[0] if (len(namematch) > 0) else ''
    UID = UIDmatch[0] if (len(UIDmatch) > 0) else ''
    addon_id = idmatch[0] if (len(idmatch) > 0) else ''
    provider_name = providernamematch[0] if (
        len(providernamematch) > 0) else ''
    version = versionmatch[0] if (len(versionmatch) > 0) else ''
    created = createdmatch[0] if (len(createdmatch) > 0) else ''
    content_types = contentmatch[0] if (len(contentmatch) > 0) else ''
    updated = updatedmatch[0] if (len(updatedmatch) > 0) else ''
    downloads = downloadsmatch[0] if (len(downloadsmatch) > 0) else ''
    #    xbox  = xboxmatch[0] if (len(xboxmatch) > 0) else ''
    desc = '[CR][CR][COLOR=dodgerblue]Description: [/COLOR]' + descriptionmatch[
        0] if (len(descriptionmatch) > 0) else ''
    devbroken = devbrokenmatch[0] if (len(devbrokenmatch) > 0) else ''
    broken = brokenmatch[0] if (len(brokenmatch) > 0) else ''
    deleted = '[CR]' + deletedmatch[0] if (len(deletedmatch) > 0) else ''
    notes = '[CR][CR][COLOR=dodgerblue]User Notes: [/COLOR]' + notesmatch[
        0] if (len(notesmatch) > 0) else ''
    #    xbox_notes  = xboxnotesmatch[0] if (len(xboxnotesmatch) > 0) else ''
    repo_url = repourlmatch[0] if (len(repourlmatch) > 0) else ''
    data_url = dataurlmatch[0] if (len(dataurlmatch) > 0) else ''
    zip_url = zipurlmatch[0] if (len(zipurlmatch) > 0) else ''
    genres = genresmatch[0] if (len(genresmatch) > 0) else ''
    forum = '[CR][CR][COLOR=dodgerblue]Support Forum: [/COLOR]' + forummatch[
        0] if (len(forummatch) > 0) else ''
    repo_id = repoidmatch[0] if (len(repoidmatch) > 0) else ''
    license = licensematch[0] if (len(licensematch) > 0) else ''
    platform = '[COLOR=gold]     Platform: [/COLOR]' + platformmatch[0] if (
        len(platformmatch) > 0) else ''
    visible = visiblematch[0] if (len(visiblematch) > 0) else ''
    script = scriptmatch[0] if (len(scriptmatch) > 0) else ''
    program_plugin = programpluginmatch[0] if (
        len(programpluginmatch) > 0) else ''
    script_module = scriptmodulematch[0] if (
        len(scriptmodulematch) > 0) else ''
    video_plugin = videopluginmatch[0] if (len(videopluginmatch) > 0) else ''
    audio_plugin = audiopluginmatch[0] if (len(audiopluginmatch) > 0) else ''
    image_plugin = imagepluginmatch[0] if (len(imagepluginmatch) > 0) else ''
    repository = repositorymatch[0] if (len(repositorymatch) > 0) else ''
    service = servicematch[0] if (len(servicematch) > 0) else ''
    skin = skinmatch[0] if (len(skinmatch) > 0) else ''
    warning = warningmatch[0] if (len(warningmatch) > 0) else ''
    web_interface = webinterfacematch[0] if (
        len(webinterfacematch) > 0) else ''
    weather_service = weatherservicematch[0] if (
        len(weatherservicematch) > 0) else ''
    movie_scraper = moviescrapermatch[0] if (
        len(moviescrapermatch) > 0) else ''
    tv_scraper = tvscrapermatch[0] if (len(tvscrapermatch) > 0) else ''
    artist_scraper = artistscrapermatch[0] if (
        len(artistscrapermatch) > 0) else ''
    music_video_scraper = musicvideoscrapermatch[0] if (
        len(musicvideoscrapermatch) > 0) else ''
    subtitles = subtitlesmatch[0] if (len(subtitlesmatch) > 0) else ''
    requires = requiresmatch[0] if (len(requiresmatch) > 0) else ''
    modules = modulesmatch[0] if (len(modulesmatch) > 0) else ''
    icon = iconmatch[0] if (len(iconmatch) > 0) else ''
    videopreview = videopreviewmatch[0] if (
        len(videopreviewmatch) > 0) else 'None'
    videoguide = videoguidematch[0] if (len(videoguidematch) > 0) else 'None'
    videoguide1 = videoguidematch1[0] if (
        len(videoguidematch1) > 0) else 'None'
    videoguide2 = videoguidematch2[0] if (
        len(videoguidematch2) > 0) else 'None'
    videoguide3 = videoguidematch3[0] if (
        len(videoguidematch3) > 0) else 'None'
    videoguide4 = videoguidematch4[0] if (
        len(videoguidematch4) > 0) else 'None'
    videoguide5 = videoguidematch5[0] if (
        len(videoguidematch5) > 0) else 'None'
    videoguide6 = videoguidematch6[0] if (
        len(videoguidematch6) > 0) else 'None'
    videoguide7 = videoguidematch7[0] if (
        len(videoguidematch7) > 0) else 'None'
    videoguide8 = videoguidematch8[0] if (
        len(videoguidematch8) > 0) else 'None'
    videoguide9 = videoguidematch9[0] if (
        len(videoguidematch9) > 0) else 'None'
    videoguide10 = videoguidematch10[0] if (
        len(videoguidematch10) > 0) else 'None'
    videolabel1 = videolabelmatch1[0] if (
        len(videolabelmatch1) > 0) else 'None'
    videolabel2 = videolabelmatch2[0] if (
        len(videolabelmatch2) > 0) else 'None'
    videolabel3 = videolabelmatch3[0] if (
        len(videolabelmatch3) > 0) else 'None'
    videolabel4 = videolabelmatch4[0] if (
        len(videolabelmatch4) > 0) else 'None'
    videolabel5 = videolabelmatch5[0] if (
        len(videolabelmatch5) > 0) else 'None'
    videolabel6 = videolabelmatch6[0] if (
        len(videolabelmatch6) > 0) else 'None'
    videolabel7 = videolabelmatch7[0] if (
        len(videolabelmatch7) > 0) else 'None'
    videolabel8 = videolabelmatch8[0] if (
        len(videolabelmatch8) > 0) else 'None'
    videolabel9 = videolabelmatch9[0] if (
        len(videolabelmatch9) > 0) else 'None'
    videolabel10 = videolabelmatch10[0] if (
        len(videolabelmatch10) > 0) else 'None'
    if deleted != '':
        brokenfinal = '[CR][CR][COLOR=dodgerblue]Status: [/COLOR][COLOR=red]This add-on is depreciated, it\'s no longer available.[/COLOR]'
    elif broken == '' and devbroken == '' and warning == '':
        brokenfinal = '[CR][CR][COLOR=dodgerblue]Status: [/COLOR][COLOR=lime]No reported problems[/COLOR]'
    elif broken == '' and devbroken == '' and warning != '' and deleted == '':
        brokenfinal = '[CR][CR][COLOR=dodgerblue]Status: [/COLOR][COLOR=orange]Although there have been no reported problems there may be issues with this add-on, see below.[/COLOR]'
    elif broken == '' and devbroken != '':
        brokenfinal = '[CR][CR][COLOR=dodgerblue]Status: [/COLOR]Marked as broken by the add-on developer.[CR][COLOR=dodgerblue]Developer Comments: [/COLOR]' + devbroken
    elif broken != '' and devbroken == '':
        brokenfinal = '[CR][CR][COLOR=dodgerblue]Status: [/COLOR]Marked as broken by a member of the community at [COLOR=lime]www.totalxbmc.tv[/COLOR][CR][COLOR=dodgerblue]User Comments: [/COLOR]' + broken
    elif broken != '' and devbroken != '':
        brokenfinal = '[CR][CR][COLOR=dodgerblue]Status: [/COLOR]Marked as broken by both the add-on developer and a member of the community at [COLOR=lime]www.totalxbmc.tv[/COLOR][CR][COLOR=dodgerblue]Developer Comments: [/COLOR]' + devbroken + '[CR][COLOR=dodgerblue]User Comments: [/COLOR]' + broken
    description = str('[COLOR=gold]Name: [/COLOR]' + name +
                      '[COLOR=gold]     Author(s): [/COLOR]' + provider_name +
                      '[COLOR=gold][CR][CR]Version: [/COLOR]' + version +
                      '[COLOR=gold]     Created: [/COLOR]' + created +
                      '[COLOR=gold]     Updated: [/COLOR]' + updated +
                      '[COLOR=gold][CR][CR]Repository: [/COLOR]' + repo_id +
                      platform + '[COLOR=gold]     Add-on Type(s): [/COLOR]' +
                      content_types + requires + brokenfinal + deleted +
                      warning + forum + desc + notes)

    if (broken == '') and (devbroken == '') and (deleted == '') and (warning
                                                                     == ''):
        extras.addDir(
            'addon',
            '[COLOR=yellow][FULL DETAILS][/COLOR][COLOR=lime] No problems reported[/COLOR]',
            description, 'text_guide', icon, '', '', description)
    if (broken != ''
            and deleted == '') or (devbroken != ''
                                   and deleted == '') or (warning != ''
                                                          and deleted == ''):
        extras.addDir(
            'addon',
            '[COLOR=yellow][FULL DETAILS][/COLOR][COLOR=orange] Possbile problems reported[/COLOR]',
            description, 'text_guide', icon, '', '', description)
    if deleted != '':
        extras.addDir(
            'addon',
            '[COLOR=yellow][FULL DETAILS][/COLOR][COLOR=red] Add-on now depreciated[/COLOR]',
            description, 'text_guide', icon, '', '', description)
    if deleted == '':
        extras.Add_Install_Dir('[COLOR=lime][INSTALL] [/COLOR]' + name, name,
                               '', 'addon_install', 'Install.png', '', '',
                               desc, zip_url, repo_url, repo_id, addon_id,
                               provider_name, forum, data_url)
    if videopreview != 'None':
        extras.addDir('', '[COLOR=dodgerblue][VIDEO][/COLOR]  Preview',
                      videoguide1, 'play_video', 'Video_Guide.png', '', '', '')
    if videoguide1 != 'None':
        extras.addDir('', '[COLOR=dodgerblue][VIDEO][/COLOR]  ' + videolabel1,
                      videoguide1, 'play_video', 'Video_Guide.png', '', '', '')
    if videoguide2 != 'None':
        extras.addDir('', '[COLOR=dodgerblue][VIDEO][/COLOR]  ' + videolabel2,
                      videoguide2, 'play_video', 'Video_Guide.png', '', '', '')
    if videoguide3 != 'None':
        extras.addDir('', '[COLOR=dodgerblue][VIDEO][/COLOR]  ' + videolabel3,
                      videoguide3, 'play_video', 'Video_Guide.png', '', '', '')
    if videoguide4 != 'None':
        extras.addDir('', '[COLOR=dodgerblue][VIDEO][/COLOR]  ' + videolabel4,
                      videoguide4, 'play_video', 'Video_Guide.png', '', '', '')
    if videoguide5 != 'None':
        extras.addDir('', '[COLOR=dodgerblue][VIDEO][/COLOR]  ' + videolabel5,
                      videoguide5, 'play_video', 'Video_Guide.png', '', '', '')
    if videoguide6 != 'None':
        extras.addDir('', '[COLOR=dodgerblue][VIDEO][/COLOR]  ' + videolabel6,
                      videoguide6, 'play_video', 'Video_Guide.png', '', '', '')
    if videoguide7 != 'None':
        extras.addDir('', '[COLOR=dodgerblue][VIDEO][/COLOR]  ' + videolabel7,
                      videoguide7, 'play_video', 'Video_Guide.png', '', '', '')
    if videoguide8 != 'None':
        extras.addDir('', '[COLOR=dodgerblue][VIDEO][/COLOR]  ' + videolabel8,
                      videoguide8, 'play_video', 'Video_Guide.png', '', '', '')
    if videoguide9 != 'None':
        extras.addDir('', '[COLOR=dodgerblue][VIDEO][/COLOR]  ' + videolabel9,
                      videoguide9, 'play_video', 'Video_Guide.png', '', '', '')
    if videoguide10 != 'None':
        extras.addDir('', '[COLOR=dodgerblue][VIDEO][/COLOR]  ' + videolabel10,
                      videoguide10, 'play_video', 'Video_Guide.png', '', '',
                      '')
Пример #28
0
def Manual_Search():
    extras.addDir('folder','Search By Name','name','search_builds','Manual_Search.png','','','')
    extras.addDir('folder','Search By Uploader','author','search_builds','Search_Genre.png','','','')
    extras.addDir('folder','Search By Audio Addons Installed','audio','search_builds','Search_Addons.png','','','')
    extras.addDir('folder','Search By Picture Addons Installed','pics','search_builds','Search_Addons.png','','','')
    extras.addDir('folder','Search By Program Addons Installed','progs','search_builds','Search_Addons.png','','','')
    extras.addDir('folder','Search By Video Addons Installed','vids','search_builds','Search_Addons.png','','','')
    extras.addDir('folder','Search By Skins Installed','skins','search_builds','Search_Addons.png','','','')
Пример #29
0
def Addon_Categories():
    extras.addDir('folder', '[COLOR=yellow][PLUGIN][/COLOR] Audio',
                  '&typex=audio', 'grab_addons', 'audio.png', '', '', '')
    extras.addDir('folder', '[COLOR=yellow][PLUGIN][/COLOR] Image (Picture)',
                  '&typex=image', 'grab_addons', 'pictures.png', '', '', '')
    extras.addDir('folder', '[COLOR=yellow][PLUGIN][/COLOR] Program',
                  '&typex=program', 'grab_addons', 'programs.png', '', '', '')
    extras.addDir('folder', '[COLOR=yellow][PLUGIN][/COLOR] Video',
                  '&typex=video', 'grab_addons', 'video.png', '', '', '')
    extras.addDir(
        'folder',
        '[COLOR=lime][SCRAPER][/COLOR] Movies (Used for library scanning)',
        '&typex=movie%20scraper', 'grab_addons', 'movies.png', '', '', '')
    extras.addDir(
        'folder',
        '[COLOR=lime][SCRAPER][/COLOR] TV Shows (Used for library scanning)',
        '&typex=tv%20show%20scraper', 'grab_addons', 'tvshows.png', '', '', '')
    extras.addDir(
        'folder',
        '[COLOR=lime][SCRAPER][/COLOR] Music Artists (Used for library scanning)',
        '&typex=artist%20scraper', 'grab_addons', 'artists.png', '', '', '')
    extras.addDir(
        'folder',
        '[COLOR=lime][SCRAPER][/COLOR] Music Videos (Used for library scanning)',
        '&typex=music%20video%20scraper', 'grab_addons', 'musicvideos.png', '',
        '', '')
    extras.addDir('folder', '[COLOR=orange][SERVICE][/COLOR] All Services',
                  '&typex=service', 'grab_addons', 'services.png', '', '', '')
    extras.addDir('folder', '[COLOR=orange][SERVICE][/COLOR] Weather Service',
                  '&typex=weather', 'grab_addons', 'weather.png', '', '', '')
    extras.addDir('folder', '[COLOR=dodgerblue][OTHER][/COLOR] Repositories',
                  '&typex=repository', 'grab_addons', 'repositories.png', '',
                  '', '')
    extras.addDir(
        'folder',
        '[COLOR=dodgerblue][OTHER][/COLOR] Scripts (Program Add-ons)',
        '&typex=executable', 'grab_addons', 'scripts.png', '', '', '')
    extras.addDir('folder', '[COLOR=dodgerblue][OTHER][/COLOR] Screensavers',
                  '&typex=screensaver', 'grab_addons', 'screensaver.png', '',
                  '', '')
    extras.addDir('folder', '[COLOR=dodgerblue][OTHER][/COLOR] Script Modules',
                  '&typex=script%20module', 'grab_addons', 'scriptmodules.png',
                  '', '', '')
    extras.addDir('folder', '[COLOR=dodgerblue][OTHER][/COLOR] Skins',
                  '&typex=skin', 'grab_addons', 'skins.png', '', '', '')
    extras.addDir('folder', '[COLOR=dodgerblue][OTHER][/COLOR] Subtitles',
                  '&typex=subtitles', 'grab_addons', 'subtitles.png', '', '',
                  '')
    extras.addDir('folder', '[COLOR=dodgerblue][OTHER][/COLOR] Web Interface',
                  '&typex=web%20interface', 'grab_addons', 'webinterface.png',
                  '', '', '')
Пример #30
0
def Backup_Option():
    extras.addDir('','[COLOR=yellow]Full Backup[/COLOR]','url','community_backup','Backup.png','','','Back Up Your Full System')
    extras.addDir('','Backup Just Your Addons','addons','restore_zip','Backup.png','','','Back Up Your Addons')
    extras.addDir('','Backup Just Your Addon UserData','addon_data','restore_zip','Backup.png','','','Back Up Your Addon Userdata')
    extras.addDir('','Backup Guisettings.xml',GUI,'restore_backup','Backup.png','','','Back Up Your guisettings.xml')
    if os.path.exists(FAVS):
        extras.addDir('','Backup Favourites.xml',FAVS,'restore_backup','Backup.png','','','Back Up Your favourites.xml')
    if os.path.exists(SOURCE):
        extras.addDir('','Backup Source.xml',SOURCE,'restore_backup','Backup.png','','','Back Up Your sources.xml')
    if os.path.exists(ADVANCED):
        extras.addDir('','Backup Advancedsettings.xml',ADVANCED,'restore_backup','Backup.png','','','Back Up Your advancedsettings.xml')
    if os.path.exists(KEYMAPS):
        extras.addDir('','Backup Advancedsettings.xml',KEYMAPS,'restore_backup','Backup.png','','','Back Up Your keyboard.xml')
    if os.path.exists(RSS):
        extras.addDir('','Backup RssFeeds.xml',RSS,'restore_backup','Backup.png','','','Back Up Your RssFeeds.xml')
Пример #31
0
def Wipe_Tools():
    extras.addDir('','Clear Cache','url','clear_cache','Clear_Cache.png','','','')
    extras.addDir('','Clear My Cached Artwork', 'none', 'remove_textures', 'Delete_Cached_Artwork.png','','','')
    extras.addDir('','Delete Addon_Data','url','remove_addon_data','Delete_Addon_Data.png','','','')
    extras.addDir('','Delete Old Builds/Zips From Device','url','remove_build','Delete_Builds.png','','','')
    extras.addDir('','Delete Old Crash Logs','url','remove_crash_logs','Delete_Crash_Logs.png','','','')
    extras.addDir('','Delete Packages Folder','url','remove_packages','Delete_Packages.png','','','')
    extras.addDir('','Wipe My Install (Fresh Start)', 'none', 'wipe_xbmc', 'Fresh_Start.png','','','')
Пример #32
0
def Addon_Fixes():
    extras.addDir('','Update My Add-ons (Force Refresh)', 'none', 'update', 'Refresh.png','','','')
Пример #33
0
def Addon_Removal_Menu():
    for file in glob.glob(os.path.join(ADDONS,'*')):
        name=str(file).replace(ADDONS,'[COLOR=red]REMOVE [/COLOR]').replace('plugin.','[COLOR=dodgerblue](PLUGIN) [/COLOR]').replace('audio.','').replace('video.','').replace('skin.','[COLOR=yellow](SKIN) [/COLOR]').replace('repository.','[COLOR=orange](REPOSITORY) [/COLOR]').replace('script.','[COLOR=cyan](SCRIPT) [/COLOR]').replace('metadata.','[COLOR=gold](METADATA) [/COLOR]').replace('service.','[COLOR=pink](SERVICE) [/COLOR]').replace('weather.','[COLOR=green](WEATHER) [/COLOR]').replace('module.','[COLOR=gold](MODULE) [/COLOR]')
        iconimage=(os.path.join(file,'icon.png'))
        fanart=(os.path.join(file,'fanart.jpg'))
        extras.addDir('',name,file,'remove_addons',iconimage,fanart,'','')
Пример #34
0
def Backup_Option():
    extras.addDir(
        "",
        "[COLOR=yellow]Full Backup[/COLOR]",
        "url",
        "community_backup",
        "Backup.png",
        "",
        "",
        "Back Up Your Full System",
    )
    extras.addDir("", "Backup Just Your Addons", "addons", "restore_zip", "Backup.png", "", "", "Back Up Your Addons")
    extras.addDir(
        "",
        "Backup Just Your Addon UserData",
        "addon_data",
        "restore_zip",
        "Backup.png",
        "",
        "",
        "Back Up Your Addon Userdata",
    )
    extras.addDir(
        "", "Backup Guisettings.xml", GUI, "restore_backup", "Backup.png", "", "", "Back Up Your guisettings.xml"
    )
    if os.path.exists(FAVS):
        extras.addDir(
            "", "Backup Favourites.xml", FAVS, "restore_backup", "Backup.png", "", "", "Back Up Your favourites.xml"
        )
    if os.path.exists(SOURCE):
        extras.addDir(
            "", "Backup Source.xml", SOURCE, "restore_backup", "Backup.png", "", "", "Back Up Your sources.xml"
        )
    if os.path.exists(ADVANCED):
        extras.addDir(
            "",
            "Backup Advancedsettings.xml",
            ADVANCED,
            "restore_backup",
            "Backup.png",
            "",
            "",
            "Back Up Your advancedsettings.xml",
        )
    if os.path.exists(KEYMAPS):
        extras.addDir(
            "", "Backup Keyboard.xml", KEYMAPS, "restore_backup", "Backup.png", "", "", "Back Up Your keyboard.xml"
        )
Пример #35
0
def Addon_Genres():       
    extras.addDir('folder','Anime','&genre=anime','grab_addons','anime.png','','','')
    extras.addDir('folder','Audiobooks','&genre=audiobooks','grab_addons','audiobooks.png','','','')
    extras.addDir('folder','Comedy','&genre=comedy','grab_addons','comedy.png','','','')
    extras.addDir('folder','Comics','&genre=comics','grab_addons','comics.png','','','')
    extras.addDir('folder','Documentary','&genre=documentary','grab_addons','documentary.png','','','')
    extras.addDir('folder','Downloads','&genre=downloads','grab_addons','downloads.png','','','')
    extras.addDir('folder','Food','&genre=food','grab_addons','food.png','','','')
    extras.addDir('folder','Gaming','&genre=gaming','grab_addons','gaming.png','','','')
    extras.addDir('folder','Health','&genre=health','grab_addons','health.png','','','')
    extras.addDir('folder','How To...','&genre=howto','grab_addons','howto.png','','','')
    extras.addDir('folder','Kids','&genre=kids','grab_addons','kids.png','','','')
    extras.addDir('folder','Live TV','&genre=livetv','grab_addons','livetv.png','','','')
    extras.addDir('folder','Movies','&genre=movies','grab_addons','movies.png','','','')
    extras.addDir('folder','Music','&genre=music','grab_addons','music.png','','','')
    extras.addDir('folder','News','&genre=news','grab_addons','news.png','','','')
    extras.addDir('folder','Photos','&genre=photos','grab_addons','photos.png','','','')
    extras.addDir('folder','Podcasts','&genre=podcasts','grab_addons','podcasts.png','','','')
    extras.addDir('folder','Radio','&genre=radio','grab_addons','radio.png','','','')
    extras.addDir('folder','Religion','&genre=religion','grab_addons','religion.png','','','')
    extras.addDir('folder','Space','&genre=space','grab_addons','space.png','','','')
    extras.addDir('folder','Sports','&genre=sports','grab_addons','sports.png','','','')
    extras.addDir('folder','Technology','&genre=tech','grab_addons','tech.png','','','')
    extras.addDir('folder','Trailers','&genre=trailers','grab_addons','trailers.png','','','')
    extras.addDir('folder','TV Shows','&genre=tv','grab_addons','tv.png','','','')
    extras.addDir('folder','Misc.','&genre=other','grab_addons','other.png','','','')
    if ADDON.getSetting('adult') == 'true':
        extras.addDir('folder','XXX','&genre=adult','grab_addons','adult.png','','','')
Пример #36
0
def Restore_Option():
    if trcheck == "true":
        Check_Local_Install()
    extras.addDir(
        "",
        "[COLOR=lime]RESTORE LOCAL BUILD[/COLOR]",
        "url",
        "restore_local_CB",
        "Backup.png",
        "",
        "",
        "Back Up Your Full System",
    )
    extras.addDir(
        "",
        "[COLOR=dodgerblue]Restore Local guisettings file[/COLOR]",
        "url",
        "LocalGUIDialog",
        "Backup.png",
        "",
        "",
        "Back Up Your Full System",
    )

    if os.path.exists(os.path.join(USB, "addons.zip")):
        extras.addDir("", "Restore Your Addons", "addons", "restore_zip", "Backup.png", "", "", "Restore Your Addons")

    if os.path.exists(os.path.join(USB, "addon_data.zip")):
        extras.addDir(
            "",
            "Restore Your Addon UserData",
            "addon_data",
            "restore_zip",
            "Backup.png",
            "",
            "",
            "Restore Your Addon UserData",
        )

    if os.path.exists(os.path.join(USB, "guisettings.xml")):
        extras.addDir(
            "", "Restore Guisettings.xml", GUI, "restore_backup", "Backup.png", "", "", "Restore Your guisettings.xml"
        )

    if os.path.exists(os.path.join(USB, "favourites.xml")):
        extras.addDir(
            "", "Restore Favourites.xml", FAVS, "restore_backup", "Backup.png", "", "", "Restore Your favourites.xml"
        )

    if os.path.exists(os.path.join(USB, "sources.xml")):
        extras.addDir(
            "", "Restore Source.xml", SOURCE, "restore_backup", "Backup.png", "", "", "Restore Your sources.xml"
        )

    if os.path.exists(os.path.join(USB, "advancedsettings.xml")):
        extras.addDir(
            "",
            "Restore Advancedsettings.xml",
            ADVANCED,
            "restore_backup",
            "Backup.png",
            "",
            "",
            "Restore Your advancedsettings.xml",
        )

    if os.path.exists(os.path.join(USB, "keyboard.xml")):
        extras.addDir(
            "", "Restore Keyboard.xml", KEYMAPS, "restore_backup", "Backup.png", "", "", "Restore Your keyboard.xml"
        )

    if os.path.exists(os.path.join(USB, "RssFeeds.xml")):
        extras.addDir(
            "", "Restore RssFeeds.xml", RSS, "restore_backup", "Backup.png", "", "", "Restore Your RssFeeds.xml"
        )
Пример #37
0
def Addon_Categories():
    extras.addDir('folder','[COLOR=yellow][PLUGIN][/COLOR] Audio','&typex=audio','grab_addons','audio.png','','','')
    extras.addDir('folder','[COLOR=yellow][PLUGIN][/COLOR] Image (Picture)','&typex=image','grab_addons','pictures.png','','','')
    extras.addDir('folder','[COLOR=yellow][PLUGIN][/COLOR] Program','&typex=program','grab_addons','programs.png','','','')
    extras.addDir('folder','[COLOR=yellow][PLUGIN][/COLOR] Video','&typex=video','grab_addons','video.png','','','')
    extras.addDir('folder','[COLOR=lime][SCRAPER][/COLOR] Movies (Used for library scanning)','&typex=movie%20scraper','grab_addons','movies.png','','','')
    extras.addDir('folder','[COLOR=lime][SCRAPER][/COLOR] TV Shows (Used for library scanning)','&typex=tv%20show%20scraper','grab_addons','tvshows.png','','','')
    extras.addDir('folder','[COLOR=lime][SCRAPER][/COLOR] Music Artists (Used for library scanning)','&typex=artist%20scraper','grab_addons','artists.png','','','')
    extras.addDir('folder','[COLOR=lime][SCRAPER][/COLOR] Music Videos (Used for library scanning)','&typex=music%20video%20scraper','grab_addons','musicvideos.png','','','')
    extras.addDir('folder','[COLOR=orange][SERVICE][/COLOR] All Services','&typex=service','grab_addons','services.png','','','')
    extras.addDir('folder','[COLOR=orange][SERVICE][/COLOR] Weather Service','&typex=weather','grab_addons','weather.png','','','')
    extras.addDir('folder','[COLOR=dodgerblue][OTHER][/COLOR] Repositories','&typex=repository','grab_addons','repositories.png','','','')
    extras.addDir('folder','[COLOR=dodgerblue][OTHER][/COLOR] Scripts (Program Add-ons)','&typex=executable','grab_addons','scripts.png','','','')
    extras.addDir('folder','[COLOR=dodgerblue][OTHER][/COLOR] Screensavers','&typex=screensaver','grab_addons','screensaver.png','','','')
    extras.addDir('folder','[COLOR=dodgerblue][OTHER][/COLOR] Script Modules','&typex=script%20module','grab_addons','scriptmodules.png','','','')
    extras.addDir('folder','[COLOR=dodgerblue][OTHER][/COLOR] Skins','&typex=skin','grab_addons','skins.png','','','')
    extras.addDir('folder','[COLOR=dodgerblue][OTHER][/COLOR] Subtitles','&typex=subtitles','grab_addons','subtitles.png','','','')
    extras.addDir('folder','[COLOR=dodgerblue][OTHER][/COLOR] Web Interface','&typex=web%20interface','grab_addons','webinterface.png','','','')
Пример #38
0
def Addon_Fixes():
    extras.addDir('folder','Completely remove an add-on (inc. passwords)','plugin','addon_removal_menu', 'Remove_Addon.png','','','')
    extras.addDir('','Hide my add-on passwords','none','hide_passwords', 'Hide_Passwords.png','','','')
    extras.addDir('','Unhide my add-on passwords','none','unhide_passwords', 'Unhide_Passwords.png','','','')
    extras.addDir('','Update My Add-ons (Force Refresh)', 'none', 'update', 'Update_Addons.png','','','')
    extras.addDir('','Wipe All Add-on Settings (addon_data)','url','remove_addon_data','Delete_Addon_Data.png','','','')
Пример #39
0
def Addon_Countries():
    extras.addDir('folder','African','&genre=african','grab_addons','african.png','','','')
    extras.addDir('folder','Arabic','&genre=arabic','grab_addons','arabic.png','','','')
    extras.addDir('folder','Asian','&genre=asian','grab_addons','asian.png','','','')
    extras.addDir('folder','Australian','&genre=australian','grab_addons','australian.png','','','')
    extras.addDir('folder','Austrian','&genre=austrian','grab_addons','austrian.png','','','')
    extras.addDir('folder','Belgian','&genre=belgian','grab_addons','belgian.png','','','')
    extras.addDir('folder','Brazilian','&genre=brazilian','grab_addons','brazilian.png','','','')
    extras.addDir('folder','Canadian','&genre=canadian','grab_addons','canadian.png','','','')
    extras.addDir('folder','Columbian','&genre=columbian','grab_addons','columbian.png','','','')
    extras.addDir('folder','Czech','&genre=czech','grab_addons','czech.png','','','')
    extras.addDir('folder','Danish','&genre=danish','grab_addons','danish.png','','','')
    extras.addDir('folder','Dominican','&genre=dominican','grab_addons','dominican.png','','','')
    extras.addDir('folder','Dutch','&genre=dutch','grab_addons','dutch.png','','','')
    extras.addDir('folder','Egyptian','&genre=egyptian','grab_addons','egyptian.png','','','')
    extras.addDir('folder','Filipino','&genre=filipino','grab_addons','filipino.png','','','')
    extras.addDir('folder','Finnish','&genre=finnish','grab_addons','finnish.png','','','')
    extras.addDir('folder','French','&genre=french','grab_addons','french.png','','','')
    extras.addDir('folder','German','&genre=german','grab_addons','german.png','','','')
    extras.addDir('folder','Greek','&genre=greek','grab_addons','greek.png','','','')
    extras.addDir('folder','Hebrew','&genre=hebrew','grab_addons','hebrew.png','','','')
    extras.addDir('folder','Hungarian','&genre=hungarian','grab_addons','hungarian.png','','','')
    extras.addDir('folder','Icelandic','&genre=icelandic','grab_addons','icelandic.png','','','')
    extras.addDir('folder','Indian','&genre=indian','grab_addons','indian.png','','','')
    extras.addDir('folder','Irish','&genre=irish','grab_addons','irish.png','','','')
    extras.addDir('folder','Italian','&genre=italian','grab_addons','italian.png','','','')
    extras.addDir('folder','Japanese','&genre=japanese','grab_addons','japanese.png','','','')
    extras.addDir('folder','Korean','&genre=korean','grab_addons','korean.png','','','')
    extras.addDir('folder','Lebanese','&genre=lebanese','grab_addons','lebanese.png','','','')
    extras.addDir('folder','Mongolian','&genre=mongolian','grab_addons','mongolian.png','','','')
    extras.addDir('folder','Nepali','&genre=nepali','grab_addons','nepali.png','','','')
    extras.addDir('folder','New Zealand','&genre=newzealand','grab_addons','newzealand.png','','','')
    extras.addDir('folder','Norwegian','&genre=norwegian','grab_addons','norwegian.png','','','')
    extras.addDir('folder','Pakistani','&genre=pakistani','grab_addons','pakistani.png','','','')
    extras.addDir('folder','Polish','&genre=polish','grab_addons','polish.png','','','')
    extras.addDir('folder','Portuguese','&genre=portuguese','grab_addons','portuguese.png','','','')
    extras.addDir('folder','Romanian','&genre=romanian','grab_addons','romanian.png','','','')
    extras.addDir('folder','Russian','&genre=russian','grab_addons','russian.png','','','')
    extras.addDir('folder','Singapore','&genre=singapore','grab_addons','singapore.png','','','')
    extras.addDir('folder','Spanish','&genre=spanish','grab_addons','spanish.png','','','')
    extras.addDir('folder','Swedish','&genre=swedish','grab_addons','swedish.png','','','')
    extras.addDir('folder','Swiss','&genre=swiss','grab_addons','swiss.png','','','')
    extras.addDir('folder','Syrian','&genre=syrian','grab_addons','syrian.png','','','')
    extras.addDir('folder','Tamil','&genre=tamil','grab_addons','tamil.png','','','')
    extras.addDir('folder','Thai','&genre=thai','grab_addons','thai.png','','','')
    extras.addDir('folder','Turkish','&genre=turkish','grab_addons','turkish.png','','','')
    extras.addDir('folder','UK','&genre=uk','grab_addons','uk.png','','','')
    extras.addDir('folder','USA','&genre=usa','grab_addons','usa.png','','','')
    extras.addDir('folder','Vietnamese','&genre=vietnamese','grab_addons','vietnamese.png','','','')
Пример #40
0
def Backup_Restore():
    extras.addDir('folder','Backup My Content','none','backup_option','Backup.png','','','')
    extras.addDir('folder','Restore My Content','none','restore_option','Restore.png','','','')
Пример #41
0
def Manual_Search():
    extras.addDir('folder', 'Search By Name', 'name', 'search_builds',
                  'Manual_Search.png', '', '', '')
    extras.addDir('folder', 'Search By Uploader', 'author', 'search_builds',
                  'Search_Genre.png', '', '', '')
    extras.addDir('folder', 'Search By Audio Addons Installed', 'audio',
                  'search_builds', 'Search_Addons.png', '', '', '')
    extras.addDir('folder', 'Search By Picture Addons Installed', 'pics',
                  'search_builds', 'Search_Addons.png', '', '', '')
    extras.addDir('folder', 'Search By Program Addons Installed', 'progs',
                  'search_builds', 'Search_Addons.png', '', '', '')
    extras.addDir('folder', 'Search By Video Addons Installed', 'vids',
                  'search_builds', 'Search_Addons.png', '', '', '')
    extras.addDir('folder', 'Search By Skins Installed', 'skins',
                  'search_builds', 'Search_Addons.png', '', '', '')
Пример #42
0
def Addon_Genres():
    extras.addDir('folder', 'Anime', '&genre=anime', 'grab_addons',
                  'anime.png', '', '', '')
    extras.addDir('folder', 'Audiobooks', '&genre=audiobooks', 'grab_addons',
                  'audiobooks.png', '', '', '')
    extras.addDir('folder', 'Comedy', '&genre=comedy', 'grab_addons',
                  'comedy.png', '', '', '')
    extras.addDir('folder', 'Comics', '&genre=comics', 'grab_addons',
                  'comics.png', '', '', '')
    extras.addDir('folder', 'Documentary', '&genre=documentary', 'grab_addons',
                  'documentary.png', '', '', '')
    extras.addDir('folder', 'Downloads', '&genre=downloads', 'grab_addons',
                  'downloads.png', '', '', '')
    extras.addDir('folder', 'Food', '&genre=food', 'grab_addons', 'food.png',
                  '', '', '')
    extras.addDir('folder', 'Gaming', '&genre=gaming', 'grab_addons',
                  'gaming.png', '', '', '')
    extras.addDir('folder', 'Health', '&genre=health', 'grab_addons',
                  'health.png', '', '', '')
    extras.addDir('folder', 'How To...', '&genre=howto', 'grab_addons',
                  'howto.png', '', '', '')
    extras.addDir('folder', 'Kids', '&genre=kids', 'grab_addons', 'kids.png',
                  '', '', '')
    extras.addDir('folder', 'Live TV', '&genre=livetv', 'grab_addons',
                  'livetv.png', '', '', '')
    extras.addDir('folder', 'Movies', '&genre=movies', 'grab_addons',
                  'movies.png', '', '', '')
    extras.addDir('folder', 'Music', '&genre=music', 'grab_addons',
                  'music.png', '', '', '')
    extras.addDir('folder', 'News', '&genre=news', 'grab_addons', 'news.png',
                  '', '', '')
    extras.addDir('folder', 'Photos', '&genre=photos', 'grab_addons',
                  'photos.png', '', '', '')
    extras.addDir('folder', 'Podcasts', '&genre=podcasts', 'grab_addons',
                  'podcasts.png', '', '', '')
    extras.addDir('folder', 'Radio', '&genre=radio', 'grab_addons',
                  'radio.png', '', '', '')
    extras.addDir('folder', 'Religion', '&genre=religion', 'grab_addons',
                  'religion.png', '', '', '')
    extras.addDir('folder', 'Space', '&genre=space', 'grab_addons',
                  'space.png', '', '', '')
    extras.addDir('folder', 'Sports', '&genre=sports', 'grab_addons',
                  'sports.png', '', '', '')
    extras.addDir('folder', 'Technology', '&genre=tech', 'grab_addons',
                  'tech.png', '', '', '')
    extras.addDir('folder', 'Trailers', '&genre=trailers', 'grab_addons',
                  'trailers.png', '', '', '')
    extras.addDir('folder', 'TV Shows', '&genre=tv', 'grab_addons', 'tv.png',
                  '', '', '')
    extras.addDir('folder', 'Misc.', '&genre=other', 'grab_addons',
                  'other.png', '', '', '')
    if ADDON.getSetting('adult') == 'true':
        extras.addDir('folder', 'XXX', '&genre=adult', 'grab_addons',
                      'adult.png', '', '', '')
Пример #43
0
def Hardware_Menu(url):
    BaseURL='http://totalxbmc.com/totalrevolution/HardwarePortal/hardwaredetails.php?id=%s' % (url)
    link = extras.Open_URL(BaseURL).replace('\n','').replace('\r','')
    namematch = re.compile('name="(.+?)"').findall(link)
    manufacturermatch = re.compile('manufacturer="(.+?)"').findall(link)
    videoguide1match = re.compile('video_guide1="(.+?)"').findall(link)
    videoguide2match = re.compile('video_guide2="(.+?)"').findall(link)
    videoguide3match = re.compile('video_guide3="(.+?)"').findall(link)
    videoguide4match = re.compile('video_guide4="(.+?)"').findall(link)
    videoguide5match = re.compile('video_guide5="(.+?)"').findall(link)
    videolabel1match = re.compile('video_label1="(.+?)"').findall(link)
    videolabel2match = re.compile('video_label2="(.+?)"').findall(link)
    videolabel3match = re.compile('video_label3="(.+?)"').findall(link)
    videolabel4match = re.compile('video_label4="(.+?)"').findall(link)
    videolabel5match = re.compile('video_label5="(.+?)"').findall(link)
    shopmatch = re.compile('shops="(.+?)"').findall(link)
    descmatch = re.compile('description="(.+?)"').findall(link)
    screenshot1match = re.compile('screenshot1="(.+?)"').findall(link)
    screenshot2match = re.compile('screenshot2="(.+?)"').findall(link)
    screenshot3match = re.compile('screenshot3="(.+?)"').findall(link)
    screenshot4match = re.compile('screenshot4="(.+?)"').findall(link)
    screenshot5match = re.compile('screenshot5="(.+?)"').findall(link)
    screenshot6match = re.compile('screenshot6="(.+?)"').findall(link)
    screenshot7match = re.compile('screenshot7="(.+?)"').findall(link)
    screenshot8match = re.compile('screenshot8="(.+?)"').findall(link)
    screenshot9match = re.compile('screenshot9="(.+?)"').findall(link)
    screenshot10match = re.compile('screenshot10="(.+?)"').findall(link)
    screenshot11match = re.compile('screenshot11="(.+?)"').findall(link)
    screenshot12match = re.compile('screenshot12="(.+?)"').findall(link)
    screenshot13match = re.compile('screenshot13="(.+?)"').findall(link)
    screenshot14match = re.compile('screenshot14="(.+?)"').findall(link)
    addedmatch = re.compile('added="(.+?)"').findall(link)
    platformmatch = re.compile('platform="(.+?)"').findall(link)
    chipsetmatch = re.compile('chipset="(.+?)"').findall(link)
    guidematch = re.compile('official_guide="(.+?)"').findall(link)
    previewmatch = re.compile('official_preview="(.+?)"').findall(link)
    thumbmatch = re.compile('thumbnail="(.+?)"').findall(link)
    stockmatch = re.compile('stock_rom="(.+?)"').findall(link)
    cpumatch = re.compile('CPU="(.+?)"').findall(link)
    gpumatch = re.compile('GPU="(.+?)"').findall(link)
    rammatch = re.compile('RAM="(.+?)"').findall(link)
    flashmatch = re.compile('flash="(.+?)"').findall(link)
    wifimatch = re.compile('wifi="(.+?)"').findall(link)
    bluetoothmatch = re.compile('bluetooth="(.+?)"').findall(link)
    lanmatch = re.compile('LAN="(.+?)"').findall(link)
    xbmcmatch = re.compile('xbmc_version="(.+?)"').findall(link)
    prosmatch = re.compile('pros="(.+?)"').findall(link)
    consmatch = re.compile('cons="(.+?)"').findall(link)
    librarymatch = re.compile('library_scan="(.+?)"').findall(link)
    fourkmatch = re.compile('4k="(.+?)"').findall(link)
    teneightymatch = re.compile('1080="(.+?)"').findall(link)
    seventwentymatch = re.compile('720="(.+?)"').findall(link)
    threedmatch = re.compile('3D="(.+?)"').findall(link)
    dtsmatch = re.compile('DTS="(.+?)"').findall(link)
    reviewmatch = re.compile('total_review="(.+?)"').findall(link)
    cbmatch = re.compile('CB_Premium="(.+?)"').findall(link)
   
    name  = namematch[0] if (len(namematch) > 0) else ''
    manufacturer  = manufacturermatch[0] if (len(manufacturermatch) > 0) else ''
    videoguide1  = videoguide1match[0] if (len(videoguide1match) > 0) else 'None'
    videoguide2  = videoguide2match[0] if (len(videoguide2match) > 0) else 'None'
    videoguide3  = videoguide3match[0] if (len(videoguide3match) > 0) else 'None'
    videoguide4  = videoguide4match[0] if (len(videoguide4match) > 0) else 'None'
    videoguide5  = videoguide5match[0] if (len(videoguide5match) > 0) else 'None'
    videolabel1  = videolabel1match[0] if (len(videolabel1match) > 0) else 'None'
    videolabel2  = videolabel2match[0] if (len(videolabel2match) > 0) else 'None'
    videolabel3  = videolabel3match[0] if (len(videolabel3match) > 0) else 'None'
    videolabel4  = videolabel4match[0] if (len(videolabel4match) > 0) else 'None'
    videolabel5  = videolabel5match[0] if (len(videolabel5match) > 0) else 'None'
    shop  = shopmatch[0] if (len(shopmatch) > 0) else ''    
    description = descmatch[0] if (len(descmatch) > 0) else ''
    screenshot1 = screenshot1match[0] if (len(screenshot1match) > 0) else ''
    screenshot2 = screenshot2match[0] if (len(screenshot2match) > 0) else ''
    screenshot3 = screenshot3match[0] if (len(screenshot3match) > 0) else ''
    screenshot4 = screenshot4match[0] if (len(screenshot4match) > 0) else ''
    screenshot5 = screenshot5match[0] if (len(screenshot5match) > 0) else ''
    screenshot6 = screenshot6match[0] if (len(screenshot6match) > 0) else ''
    screenshot7 = screenshot7match[0] if (len(screenshot7match) > 0) else ''
    screenshot8 = screenshot8match[0] if (len(screenshot8match) > 0) else ''
    screenshot9 = screenshot9match[0] if (len(screenshot9match) > 0) else ''
    screenshot10 = screenshot10match[0] if (len(screenshot10match) > 0) else ''
    screenshot11 = screenshot11match[0] if (len(screenshot11match) > 0) else ''
    screenshot12 = screenshot12match[0] if (len(screenshot12match) > 0) else ''
    screenshot13 = screenshot13match[0] if (len(screenshot13match) > 0) else ''
    screenshot14 = screenshot14match[0] if (len(screenshot14match) > 0) else ''
    added = addedmatch[0] if (len(addedmatch) > 0) else ''
    platform = platformmatch[0] if (len(platformmatch) > 0) else ''
    chipset = chipsetmatch[0] if (len(chipsetmatch) > 0) else ''
    guide = guidematch[0] if (len(guidematch) > 0) else ''
    preview = previewmatch[0] if (len(previewmatch) > 0) else ''
    thumb = thumbmatch[0] if (len(thumbmatch) > 0) else ''
    stock = stockmatch[0] if (len(stockmatch) > 0) else ''
    CPU = cpumatch[0] if (len(cpumatch) > 0) else ''
    GPU = gpumatch[0] if (len(gpumatch) > 0) else ''
    RAM = rammatch[0] if (len(rammatch) > 0) else ''
    flash = flashmatch[0] if (len(flashmatch) > 0) else ''
    wifi = wifimatch[0] if (len(wifimatch) > 0) else ''
    bluetooth = bluetoothmatch[0] if (len(bluetoothmatch) > 0) else ''
    LAN = lanmatch[0] if (len(lanmatch) > 0) else ''
    xbmc_version = xbmcmatch[0] if (len(xbmcmatch) > 0) else ''
    pros = prosmatch[0] if (len(prosmatch) > 0) else ''
    cons = consmatch[0] if (len(consmatch) > 0) else ''
    library = librarymatch[0] if (len(librarymatch) > 0) else ''
    fourk = fourkmatch[0] if (len(fourkmatch) > 0) else ''
    teneighty = teneightymatch[0] if (len(teneightymatch) > 0) else ''
    seventwenty = seventwentymatch[0] if (len(seventwentymatch) > 0) else ''
    threed = threedmatch[0] if (len(threedmatch) > 0) else ''
    DTS = dtsmatch[0] if (len(dtsmatch) > 0) else ''
    review = reviewmatch[0] if (len(reviewmatch) > 0) else ''
    cb = cbmatch[0] if (len(cbmatch) > 0) else ''
    official_description = str('[COLOR=gold]Available From: [/COLOR]'+shop+' @ [COLOR=lime]www.totalboxshop.tv[/COLOR][CR][CR][COLOR=dodgerblue]Added: [/COLOR]'+added+'[CR][COLOR=dodgerblue]Manufacturer: [/COLOR]'+manufacturer+'[CR][COLOR=dodgerblue]Supported Roms: [/COLOR]'+platform+'[CR][COLOR=dodgerblue]Chipset: [/COLOR]'+chipset+'[CR][COLOR=dodgerblue]CPU: [/COLOR]'+CPU+'[CR][COLOR=dodgerblue]GPU: [/COLOR]'+GPU+'[CR][COLOR=dodgerblue]RAM: [/COLOR]'+RAM+'[CR][COLOR=dodgerblue]Flash: [/COLOR]'+flash+'[CR][COLOR=dodgerblue]Wi-Fi: [/COLOR]'+wifi+'[CR][COLOR=dodgerblue]Bluetooth: [/COLOR]'+bluetooth+'[CR][COLOR=dodgerblue]LAN: [/COLOR]'+LAN+'[CR][CR][COLOR=yellow]About: [/COLOR]'+description)
    official_description2 = str('[COLOR=gold]Availability: [/COLOR]Sorry this device is currently unavailable at [COLOR=lime]www.totalboxshop.tv[/COLOR][CR][CR][COLOR=dodgerblue]Added: [/COLOR]'+added+'[CR][COLOR=dodgerblue]Manufacturer: [/COLOR]'+manufacturer+'[CR][COLOR=dodgerblue]Supported Roms: [/COLOR]'+platform+'[CR][COLOR=dodgerblue]Chipset: [/COLOR]'+chipset+'[CR][COLOR=dodgerblue]CPU: [/COLOR]'+CPU+'[CR][COLOR=dodgerblue]GPU: [/COLOR]'+GPU+'[CR][COLOR=dodgerblue]RAM: [/COLOR]'+RAM+'[CR][COLOR=dodgerblue]Flash: [/COLOR]'+flash+'[CR][COLOR=dodgerblue]Wi-Fi: [/COLOR]'+wifi+'[CR][COLOR=dodgerblue]Bluetooth: [/COLOR]'+bluetooth+'[CR][COLOR=dodgerblue]LAN: [/COLOR]'+LAN+'[CR][CR][COLOR=yellow]About: [/COLOR]'+description)
    total_review = str('[COLOR=gold]Available From: [/COLOR]'+shop+' @ [COLOR=lime]www.totalboxshop.tv[/COLOR][CR][CR][COLOR=dodgerblue]Added: [/COLOR]'+added+'[CR][COLOR=dodgerblue]Manufacturer: [/COLOR]'+manufacturer+'[CR][COLOR=dodgerblue]Supported Roms: [/COLOR]'+platform+'[CR][COLOR=dodgerblue]Chipset: [/COLOR]'+chipset+'[CR][COLOR=dodgerblue]CPU: [/COLOR]'+CPU+'[CR][COLOR=dodgerblue]GPU: [/COLOR]'+GPU+'[CR][COLOR=dodgerblue]RAM: [/COLOR]'+RAM+'[CR][COLOR=dodgerblue]Flash: [/COLOR]'+flash+'[CR][COLOR=dodgerblue]Wi-Fi: [/COLOR]'+wifi+'[CR][COLOR=dodgerblue]Bluetooth: [/COLOR]'+bluetooth+'[CR][COLOR=dodgerblue]LAN: [/COLOR]'+LAN+'[CR][CR][COLOR=yellow]About: [/COLOR]'+review+'[CR][CR][COLOR=yellow]Summary:[/COLOR][CR][CR][COLOR=dodgerblue]Pros:[/COLOR]    '+pros+'[CR][CR][COLOR=dodgerblue]Cons:[/COLOR]  '+cons+'[CR][CR][COLOR=gold]4k Playback:[/COLOR]  '+fourk+'[CR][CR][COLOR=gold]1080p Playback:[/COLOR]  '+teneighty+'[CR][CR][COLOR=gold]720p Playback:[/COLOR]  '+seventwenty+'[CR][CR][COLOR=gold]DTS Compatibility:[/COLOR]  '+DTS+'[CR][CR][COLOR=gold]Time taken to scan 100 movies:[/COLOR]  '+library)
    total_review2 = str('[COLOR=gold]Availability: [/COLOR]Sorry this device is currently unavailable at [COLOR=lime]www.totalboxshop.tv[/COLOR][CR][CR][COLOR=dodgerblue]Added: [/COLOR]'+added+'[CR][COLOR=dodgerblue]Manufacturer: [/COLOR]'+manufacturer+'[CR][COLOR=dodgerblue]Supported Roms: [/COLOR]'+platform+'[CR][COLOR=dodgerblue]Chipset: [/COLOR]'+chipset+'[CR][COLOR=dodgerblue]CPU: [/COLOR]'+CPU+'[CR][COLOR=dodgerblue]GPU: [/COLOR]'+GPU+'[CR][COLOR=dodgerblue]RAM: [/COLOR]'+RAM+'[CR][COLOR=dodgerblue]Flash: [/COLOR]'+flash+'[CR][COLOR=dodgerblue]Wi-Fi: [/COLOR]'+wifi+'[CR][COLOR=dodgerblue]Bluetooth: [/COLOR]'+bluetooth+'[CR][COLOR=dodgerblue]LAN: [/COLOR]'+LAN+'[CR][CR][COLOR=yellow]About: [/COLOR]'+review+'[CR][CR][COLOR=yellow]Summary:[/COLOR][CR][CR][COLOR=dodgerblue]Pros:[/COLOR]    '+pros+'[CR][CR][COLOR=dodgerblue]Cons:[/COLOR]  '+cons+'[CR][CR][COLOR=gold]4k Playback:[/COLOR]  '+fourk+'[CR][CR][COLOR=gold]1080p Playback:[/COLOR]  '+teneighty+'[CR][CR][COLOR=gold]720p Playback:[/COLOR]  '+seventwenty+'[CR][CR][COLOR=gold]DTS Compatibility:[/COLOR]  '+DTS+'[CR][CR][COLOR=gold]Time taken to scan 100 movies:[/COLOR]  '+library)
    if description != '' and shop !='':
        extras.addDir('','[COLOR=yellow][Text Guide][/COLOR]  Official Description',official_description,'text_guide','TotalXBMC_Guides.png',FANART,'','')    
    if description != '' and shop =='':
        extras.addDir('','[COLOR=yellow][Text Guide][/COLOR]  Official Description',official_description2,'text_guide','TotalXBMC_Guides.png',FANART,'','')    
    if review != '' and shop !='':
        extras.addDir('','[COLOR=yellow][Text Guide][/COLOR]  TotalXBMC Review',total_review,'text_guide','TotalXBMC_Guides.png',FANART,'','')    
    if review != '' and shop =='':
        extras.addDir('','[COLOR=yellow][Text Guide][/COLOR]  TotalXBMC Review',total_review2,'text_guide','TotalXBMC_Guides.png',FANART,'','')    
    if preview != 'None':
        extras.addDir('','[COLOR=lime][VIDEO][/COLOR]   Official Video Preview',preview,'play_video','Video_Guide.png',FANART,'','')    
    if guide != 'None':
        extras.addDir('','[COLOR=lime][VIDEO][/COLOR]   Official Video Guide',guide,'play_video','Video_Guide.png',FANART,'','')    
    if videoguide1 != 'None':
        extras.addDir('','[COLOR=lime][VIDEO][/COLOR]  '+videolabel1,videoguide1,'play_video','Video_Guide.png',FANART,'','')    
    if videoguide2 != 'None':
        extras.addDir('','[COLOR=lime][VIDEO][/COLOR]  '+videolabel2,videoguide2,'play_video','Video_Guide.png',FANART,'','')    
    if videoguide3 != 'None':
        extras.addDir('','[COLOR=lime][VIDEO][/COLOR]  '+videolabel3,videoguide3,'play_video','Video_Guide.png',FANART,'','')    
    if videoguide4 != 'None':
        extras.addDir('','[COLOR=lime][VIDEO][/COLOR]  '+videolabel4,videoguide4,'play_video','Video_Guide.png',FANART,'','')    
    if videoguide5 != 'None':
        extras.addDir('','[COLOR=lime][VIDEO][/COLOR]  '+videolabel5,videoguide5,'play_video','Video_Guide.png',FANART,'','')    
Пример #44
0
def Restore_Option():
    if trcheck == 'true':
        Check_Local_Install()
    extras.addDir('','[COLOR=lime]RESTORE LOCAL BUILD[/COLOR]','url','restore_local_CB','Restore.png','','','Back Up Your Full System')
    extras.addDir('','[COLOR=dodgerblue]Restore Local guisettings file[/COLOR]','url','LocalGUIDialog','Restore.png','','','Back Up Your Full System')
    
    if os.path.exists(os.path.join(USB,'addons.zip')):   
        extras.addDir('','Restore Your Addons','addons','restore_zip','Restore.png','','','Restore Your Addons')

    if os.path.exists(os.path.join(USB,'addon_data.zip')):   
        extras.addDir('','Restore Your Addon UserData','addon_data','restore_zip','Restore.png','','','Restore Your Addon UserData')           

    if os.path.exists(os.path.join(USB,'guisettings.xml')):
        extras.addDir('','Restore Guisettings.xml',GUI,'resore_backup','Restore.png','','','Restore Your guisettings.xml')
    
    if os.path.exists(os.path.join(USB,'favourites.xml')):
        extras.addDir('','Restore Favourites.xml',FAVS,'resore_backup','Restore.png','','','Restore Your favourites.xml')
        
    if os.path.exists(os.path.join(USB,'sources.xml')):
        extras.addDir('','Restore Source.xml',SOURCE,'resore_backup','Restore.png','','','Restore Your sources.xml')
        
    if os.path.exists(os.path.join(USB,'advancedsettings.xml')):
        extras.addDir('','Restore Advancedsettings.xml',ADVANCED,'resore_backup','Restore.png','','','Restore Your advancedsettings.xml')        

    if os.path.exists(os.path.join(USB,'keyboard.xml')):
        extras.addDir('','Restore Advancedsettings.xml',KEYMAPS,'resore_backup','Restore.png','','','Restore Your keyboard.xml')
        
    if os.path.exists(os.path.join(USB,'RssFeeds.xml')):
        extras.addDir('','Restore RssFeeds.xml',RSS,'resore_backup','Restore.png','','','Restore Your RssFeeds.xml')    
Пример #45
0
def Tutorial_Menu(url):
    incremental = 'http://totalxbmc.com/totalrevolution/TutorialPortal/downloadcount.php?id=%s' % (url)
    extras.Open_URL(incremental)
    BaseURL='http://totalxbmc.com/totalrevolution/TutorialPortal/tutorialdetails.php?id=%s' % (url)
    link = extras.Open_URL(BaseURL).replace('\n','').replace('\r','')
    namematch = re.compile('name="(.+?)"').findall(link)
    authormatch = re.compile('author="(.+?)"').findall(link)
    videoguide1match = re.compile('video_guide1="(.+?)"').findall(link)
    videoguide2match = re.compile('video_guide2="(.+?)"').findall(link)
    videoguide3match = re.compile('video_guide3="(.+?)"').findall(link)
    videoguide4match = re.compile('video_guide4="(.+?)"').findall(link)
    videoguide5match = re.compile('video_guide5="(.+?)"').findall(link)
    videolabel1match = re.compile('video_label1="(.+?)"').findall(link)
    videolabel2match = re.compile('video_label2="(.+?)"').findall(link)
    videolabel3match = re.compile('video_label3="(.+?)"').findall(link)
    videolabel4match = re.compile('video_label4="(.+?)"').findall(link)
    videolabel5match = re.compile('video_label5="(.+?)"').findall(link)
    aboutmatch = re.compile('about="(.+?)"').findall(link)
    step1match = re.compile('step1="(.+?)"').findall(link)
    step2match = re.compile('step2="(.+?)"').findall(link)
    step3match = re.compile('step3="(.+?)"').findall(link)
    step4match = re.compile('step4="(.+?)"').findall(link)
    step5match = re.compile('step5="(.+?)"').findall(link)
    step6match = re.compile('step6="(.+?)"').findall(link)
    step7match = re.compile('step7="(.+?)"').findall(link)
    step8match = re.compile('step8="(.+?)"').findall(link)
    step9match = re.compile('step9="(.+?)"').findall(link)
    step10match = re.compile('step10="(.+?)"').findall(link)
    step11match = re.compile('step11="(.+?)"').findall(link)
    step12match = re.compile('step12="(.+?)"').findall(link)
    step13match = re.compile('step13="(.+?)"').findall(link)
    step14match = re.compile('step14="(.+?)"').findall(link)
    step15match = re.compile('step15="(.+?)"').findall(link)
    screenshot1match = re.compile('screenshot1="(.+?)"').findall(link)
    screenshot2match = re.compile('screenshot2="(.+?)"').findall(link)
    screenshot3match = re.compile('screenshot3="(.+?)"').findall(link)
    screenshot4match = re.compile('screenshot4="(.+?)"').findall(link)
    screenshot5match = re.compile('screenshot5="(.+?)"').findall(link)
    screenshot6match = re.compile('screenshot6="(.+?)"').findall(link)
    screenshot7match = re.compile('screenshot7="(.+?)"').findall(link)
    screenshot8match = re.compile('screenshot8="(.+?)"').findall(link)
    screenshot9match = re.compile('screenshot9="(.+?)"').findall(link)
    screenshot10match = re.compile('screenshot10="(.+?)"').findall(link)
    screenshot11match = re.compile('screenshot11="(.+?)"').findall(link)
    screenshot12match = re.compile('screenshot12="(.+?)"').findall(link)
    screenshot13match = re.compile('screenshot13="(.+?)"').findall(link)
    screenshot14match = re.compile('screenshot14="(.+?)"').findall(link)
    screenshot15match = re.compile('screenshot15="(.+?)"').findall(link)
   
    name  = namematch[0] if (len(namematch) > 0) else ''
    author  = authormatch[0] if (len(authormatch) > 0) else ''
    videoguide1  = videoguide1match[0] if (len(videoguide1match) > 0) else 'None'
    videoguide2  = videoguide2match[0] if (len(videoguide2match) > 0) else 'None'
    videoguide3  = videoguide3match[0] if (len(videoguide3match) > 0) else 'None'
    videoguide4  = videoguide4match[0] if (len(videoguide4match) > 0) else 'None'
    videoguide5  = videoguide5match[0] if (len(videoguide5match) > 0) else 'None'
    videolabel1  = videolabel1match[0] if (len(videolabel1match) > 0) else 'None'
    videolabel2  = videolabel2match[0] if (len(videolabel2match) > 0) else 'None'
    videolabel3  = videolabel3match[0] if (len(videolabel3match) > 0) else 'None'
    videolabel4  = videolabel4match[0] if (len(videolabel4match) > 0) else 'None'
    videolabel5  = videolabel5match[0] if (len(videolabel5match) > 0) else 'None'
    about  = aboutmatch[0] if (len(aboutmatch) > 0) else ''
    step1 = '[CR][CR][COLOR=dodgerblue]Step 1:[/COLOR][CR]'+step1match[0] if (len(step1match) > 0) else ''
    step2 = '[CR][CR][COLOR=dodgerblue]Step 2:[/COLOR][CR]'+step2match[0] if (len(step2match) > 0) else ''
    step3 = '[CR][CR][COLOR=dodgerblue]Step 3:[/COLOR][CR]'+step3match[0] if (len(step3match) > 0) else ''
    step4 = '[CR][CR][COLOR=dodgerblue]Step 4:[/COLOR][CR]'+step4match[0] if (len(step4match) > 0) else ''
    step5 = '[CR][CR][COLOR=dodgerblue]Step 5:[/COLOR][CR]'+step5match[0] if (len(step5match) > 0) else ''
    step6 = '[CR][CR][COLOR=dodgerblue]Step 6:[/COLOR][CR]'+step6match[0] if (len(step6match) > 0) else ''
    step7 = '[CR][CR][COLOR=dodgerblue]Step 7:[/COLOR][CR]'+step7match[0] if (len(step7match) > 0) else ''
    step8 = '[CR][CR][COLOR=dodgerblue]Step 8:[/COLOR][CR]'+step8match[0] if (len(step8match) > 0) else ''
    step9 = '[CR][CR][COLOR=dodgerblue]Step 9:[/COLOR][CR]'+step9match[0] if (len(step9match) > 0) else ''
    step10 = '[CR][CR][COLOR=dodgerblue]Step 10:[/COLOR][CR]'+step10match[0] if (len(step10match) > 0) else ''
    step11 = '[CR][CR][COLOR=dodgerblue]Step 11:[/COLOR][CR]'+step11match[0] if (len(step11match) > 0) else ''
    step12 = '[CR][CR][COLOR=dodgerblue]Step 12:[/COLOR][CR]'+step12match[0] if (len(step12match) > 0) else ''
    step13 = '[CR][CR][COLOR=dodgerblue]Step 13:[/COLOR][CR]'+step13match[0] if (len(step13match) > 0) else ''
    step14 = '[CR][CR][COLOR=dodgerblue]Step 14:[/COLOR][CR]'+step14match[0] if (len(step14match) > 0) else ''
    step15 = '[CR][CR][COLOR=dodgerblue]Step 15:[/COLOR][CR]'+step15match[0] if (len(step15match) > 0) else ''
    screenshot1 = screenshot1match[0] if (len(screenshot1match) > 0) else ''
    screenshot2 = screenshot2match[0] if (len(screenshot2match) > 0) else ''
    screenshot3 = screenshot3match[0] if (len(screenshot3match) > 0) else ''
    screenshot4 = screenshot4match[0] if (len(screenshot4match) > 0) else ''
    screenshot5 = screenshot5match[0] if (len(screenshot5match) > 0) else ''
    screenshot6 = screenshot6match[0] if (len(screenshot6match) > 0) else ''
    screenshot7 = screenshot7match[0] if (len(screenshot7match) > 0) else ''
    screenshot8 = screenshot8match[0] if (len(screenshot8match) > 0) else ''
    screenshot9 = screenshot9match[0] if (len(screenshot9match) > 0) else ''
    screenshot10 = screenshot10match[0] if (len(screenshot10match) > 0) else ''
    screenshot11 = screenshot11match[0] if (len(screenshot11match) > 0) else ''
    screenshot12 = screenshot12match[0] if (len(screenshot12match) > 0) else ''
    screenshot13 = screenshot13match[0] if (len(screenshot13match) > 0) else ''
    screenshot14 = screenshot14match[0] if (len(screenshot14match) > 0) else ''
    screenshot15 = screenshot15match[0] if (len(screenshot15match) > 0) else ''
    description = str('[COLOR=gold]Author: [/COLOR]'+author+'[CR][CR][COLOR=lime]About: [/COLOR]'+about+step1+step2+step3+step4+step5+step6+step7+step8+step9+step10+step11+step12+step13+step14+step15)
    if step1 != '':
        extras.addDir('','[COLOR=yellow][Text Guide][/COLOR]  '+name,description,'text_guide','How_To.png',FANART,about,'')    
    if videoguide1 != 'None':
        extras.addDir('','[COLOR=lime][VIDEO][/COLOR]  '+videolabel1,videoguide1,'play_video','Video_Guide.png',FANART,'','')    
    if videoguide2 != 'None':
        extras.addDir('','[COLOR=lime][VIDEO][/COLOR]  '+videolabel2,videoguide2,'play_video','Video_Guide.png',FANART,'','')    
    if videoguide3 != 'None':
        extras.addDir('','[COLOR=lime][VIDEO][/COLOR]  '+videolabel3,videoguide3,'play_video','Video_Guide.png',FANART,'','')    
    if videoguide4 != 'None':
        extras.addDir('','[COLOR=lime][VIDEO][/COLOR]  '+videolabel4,videoguide4,'play_video','Video_Guide.png',FANART,'','')    
    if videoguide5 != 'None':
        extras.addDir('','[COLOR=lime][VIDEO][/COLOR]  '+videolabel5,videoguide5,'play_video','Video_Guide.png',FANART,'','')    
Пример #46
0
def Tools():
    extras.addDir('folder','Add-on Maintenance/Fixes', 'none', 'addonfixes', 'Addon_fixes.png','','','')
    extras.addDir('folder','Clean/Wipe Options', 'none', 'wipetools', 'Clean.png','','','')
    extras.addDir('folder','Backup/Restore My Content','none','backup_restore','Backup.png','','','')
    extras.addDir('','Force Close Kodi','url','kill_xbmc','Kill_XBMC.png','','','')