Results 1 to 5 of 5

Thread: Listen announce script for xchat

  1. #1
    Join Date
    Sep 2005
    Location
    Quebec, Canada
    Beans
    33

    Listen announce script for xchat

    I made a small script which allow Listen users to display the current song in xchat. This is not really evolved for a script, but I'll eventually add more features
    when I have the time.

    What you must have installed: xchat, dbus, python and python-dbus (they should be installed by default I think)

    I posted two files in attachements. (both are in .gz, type gunzip 'file' to remove the .gz extension.)

    listen.py: it's the script itself, put it in ~/.xchat2

    dbus_manager.py: since it contained an error, I modified it a bit, and added more features to get more information about the song. (Listen authors will probably modify it in the next version, and fix the bug I found in it.)

    You have to copy my dbus_manager.py in /usr/lib/listen/ (please backup the old one in case things go wild!)

    To use it, type /listen np in xchat!

    Suggestions, critics are welcome.

    - oxEz
    Attached Files Attached Files
    Last edited by oxEz; April 8th, 2006 at 08:21 PM.

  2. #2
    Join Date
    Feb 2006
    Beans
    43

    Re: Listen announce script for xchat

    im bout to try it now. Hopefully it works

  3. #3
    Join Date
    Feb 2006
    Beans
    43

    Re: Listen announce script for xchat

    couldn't get it to work:

    Code:
    [09:58] XChat module for Listen loaded
    [09:58] Introspect error: The name org.freedesktop.listen was not provided by any .service files
    [09:58] <brucki> nah man
    [09:58] Traceback (most recent call last):
    [09:58]   File "/home/duane/.xchat2/listen.py", line 34, in listen_command_handler
    [09:58]     return np(word[1:], word_eol[1:], userdata)
    [09:58]   File "/home/duane/.xchat2/listen.py", line 23, in np
    [09:58]     current_song = listen.current_song()
    [09:58]   File "/usr/lib/python2.4/site-packages/dbus/proxies.py", line 102, in __call__
    [09:58]     reply_message = self._connection.send_with_reply_and_block(message, timeout)
    [09:58]   File "dbus_bindings.pyx", line 458, in dbus_bindings.Connection.send_with_reply_and_block
    [09:58] dbus_bindings.DBusException: The name org.freedesktop.listen was not provided by any .service files
    error that i got trying to load and do a /listen np

  4. #4
    Join Date
    Feb 2006
    Beans
    43

    Re: Listen announce script for xchat

    know of any other xchat mp3 announce scripts?

  5. #5
    Join Date
    Sep 2005
    Location
    Quebec, Canada
    Beans
    33

    Re: Listen announce script for xchat

    Well currently the script doesn't check if you're running Listen or not.. The script is made for current version (0.4.2)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •