Esempio n. 1
0
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()
            a = True
        xbmc.sleep(1000)
Esempio n. 3
0
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)
Esempio n. 4
0
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)
Esempio n. 5
0
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
Esempio n. 6
0
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