예제 #1
0
def intel_vol(command):
    try:
        import music
        if music.is_playing():
            # NOTE: These commands are executed async, so we can't
            # catch errors here. The music plugin will direct the
            # request back to us if it can't handle it.
            if command in ('up', 'down'):
                music.command('Volume %s' % command.title())
            else:
                music.command(command.title())
            return
    except ImportError:
        pass

    globals()['vol_%s' % command]()
예제 #2
0
def intel_vol(command):
	try:
		import music
		if music.is_playing():
			# NOTE: These commands are executed async, so we can't
			# catch errors here. The music plugin will direct the
			# request back to us if it can't handle it.
			if command in ('up', 'down'):
				music.command('Volume %s' % command.title())
			else:
				music.command(command.title())
			return
	except ImportError:
		pass

	globals()['vol_%s'%command]()
예제 #3
0
def music(command):
    import music
    music.command(command)
예제 #4
0
def music(command):
	import music
	music.command(command)