Esempio n. 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]()
Esempio n. 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]()
Esempio n. 3
0
def music(command):
    import music
    music.command(command)
Esempio n. 4
0
def music(command):
	import music
	music.command(command)