Example #1
0
    def __init__(self):
        self.downloadCount = 0
        self.controller = servicecontrol.ServiceControl()

        AddonSignals.registerSlot('script.module.youtube.dl', 'DOWNLOAD_STOP', self.stopDownload)

        self.start()
Example #2
0
 def stopAllDownloads(self):
     yes = xbmcgui.Dialog().yesno(
         'Cancel Downloads',
         'Cancel current download and',
         'all queued downloads?'
     )
     if yes:
         servicecontrol.ServiceControl().stopAllDownloads()
Example #3
0
 def stopDownload(self):
     yes = xbmcgui.Dialog().yesno(
         'Cancel Download', 'Cancel current download?')
     if yes:
         servicecontrol.ServiceControl().stopDownload()
Example #4
0
 def manageQueue(self):
     servicecontrol.ServiceControl().manageQueue()
Example #5
0
 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()