Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- __module_name__ = "Banshee Info"
- __module_version__ = "0.1"
- __module_description__ = "Banshee Info Script"
- import xchat
- import commands
- def banshee(word,word_eol,userdata):
- stop = commands.getoutput("banshee --query-current-state | cut -c 16-")
- artist = commands.getoutput("banshee --query-artist | cut -c 9-")
- album = commands.getoutput("banshee --query-album | cut -c 8-")
- title = commands.getoutput("banshee --query-title | cut -c 8-")
- bit = commands.getoutput("banshee --query-bit-rate | cut -c 11-")
- year = commands.getoutput("banshee --query-year | cut -c 7-")
- xchat.command("me éppen a(z) " + title + " című számot hallgatja " + artist + " előadó " + album + " (" + year + ") című albumáról. (" + bit + " kbit/s)")
- return xchat.EAT_ALL
- xchat.hook_command("banshee", banshee, help="Kiírja a Banshee által lejátszott zeneszám adatait.")
- print "XChat2 Banshee Info Script"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement