def service(): a = False while (not xbmc.abortRequested): if not (xbmc.Player().isPlaying() or xbmc.getCondVisibility('Library.IsScanningVideo')): if common.download_allowed(a): if not common.blocked(a): start_rytec_service() a = True xbmc.sleep(1000)
def service(): a = False while (not xbmc.abortRequested): if not (xbmc.Player().isPlaying() or xbmc.getCondVisibility('Library.IsScanningVideo')): if common.download_allowed(a): if not common.blocked(a): start_rytec_service() else: if not a: xbmc.executebuiltin('Notification(epg download currently not allowed,)') a = True xbmc.sleep(1000)
def service(): a = False while (not xbmc.abortRequested): if not (xbmc.Player().isPlaying() or xbmc.getCondVisibility('Library.IsScanningVideo')): if common.download_allowed(a): if not common.blocked(a): start_rytec_service() else: if not a: xbmc.executebuiltin( 'Notification(epg download currently not allowed,)') a = True xbmc.sleep(1000)
def service(): monitor = xbmc.Monitor() a = False while not monitor.abortRequested(): if monitor.waitForAbort(1): break if not (xbmc.Player().isPlaying() or xbmc.getCondVisibility('Library.IsScanningVideo')): if common.download_allowed(a): if not common.blocked(a): DOWNLOADER() a = True