def root(self): from resources.lib.api import premiumize validAccount = premiumize.validAccount() if not validAccount: authDialog = deviceAuthDialog.DeviceAuthDialog( 'script-DeviceAuthDialog.xml', __addon__.getAddonInfo('path'), code='', url='http://premiumize.me') authDialog.doModal() del authDialog sys.exit() #self.addDirectoryItem('TEST', 'testItem', 'movies.png', 'DefaultMovies.png') self.addDirectoryItem(50001, 'premiumizeNavigator', 'cloud.png', 'DefaultTVShows.png') self.addDirectoryItem('Lists', 'browse_nav', 'cloud.png', 'DefaultTVShows.png') downloads = True if control.setting('downloads') == 'true' else False if downloads == True: self.addDirectoryItem('Download Manager', 'download_manager', 'cloud.png', 'DefaultTVShows.png') self.addDirectoryItem(32008, 'toolNavigator', 'settings.png', 'DefaultAddonProgram.png') self.endDirectory()
def premiumizeNav(self): from resources.lib.api import premiumize try: accountStatus = premiumize.info() self.addDirectoryItem(accountStatus, '0', 'search.png', 'DefaultMovies.png') except: pass from resources.lib.api import premiumize validAccount = premiumize.validAccount() if not validAccount: authDialog = deviceAuthDialog.DeviceAuthDialog( 'script-DeviceAuthDialog.xml', __addon__.getAddonInfo('path'), code='', url='http://premiumize.me') authDialog.doModal() del authDialog sys.exit() else: self.addDirectoryItem(50002, 'premiumizerootFolder', 'cloud.png', 'DefaultMovies.png') self.addDirectoryItem(50003, 'premiumizeTransfers', 'cloud.png', 'DefaultMovies.png') self.addDirectoryItem(50004, 'premiumizeAdd', 'cloud.png', 'DefaultMovies.png') self.addDirectoryItem('Library', 'libraryNavigator', 'cloud.png', 'DefaultMovies.png', isFolder=True) self.endDirectory()
def root(self): if control.setting('premiumize.customer_id') == '' or control.setting( 'premiumize.customer_id') == None: authDialog = deviceAuthDialog.DeviceAuthDialog( 'script-DeviceAuthDialog.xml', __addon__.getAddonInfo('path'), code='', url='http://premiumize.me') authDialog.doModal() del authDialog sys.exit() # self.addDirectoryItem('TEST', 'testItem', 'movies.png', 'DefaultMovies.png') from resources.lib.api import premiumize try: accountStatus = premiumize.info() self.addDirectoryItem(accountStatus, '0', 'search.png', 'DefaultMovies.png') except: pass if control.setting('premiumize.customer_id') == '' or control.setting( 'premiumize.customer_id') == None: authDialog = deviceAuthDialog.DeviceAuthDialog( 'script-DeviceAuthDialog.xml', __addon__.getAddonInfo('path'), code='test code', url='http://premiumize.me') authDialog.doModal() del authDialog control.openSettings('0.0') else: self.addDirectoryItem(50002, 'premiumizerootFolder', 'cloud.png', 'DefaultMovies.png') self.addDirectoryItem(50003, 'premiumizeTransfers', 'cloud.png', 'DefaultMovies.png') self.addDirectoryItem(50004, 'premiumizeAdd', 'cloud.png', 'DefaultMovies.png') self.endDirectory()
def rdNav(self): status = debrid.realdebrid().accountInfo() if status != True: authDialog = deviceAuthDialog.DeviceAuthDialog('script-DeviceAuthDialog.xml', __addon__.getAddonInfo('path'), code='', url='http://real-debrid.com/?id=915002') authDialog.doModal() del authDialog sys.exit() else: self.addDirectoryItem(50002, 'rdTorrentList&page=1', 'cloud.png', 'DefaultMovies.png') self.addDirectoryItem(50003, 'rdTransfers&page=1', 'cloud.png', 'DefaultMovies.png') self.endDirectory()
def root(self): if control.setting('premiumize.customer_id') == '' or control.setting('premiumize.customer_id') == None: authDialog = deviceAuthDialog.DeviceAuthDialog('script-DeviceAuthDialog.xml', __addon__.getAddonInfo('path'), code='', url='http://premiumize.me') authDialog.doModal() del authDialog sys.exit() # self.addDirectoryItem('TEST', 'testItem', 'movies.png', 'DefaultMovies.png') self.addDirectoryItem(50001, 'premiumizeNavigator', 'cloud.png', 'DefaultTVShows.png') self.addDirectoryItem(32001, 'movieNavigator', 'movies.png', 'DefaultMovies.png') self.addDirectoryItem(32002, 'tvNavigator', 'tv.png', 'DefaultTVShows.png') self.addDirectoryItem(32008, 'toolNavigator', 'settings.png', 'DefaultAddonProgram.png') self.addDirectoryItem('Help', 'helpNavigator', 'help.png', 'DefaultAddonProgram.png') self.addDirectoryItem('Changelog', 'changelogNavigator', 'help.png', 'DefaultAddonProgram.png') self.endDirectory()
def root(self): status = debrid.realdebrid().accountInfo() if status != True: authDialog = deviceAuthDialog.DeviceAuthDialog('script-DeviceAuthDialog.xml', __addon__.getAddonInfo('path'), code='', url='http://real-debrid.com/?id=915002') authDialog.doModal() del authDialog sys.exit() self.addDirectoryItem('Meta Cloud', 'meta_cloud', 'cloud.png', 'DefaultAddonProgram.png') #self.addDirectoryItem('TEST', 'testItem', 'movies.png', 'DefaultMovies.png') self.addDirectoryItem(50001, 'rdNavigator', 'cloud.png', 'DefaultAddonProgram.png') self.addDirectoryItem('Lists', 'browse_nav', 'cloud.png', 'DefaultAddonProgram.png') self.addDirectoryItem('Download Manager', 'download_manager', 'cloud.png', 'DefaultAddonProgram.png') self.addDirectoryItem('RSS Manager', 'rss_manager_nav', 'cloud.png', 'DefaultAddonProgram.png') self.addDirectoryItem(32008, 'toolNavigator', 'settings.png', 'DefaultAddonProgram.png') self.addDirectoryItem('[I]Support and Donations[/I]', 'donations', 'support.png', 'DefaultAddonProgram.png', isFolder=False) self.endDirectory()