def StopDownloadList(self): #oInputParameterHandler = cInputParameterHandler() #path = oInputParameterHandler.getValue('sPath') #status = oInputParameterHandler.getValue('sStatus') #WINDOW_PROGRESS = xbmcgui.Window(10101) #WINDOW_PROGRESS.close() #xbmcgui.Window(10101).setProperty('arret', '1') #xbmc.executebuiltin('Dialog.Close(%s, true)' % 10101) #xbmc.getCondVisibility('Window.IsActive(10101)') #thread actif if xbmcgui.Window(10101).getProperty('arret') == '0': xbmcgui.Window(10101).setProperty('arret', '1') #si bug else: cDownloadProgressBar().StopAll() #On remet tout les status a 0 ou 2 cDb().Cancel_download() VSupdate() return
def ouTMyTmdb(): addons = addon() addons.setSetting('tmdb_session', '') addons.setSetting('tmdb_account', '') dialog().VSinfo(addons.VSlang(30320)) VSupdate() showMyTmdb() return
def ResetDownload(self): oInputParameterHandler = cInputParameterHandler() url = oInputParameterHandler.getValue('sUrl') meta = {} meta['url'] = url try: cDb().reset_download(meta) self.DIALOG.VSinfo('Liste mise à jour') VSupdate() except: pass return
def ResetDownload(self): oInputParameterHandler = cInputParameterHandler() url = oInputParameterHandler.getValue('sUrl') meta = {} meta['url'] = url try: cDb().reset_download(meta) self.DIALOG.VSinfo(self.ADDON.VSlang(30071)) VSupdate() except: pass return
def delDownload(self): oInputParameterHandler = cInputParameterHandler() url = oInputParameterHandler.getValue('sUrl') meta = {} meta['url'] = url meta['path'] = '' try: cDb().del_download(meta) self.DIALOG.VSinfo('Liste mise a jour') VSupdate() except: pass return
def DelFile(self): oInputParameterHandler = cInputParameterHandler() path = oInputParameterHandler.getValue('sPath') oDialog = self.DIALOG.VSyesno(self.ADDON.VSlang(30074)) if (oDialog == 1): meta = {} meta['url'] = '' meta['path'] = path try: cDb().del_download(meta) xbmcvfs.delete(path) self.DIALOG.VSinfo(self.ADDON.VSlang(30072)) VSupdate() except: self.DIALOG.VSinfo(self.ADDON.VSlang(30073))
def DelFile(self): oInputParameterHandler = cInputParameterHandler() path = oInputParameterHandler.getValue('sPath') oDialog = self.DIALOG.VSyesno('Voulez vous vraiment supprimer ce fichier? \nOpération non réversible.') if (oDialog == 1): meta = {} meta['url'] = '' meta['path'] = path try: cDb().del_download(meta) xbmcvfs.delete(path) self.DIALOG.VSinfo('Fichier supprimé') VSupdate() except: self.DIALOG.VSinfo('Erreur, fichier non supprimable')
def RefreshDownloadList(self): #print xbmc.getInfoLabel('Container.FolderPath') if 'function=getDownload' in xbmc.getInfoLabel('Container.FolderPath'): VSupdate()