예제 #1
0
def check(direct):
    try:
        os.makedirs(path)
        os.removedirs(path)
        OK_Dialog(String(30334), String(30335))
        if direct != 'maintenance':
            Open_Settings()

    except:
        OK_Dialog(String(30336), String(30337))
        Open_Settings()
예제 #2
0
def Simple_Dialog(title, msg):
    OK_Dialog(title, msg)


#if __name__ == "__main__":
#    Run(default='main')
#    xbmcplugin.endOfDirectory(int(sys.argv[1]))
예제 #3
0
def Play_Link(url):
    if len(url)==1:
        if not Play_Video(url[0]):
            OK_Dialog( 'PLAYBACK FAILED','This stream is currently offline.' )

    elif len(url)>1:
        link_list   = []
        counter     = 1
        for item in url:
            link_list.append( 'Link '+str(counter) )
            counter += 1
        choice = Select_Dialog( 'CHOOSE STREAM', link_list )
        if choice >= 0:
            if not Play_Video( url[choice] ):
                OK_Dialog( 'PLAYBACK FAILED','This stream is currently offline.' )
                Play_Link(url)
예제 #4
0
def Play_Link(url):
    # If only one item in the list we try and play automatically
    if len(url) == 1:
        if not Play_Video(url[0]):
            OK_Dialog('PLAYBACK FAILED', 'This stream is currently offline.')

# If more than one link then we give a choice of which link to play
    elif len(url) > 1:
        link_list = []
        counter = 1
        for item in url:
            link_list.append('Link ' + str(counter))
            counter += 1
        choice = Select_Dialog('CHOOSE STREAM', link_list)
        if choice >= 0:
            if not Play_Video(url[choice]):
                OK_Dialog('PLAYBACK FAILED',
                          'This stream is currently offline.')
                Play_Link(url)
예제 #5
0
def Simple_Dialog(title, msg):
    OK_Dialog(title, msg)