示例#1
0
 def downloadCustomModule(self):
     success = self.customModulesManager.downloadCustomModules()
     if success == True:
         # refresh container if SportsDevil is active
         currContainer = xbmcUtils.getContainerFolderPath()
         common.showNotification('SportsDevil', 'Download successful', 1000)
         if currContainer.startswith(self.base):
             xbmc.executebuiltin('Container.Refresh()')
         return True
     elif success == False:
         common.showNotification('SportsDevil', 'Download failed', 1000)
     return False
示例#2
0
 def downloadCustomModule(self):
     success = self.customModulesManager.downloadCustomModules()
     if success == True:            
         # refresh container if SportsDevil is active
         currContainer = xbmcUtils.getContainerFolderPath()
         common.showNotification('SportsDevil', 'Download successful', 1000)
         if currContainer.startswith(self.base):                
             xbmc.executebuiltin('Container.Refresh()')
         return True
     elif success == False:        
         common.showNotification('SportsDevil', 'Download failed', 1000)
     return False
示例#3
0
文件: main.py 项目: Mendim/tdbaddon
 def downloadCustomModule(self):
     success = self.customModulesManager.downloadCustomModules()
     if success == True:
         # refresh container if Dragon Streams is active
         currContainer = xbmcUtils.getContainerFolderPath()
         common.showNotification("Dragon Streams", "Download successful", 1000)
         if currContainer.startswith(self.base):
             xbmc.executebuiltin("Container.Refresh()")
         return True
     elif success == False:
         common.showNotification("Dragon Streams", "Download failed", 1000)
     return False