def VPOP(image,sound): sound = sound print 'MUSIC IS '+sound path = xbmc.translatePath(os.path.join('special://home/addons/plugin.video.phstreams/resources/skins/DefaultSkin','media')) popimage=os.path.join(path, 'tempimage.jpg') main.downloadFile(image,popimage) musicsound=os.path.join(path, 'tempsound.mp3') main.downloadFile(sound,musicsound) if xbmc.getCondVisibility('system.platform.ios'): if not xbmc.getCondVisibility('system.platform.atv'): popup = HUBx('pop1.xml',selfAddon.getAddonInfo('path'),'DefaultSkin',close_time=20,logo_path='%s/resources/skins/DefaultSkin/media/Logo/'%selfAddon.getAddonInfo('path'),) if xbmc.getCondVisibility('system.platform.android'): popup = HUBx('pop1.xml',selfAddon.getAddonInfo('path'),'DefaultSkin',close_time=20,logo_path='%s/resources/skins/DefaultSkin/media/Logo/'%selfAddon.getAddonInfo('path')) else: popup = HUBx('pop.xml',selfAddon.getAddonInfo('path'),'DefaultSkin',close_time=20,logo_path='%s/resources/skins/DefaultSkin/media/Logo/'%selfAddon.getAddonInfo('path')) popup.doModal() del popup
def VPOP(image, sound): sound = sound print 'MUSIC IS ' + sound path = xbmc.translatePath( os.path.join( 'special://home/addons/plugin.video.phstreams/resources/skins/DefaultSkin', 'media')) popimage = os.path.join(path, 'tempimage.jpg') main.downloadFile(image, popimage) musicsound = os.path.join(path, 'tempsound.mp3') main.downloadFile(sound, musicsound) if xbmc.getCondVisibility('system.platform.ios'): if not xbmc.getCondVisibility('system.platform.atv'): popup = HUBx( 'pop1.xml', selfAddon.getAddonInfo('path'), 'DefaultSkin', close_time=20, logo_path='%s/resources/skins/DefaultSkin/media/Logo/' % selfAddon.getAddonInfo('path'), ) if xbmc.getCondVisibility('system.platform.android'): popup = HUBx('pop1.xml', selfAddon.getAddonInfo('path'), 'DefaultSkin', close_time=20, logo_path='%s/resources/skins/DefaultSkin/media/Logo/' % selfAddon.getAddonInfo('path')) else: popup = HUBx('pop.xml', selfAddon.getAddonInfo('path'), 'DefaultSkin', close_time=20, logo_path='%s/resources/skins/DefaultSkin/media/Logo/' % selfAddon.getAddonInfo('path')) popup.doModal() del popup
elif mode=='searchanime': print ""+url chia.SEARCHANIME(url) elif mode=='chiasearch': print ""+url chia.CHIASEARCH(url) elif mode=='searchtv': print ""+url tvshow.SEARCHTV(url) elif mode=='downloadFile': print ""+url main.downloadFile(url) elif mode=='helpcatagories': print ""+url HELPCATEGORIES(url) elif mode=='helpstat': HELPSTAT(name,url,description) elif mode=='searcht': print ""+url SEARCHT(url)
elif mode=='searchm': print ""+url SEARCHM(url) elif mode=='searchtv': print ""+url tvshow.SEARCHTV(url) elif mode=='downloadFile': print ""+url main.downloadFile(url) elif mode=='helpcatagories': print ""+url HELPCATEGORIES(url) elif mode=='helpstat': HELPSTAT(name,url,description) elif mode=='searcht': print ""+url SEARCHT(url)