Rhythmbox » Diskussionen

Rhythmbox plugin

 
    • intosi schrieb...
    • Benutzer
    • 3. Sep. 2004, 20:09

    Rhythmbox plugin

    Is anybody working on something to connect Rhythmbox to AudioScrobbler?

    Cheers,
    Intosi

    • hawesie schrieb...
    • Benutzer
    • 28. Sep. 2004, 9:14

    Gdesklet

    I'm using this at the moment...

    http://gdesklets.gnomedesktop.org/categories.php?func=gd_show_app&gd_app_id=162

    It works well, although if you don't want/have gdesklets you're in trouble. I guess the code is all in there though if someone could be convinced to write a standalone plugin.

    --
    hawesie

  • I'm working on a standalone version using pyGTK, gnome-python, etc. Everything works but the interface still needs a bit of rewritting (HIG compliance, etc.)

  • xiphoidappendix, any chance you'll release this standalone version anytime soon? gDesklets don't currently work in my distribution (Gentoo) and I miss Rhythmbox (I had to revert to XMMS). I'd gladly help with development, but my programming skills are rusty and my Python skills are virtually non-existent. : So we're counting on you. ;)

    // fixxxer

    This signature is only a product of your imagination. It is not real.
  • I haven't really worked on it much lately, but here's what I have: rbscrobbler-0.0.1.tar.gz.

    Notes:
    - requires: python 2.3, pygtk, gnome-python (2.0.3+ or 2.6.0+)
    - the ui is pretty much useless at this point
    - all useful information is printed to stdout so you should probably run it from a terminal until you know it works
    - it uses a lot of RAM
    - the code is a horrible, ugly mess
    - sometimes it will report a timeout though the song(s) is/are still submitted, which triggers the spam protection filter. This could probably be solved by increasing the default timeout (RLBase.py, line 41)

    Other than that, it appears to work.

    • lfranchi schrieb...
    • Benutzer
    • 16. Okt. 2004, 23:54
    Does it require gnome-python 2.0.3+, or can it also work with 2.0.2? I'm running gentoo, and 2.0.2 is the latest version in portage.

    This is my error:

    [DEBUG] Rhythmbox class instantiated.
    Traceback (most recent call last):
    File "./rbscrobbler.py", line 591, in ?
    main.run()
    File "./rbscrobbler.py", line 567, in run
    self.RunScrobbler = RunScrobbler()
    File "./rbscrobbler.py", line 295, in __init__
    self.RB = Rhythmbox.Rhythmbox()
    File "/home/leo/Downloads/rbscrobbler-0.0.1/Rhythmbox.py", line 60, in __init__
    bonobo.event_source_client_add_listener(event_source, self._bonobo_register, "Bonobo/ObjectDirectory:activation:register")
    AttributeError: 'module' object has no attribute 'event_source_client_add_listener'

    • lfranchi schrieb...
    • Benutzer
    • 16. Okt. 2004, 23:56
    oh, one more thing. I'm willing to help with some coding if necessary, i know python, although im not too great with gnome-python integration. just let me know.

    • lfranchi schrieb...
    • Benutzer
    • 17. Okt. 2004, 1:31
    ok, in fact it does depend on gnome-python 2.0.3.

    What I did was simpy version-bump the pyorbit and gnome python ebuilds - theyre so simple that they work just fine out of the box.

    so thanks for the cool plugin!

    Bearbeitet von lfranchi am 17. Okt. 2004, 1:32
  • I had the same problem, but didn't have time to investigate it further. So my thanks go to both xiphoidappendix and lfranchi -- for the plugin and instructions, respectively. :)

    // fixxxer

    This signature is only a product of your imagination. It is not real.
    • lfranchi schrieb...
    • Benutzer
    • 18. Okt. 2004, 2:30
    ok, some more information. i confirmed it was gnome-python 2.0.3 that did not include 'event_source_client_add_listener'. upgrading that should fix it.

    i found a new error, though. basically, _bonobo_change_playing only takes 4 arguments, but is getting passed in 5. the last argument is a <BonoboCorbaException at 0xbfffde50>. i dont know what it is,or where from, but here is a patch to make it work (and display the arg that it gets)

    <start patch>
    diff -ur rbscrobbler-0.0.1/Rhythmbox.py Rhythmbox.py
    --- rbscrobbler-0.0.1/Rhythmbox.py 2004-10-13 02:02:51.000000000 -0700
    +++ Rhythmbox.py 2004-10-17 19:28:24.966879648 -0700
    @@ -143,15 +143,22 @@
    pass
    # end change_repeat

    - def _bonobo_change_playing(self, listener, event, value):
    + def _bonobo_change_playing(self, listener, event, value, error):
    + print "ARG: %s" % error, dir(error)
    try:
    self._callback_playing()
    except:
    pass
    # end change_playing

    - def _bonobo_change_song(self, listener, event, value):
    + def _bonobo_change_song(self, listener, event, value, error):
    # refresh local data from RB
    + print "ARG: %s" % error, dir(error)
    + import sys
    + try:
    + raise error
    + except:
    + print sys.exc_type, sys.exc_info
    self.refresh()

    try:

    <end patch>

    bbcode is not keeping the tabs in the patch. this is important, because python is whitespace-aware. due to this fact, you can get Rhythmbox.py (patched) from here:

    Patched file

    i don't know anything at all about how CORBA/bonobo works, so unfortunately i can't debug this. maybe someone with more knowledge can fix it

    leo

    Bearbeitet von lfranchi am 18. Okt. 2004, 2:37
  • I believe the number of arguments changed between 2.0.3 and 2.6.0.

    Updated ebuilds for Gentoo:
    gnome-python-2.6.0.ebuild
    pyorbit-2.0.1.ebuild

  • new release

    New release: rbscrobbler-0.0.2.tar.gz

    Changes:
    - sync Rhythmbox interface to current Rhythmlet development version. (This should fix at least one bug that caused rbscrobbler to die.)
    - allow resizing of columns in queue
    - use gtk.ScrolledWindow for scrollbars
    - use prepend instead of append when adding to queue liststore
    - fix bug when running under gnome-python 2.0.3

    Bearbeitet von xiphoidappendix am 18. Okt. 2004, 23:34
    • lfranchi schrieb...
    • Benutzer
    • 19. Okt. 2004, 0:02
    seems to me that the link is broken :(

    edit: whole site, not just link, sorry.

    Bearbeitet von lfranchi am 19. Okt. 2004, 0:02
    • kupo schrieb...
    • Benutzer
    • 24. Okt. 2004, 19:47
    Hmm, I get some goofy error message when I try to run it.

    ** (rbscrobbler.py:4703): WARNING **: `GtkTextSearchFlags' is not an enum type
    Traceback (most recent call last):
    File "rbscrobbler.py", line 14, in ?
    from Rhythmbox_Bonobo import Rhythmbox_Bonobo
    File "/home/andy/Applications/rbscrobbler-0.0.2/Rhythmbox_Bonobo.py", line 26, in ?
    import CORBA
    ImportError: No module named CORBA

    Any idea on what to do?

  • You need to install pyorbit.

  • New version

    Changes:
    * more code syncing from Rhythmlet
    * changed prepend back to append (queue liststore)
    * allow rbscrobbler to persist between RB instances

    It doesn't (shouldn't) die when you close Rhythmbox anymore.

    Bearbeitet von xiphoidappendix am 26. Okt. 2004, 5:06
    • rz1 schrieb...
    • Benutzer
    • 26. Okt. 2004, 12:29
    Just installed rbscrobbler with RhythmBox 0.8.5 under Ubuntu 4.10. Everything's looking good so far. Great work xiphoid! Now I'll finally be able to ditch xmms.

    • kupo schrieb...
    • Benutzer
    • 26. Okt. 2004, 19:25

    new error

    I know that this error has already been posted, but I got this message using the newest version of the audioscrobbler plugin:

    ** (rbscrobbler.py:1070): WARNING **: `GtkTextSearchFlags' is not an enum type
    Traceback (most recent call last):
    File "rbscrobbler.py", line 602, in ?
    main.run()
    File "rbscrobbler.py", line 578, in run
    self.RunScrobbler = RunScrobbler()
    File "rbscrobbler.py", line 295, in __init__
    self.RB.enable()
    File "/home/andy/Applications/rbscrobbler-0.0.3/Rhythmbox_Bonobo.py", line 106, in enable
    bonobo.event_source_client_add_listener(event_source, self._bonobo_register, EVENT_REGISTER)
    AttributeError: 'module' object has no attribute 'event_source_client_add_listener'

    Anyone know what to do? I tried that patch but it didn't seem to work.

  • kupo: You need to upgrade gnome-python to version 2.0.3 or 2.6.0.

    If you're using Gentoo, you can get updated ebuilds here.

    • birkett schrieb...
    • Benutzer
    • 20. Dez. 2004, 18:31

    User interface

    Is there a way to completely disable the user interface? Ideally, it would be nice to have it remember my password and never need to open a window at all... I would like to have the rbscrobbler program run in a screen when I log in, so that I don't need to do anything about it.

  • That's not possible yet, but eventually.

    • desprezo schrieb...
    • Benutzer
    • 29. Dez. 2004, 23:06

    debian side note

    #!/usr/bin/env python

  • Thanks. I'll change that in the next release.

    • milosh_ schrieb...
    • Benutzer
    • 4. Jan. 2005, 10:53

    Could it be adapted to muine ?

    I sometimes use muine as my music player. I wonder if it would be possible to adapt rbscrobbler so that it would work for muine.

    Using for example :
    http://gdesklets.gnomedesktop.org/categories.php?func=gd_show_app&gd_app_id=152

  • Re: Muine

    Yes, once Muine has a DBus interface (it's still in development, I believe) it would be fairly easy to support.

    Muine will also have a plugin interface, so it'd probably be better to use that instead.

Anonyme Benutzer dürfen keine Beiträge schreiben. Bitte log dich ein oder registriere dich, um Beiträge in den Foren schreiben zu können.