def build_info(self, name): from resources.libs import check from resources.libs.common import logging from resources.libs.common import tools from resources.libs.gui import window response = tools.open_url(CONFIG.BUILDFILE, check=True) if response: if check.check_build(name, 'url'): name, version, url, minor, gui_ignore, kodi, theme, icon, fanart, preview, adult, info, description = check.check_build( name, 'all') adult = 'Yes' if adult.lower() == 'yes' else 'No' info_response = tools.open_url(info) if info_response: try: tname, extracted, zipsize, skin, created, programs, video, music, picture, repos, scripts, binaries = check.check_info( info_response.text) extend = True except: extend = False else: extend = False themes = self.theme_count(name, count=False) msg = "[COLOR {0}]Nombre Build:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, name) msg += "[COLOR {0}]Version Build:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, version) if themes: msg += "[COLOR {0}]Build Parche(s):[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, ', '.join(themes)) msg += "[COLOR {0}]Version Kodi:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, kodi) msg += "[COLOR {0}]Contenido Adulto:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, adult) msg += "[COLOR {0}]Descripción:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, description) if extend: msg += "[COLOR {0}]Ultima Actualización:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, created) msg += "[COLOR {0}]Tamaño Extraido:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, tools.convert_size(int(float(extracted)))) msg += "[COLOR {0}]Tamaño Zip:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, tools.convert_size(int(float(zipsize)))) msg += "[COLOR {0}]Nombre Skin:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, skin) msg += "[COLOR {0}]Programas:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, programs) msg += "[COLOR {0}]Video:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, video) msg += "[COLOR {0}]Música:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, music) msg += "[COLOR {0}]Imágenes:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, picture) msg += "[COLOR {0}]Repositorios:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, repos) msg += "[COLOR {0}]Scripts:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, scripts) msg += "[COLOR {0}]Binarios:[/COLOR] [COLOR {1}]{2}[/COLOR]".format( CONFIG.COLOR2, CONFIG.COLOR1, binaries) window.show_text_box( "[B][COLOR azure]Visualización de Información de la Build:[/COLOR][/B] [COLOR blue]{0}[/COLOR]" .format(name), msg) else: logging.log("Nombre Inválido de la Build!") else: logging.log( "[B][COLOR azure]La Build del archivo de texto no funciona:[/COLOR][/B] [COLOR blue]{0}[/COLOR]" .format(CONFIG.BUILDFILE))
def build_info(self, name): from resources.libs import check from resources.libs.common import logging from resources.libs.common import tools from resources.libs.gui import window response = tools.open_url(CONFIG.BUILDFILE, check=True) if response: if check.check_build(name, 'url'): name, version, url, minor, gui_ignore, kodi, theme, icon, fanart, preview, adult, info, description = check.check_build( name, 'all') adult = 'Yes' if adult.lower() == 'yes' else 'No' info_response = tools.open_url(info) if info_response: try: tname, extracted, zipsize, skin, created, programs, video, music, picture, repos, scripts, binaries = check.check_info( info_response.text) extend = True except: extend = False else: extend = False themes = self.theme_count(name, count=False) msg = "[COLOR {0}]Build Name:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, name) msg += "[COLOR {0}]Build Version:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, version) if themes: msg += "[COLOR {0}]Build Theme(s):[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, ', '.join(themes)) msg += "[COLOR {0}]Kodi Version:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, kodi) msg += "[COLOR {0}]Adult Content:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, adult) msg += "[COLOR {0}]Description:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, description) if extend: msg += "[COLOR {0}]Latest Update:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, created) msg += "[COLOR {0}]Extracted Size:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, tools.convert_size(int(float(extracted)))) msg += "[COLOR {0}]Zip Size:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, tools.convert_size(int(float(zipsize)))) msg += "[COLOR {0}]Skin Name:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, skin) msg += "[COLOR {0}]Programs:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, programs) msg += "[COLOR {0}]Video:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, video) msg += "[COLOR {0}]Music:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, music) msg += "[COLOR {0}]Pictures:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, picture) msg += "[COLOR {0}]Repositories:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, repos) msg += "[COLOR {0}]Scripts:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, scripts) msg += "[COLOR {0}]Binaries:[/COLOR] [COLOR {1}]{2}[/COLOR]".format( CONFIG.COLOR2, CONFIG.COLOR1, binaries) window.show_text_box("Viewing Build Info: {0}".format(name), msg) else: logging.log("Invalid Build Name!") else: logging.log("Build text file not working: {0}".format( CONFIG.BUILDFILE))
def build_info(self, name): from resources.libs import check from resources.libs.common import logging from resources.libs.common import tools from resources.libs.gui import window if 75 - 75: o0oOOo0O0Ooo.Oo0ooO0oo0oO iiiI11 = tools.open_url(CONFIG.BUILDFILE, check=True) if 54 - 54: II111iiii % OoOoOO00 % I11i % iIii1I11I1II1 + iIii1I11I1II1 * Oo0ooO0oo0oO if iiiI11: if check.check_build(name, 'url'): name, o00, Oo0oO0ooo, O00O0oOO00O00, i1Oo00, i1, oOOoo00O0O, i1111, i11, I1i1I, I11, oOO00oOO, Oo0o0000o0o0 = check.check_build( name, 'all') I11 = 'Yes' if I11.lower() == 'yes' else 'No' if 31 - 31: O0oo0OO0.OoOoOO00 / O0 o000O0o = tools.open_url(oOO00oOO) if 42 - 42: OoOoOO00 if o000O0o: try: II, Ii1I1IIii1II, O0ii1ii1ii, oooooOoo0ooo, I1I1IiI1, III1iII1I1ii, oOOo0, oo00O00oO, iIiIIIi, ooo00OOOooO, O00OOOoOoo0O, O000OOo00oo = check.check_info( o000O0o.text) oo0OOo = True except: oo0OOo = False else: oo0OOo = False if 64 - 64: I11i i1IIiiiii = self.theme_count(name, count=False) if 22 - 22: Oo0Ooo + Ii1I % I1ii11iIi11i iI1 = "[COLOR {0}]Nome da construção:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, name) iI1 += "[COLOR {0}]Build Version:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, o00) if i1IIiiiii: iI1 += "[COLOR {0}]Build Tema(s):[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, ', '.join(i1IIiiiii)) iI1 += "[COLOR {0}]Versão Kodi:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, i1) iI1 += "[COLOR {0}]Conteúdo adulto:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, I11) iI1 += "[COLOR {0}]Descrição:[/COLOR] [COLOR {1}]{2}[/COLOR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, Oo0o0000o0o0) if 28 - 28: OoO0O00 + Ii1I / OoO0O00.II111iiii if oo0OOo: iI1 += "[COLOR {0}]Última atualização:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, I1I1IiI1) iI1 += "[COLOR {0}]Tamanho Extraído:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, tools.convert_size(int(float(Ii1I1IIii1II)))) iI1 += "[COLOR {0}]Tamanho Zip:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, tools.convert_size(int(float(O0ii1ii1ii)))) iI1 += "[COLOR {0}]Nome da Skin:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, oooooOoo0ooo) iI1 += "[COLOR {0}]Programa:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, III1iII1I1ii) iI1 += "[COLOR {0}]Video:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, oOOo0) iI1 += "[COLOR {0}]Música:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, oo00O00oO) iI1 += "[COLOR {0}]Fotos:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, iIiIIIi) iI1 += "[COLOR {0}]Repositórios:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, ooo00OOOooO) iI1 += "[COLOR {0}]Scripts:[/COLOR] [COLOR {1}]{2}[/COLOR][CR][CR]".format( CONFIG.COLOR2, CONFIG.COLOR1, O00OOOoOoo0O) iI1 += "[COLOR {0}]Binários:[/COLOR] [COLOR {1}]{2}[/COLOR]".format( CONFIG.COLOR2, CONFIG.COLOR1, O000OOo00oo) if 68 - 68: i11iIiiIii % I1ii11iIi11i + i11iIiiIii window.show_text_box( "Visualizando informações de compilação: {0}".format(name), iI1) else: logging.log("Nome de compilação inválido!") else: logging.log( "O arquivo de texto de compilação não está funcionando: {0}". format(CONFIG.BUILDFILE)) if 31 - 31: II111iiii.I1IiiI