def __init__(self): self.downloadCount = 0 self.controller = servicecontrol.ServiceControl() AddonSignals.registerSlot('script.module.youtube.dl', 'DOWNLOAD_STOP', self.stopDownload) self.start()
def stopAllDownloads(self): yes = xbmcgui.Dialog().yesno( 'Cancel Downloads', 'Cancel current download and', 'all queued downloads?' ) if yes: servicecontrol.ServiceControl().stopAllDownloads()
def stopDownload(self): yes = xbmcgui.Dialog().yesno( 'Cancel Download', 'Cancel current download?') if yes: servicecontrol.ServiceControl().stopDownload()
def manageQueue(self): servicecontrol.ServiceControl().manageQueue()
def __init__(self): self.downloadCount = 0 self.controller = servicecontrol.ServiceControl() self.start()
def stopAllDownloads(self): yes = xbmcgui.Dialog().yesno(T(32041), T(32042)) if yes: servicecontrol.ServiceControl().stopAllDownloads()
def stopDownload(self): yes = xbmcgui.Dialog().yesno(T(32039), T(32040)) if yes: servicecontrol.ServiceControl().stopDownload()