Example #1
0
def play():
    artist = None
    try:
        artist = args['name'][0]
        image = args['image'][0]
        add = args['add'][0]
        if add == 'True': 
            common.artist_list('add',artist,image)
    except:
        pass
    try: artist = args['artist'][0]
    except: pass
    kill_old_process()
    if artist:
        from resources.lib.player import mvmixPlayer
        player = mvmixPlayer()
        player.playArtist(artist)
        while player.is_active and common.process() == 'True' and not xbmc.abortRequested:
            player.sleep(200)
Example #2
0
def kill_old_process():
    process = common.process()
    if process == 'True':
        common.process_false()
        xbmc.sleep(300)
Example #3
0
def kill_old_process():
    process = common.process()
    if process == 'True':
        common.process_false()
        xbmc.sleep(300)