PDA

View Full Version : New Rhythmbox plugin : cover view browser



manuw2009
January 14th, 2010, 08:40 PM
Hi all,

After long hours trying to understand (I know nothing about python...), Alexandre Rosenfeld's previous work on the coverart_browser plugin I eventually came up with a new updated version :
1. NEW : enabling to display a nice cover view pane in rhythmbox (see attachment)
2. a button enables to download missing covers (original plugin purpose)
3. NEW : double clicking on an album cover enables to play it
4. NEW : drag & dropping pictures from the internet onto the cover image enables to replace cover art
Well, this is still beta I guess and seems buggy but it mostly works.
I'd like to incorporate drag'n dropping over ipod to copy entire albums to the ipo/MTP library but I'm still not sure how to achieve that...
Hope (some of) you enjoy it...

Google code page : http://code.google.com/p/rhythmbox-cover-art-browser/

clicker4721
February 1st, 2010, 05:23 AM
I downloaded it and have to ask a stupid question: to where do I extract it?

manuw2009
February 1st, 2010, 08:09 AM
Hi,

You need to extract it to :
.gnome2/apps/rhythmbox/plugins/

Then you'll have to activate the plugin in Rhythmbox

clicker4721
February 1st, 2010, 06:43 PM
Ahh, wonderful, I should have expected that. :P Thanks.

manuw2009
February 6th, 2010, 11:43 PM
Hi again,

c'mon guys, anybody interested in adding further possibilities ?
(for instance, how would we enable drag/drop over mtp/ipod from the cover view ?)
Does anyone know how to use libgpod/pythongpod from a rhythmbox addon ?
manu

Shpongle
February 7th, 2010, 12:08 AM
very nice !, il be sure to check this out next time i use rhythmbox , on kde with amarok at the min, coincidentally im learning python as i type this. keep up the good work =D>

ctrlmd
February 7th, 2010, 07:45 AM
hi
i downloaded the plugin but there isn't a folder called apps inside .gnome2
so where do i have to extract it

manuw2009
February 7th, 2010, 10:12 AM
Hi ctrlmd,

I think it's either in
.gnome2/rhythmbox/plugins/
or
.gconf/apps/rhythmbox/plugins

I don't really understand why we have those two...
Maybe the 2nd one is just a result of the activation of the plugins in .gnome2

sigurnjak
February 7th, 2010, 04:15 PM
Does anyone get this error :Unable to activate plugin Cover Art Browser ?

ctrlmd
February 7th, 2010, 05:42 PM
Hi ctrlmd,

I think it's either in
.gnome2/rhythmbox/plugins/
or
.gconf/apps/rhythmbox/plugins

I don't really understand why we have those two...
Maybe the 2nd one is just a result of the activation of the plugins in .gnome2
i copied the plug-in to the specified directory and it didn't show up in rhythm media player plugins

manuw2009
February 7th, 2010, 07:15 PM
Sigurnjak
you probably have some missing dependancies
could you please run rhythmbox from the console with debug traces on ?
(rhythmbox -d or something...)

sigurnjak
February 7th, 2010, 11:46 PM
I got it work sort of by placing it here /usr/lib/rhythmbox/plugins . Here is output from starting Rhythmbox via terminal :
andrey@andrey-desktop:~$ rhythmbox

** (rhythmbox:11926): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed

** (rhythmbox:11926): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed
/usr/lib/rhythmbox/plugins/artdisplay_browser/__init__.py:24: DeprecationWarning: the sets module is deprecated
from sets import Set

rupeshk_19
February 11th, 2010, 06:15 PM
The cover view pane is a great idea and looks very nice. I have a suggestion - the browser should show the cover art stored in the user's music folders as folder.jpg. This is the same logic used by the cover art plugin.

Coincidentally last week I also uploaded a plugin based on the context pane plugin which searches the web for the album art of the currently playing song using google search apis. From the resulting images, one can then choose an image to set it as album art. Project details are here http://code.google.com/p/albumartsearch/

May be the user can use the cover art browser to view his collection and the album art search to choose his album art. Just a thought.

saturnblackhole
February 13th, 2010, 01:07 AM
great idea and thanks for your hard work but.....its not working the buttons (fetch and cancel) are not clickable and there it only shows a few album covers (4 out of 238 ).

EDIT: it seems to work after pressing the plug-in icon 10times lol i can live with it.

smif1984
February 13th, 2010, 02:09 PM
I have the same problem: no clickable buttons and absolutely no cover art. Running on Karmic..

Psyphre
February 13th, 2010, 04:45 PM
also same problem with no clickable buttons. I'm running Jaunty.

manuw2009
February 13th, 2010, 04:52 PM
Hi,

Buttons get clickable only once all albums have been loaded in the grid view...but I know it sometimes gets stuck because of some albums !
by pass : close the grid view and retrieve missing covers (the one that seem to get the thing stuck) from the album art plugin.
if someone is willing to help...
Also I'm currently trying to implement some kind of copyTo (ipod, mp3 media device) through contextual menu, but apart form listing the devices, I just can't get a grip on the RBSource to trigger the album tracks transfer

If anybody wants to contribute :D, I created a google code project :
http://code.google.com/p/rhythmbox-cover-art-browser/
thanx

Psyphre
February 13th, 2010, 09:44 PM
Hi,

Buttons get clickable only once all albums have been loaded in the grid view...but I know it sometimes gets stuck because of some albums !
by pass : close the grid view and retrieve missing covers (the one that seem to get the thing stuck) from the album art plugin.
if someone is willing to help...
Also I'm currently trying to implement some kind of copyTo (ipod, mp3 media device) through contextual menu, but apart form listing the devices, I just can't get a grip on the RBSource to trigger the album tracks transfer

If anybody wants to contribute :D, I created a google code project :
http://code.google.com/p/rhythmbox-cover-art-browser/
thanx

Thanks for the tip, and I appreciate the hard work, its a good project.

Unfortunately it still does not work. I removed all albums apart from 1. The cover does not show, even though it shows in the coverart side panel and also there is a folder.jpg file.

manuw2009
February 14th, 2010, 11:43 AM
Strange....
Could you try to assign a cover by drag &drop from a web image ?
I'm pretty sure the bug is related to specific album names...what is your locale ?
I guess we need some support from a python expert...!

Psyphre
February 14th, 2010, 01:16 PM
Strange....
Could you try to assign a cover by drag &drop from a web image ?
I'm pretty sure the bug is related to specific album names...what is your locale ?
I guess we need some support from a python expert...!

I tried dragging and dropping from both the web and from an image file on my desktop, neither worked.

The locale of the album is:

/media/sdb1/My Music/Daft Punk/Discovery

What kind of album names cause trouble?

kio_http
February 14th, 2010, 01:26 PM
Looks too much like iTunes and therefore not original.

manuw2009
February 14th, 2010, 01:31 PM
I have no idea ... I guess you should run rhythmbox -d and look at the traces in the console window...
On the mtp/iPod transfer front does anyone have an idea on how to retrieve easily the sources to copy entries to ?

zob
February 15th, 2010, 04:44 PM
Really cool. I'd wish it worked for me. Does anyone actually have this working.
It just downloads 7 albumcovers and stops there.

When I run rhythmbox -d I get a lot of these lines:

(16:36:21) [0x7fea351af6c0] [CoverArtBrowserPlugin.album_load] .gnome2/rhythmbox/plugins/artdisplay_browser/__init__.py:570: CoverArtBrowser DEBUG - album_load()
(16:36:21) [0x7fea351af6c0] [CoverArtBrowserPlugin.album_load] .gnome2/rhythmbox/plugins/artdisplay_browser/__init__.py:570: CoverArtBrowser DEBUG - album_load()
(16:36:21) [0x7fea351af6c0] [CoverArtBrowserPlugin.album_load] .gnome2/rhythmbox/plugins/artdisplay_browser/__init__.py:570: CoverArtBrowser DEBUG - album_load()
(16:36:21) [0x7fea351af6c0] [CoverArtBrowserPlugin.album_load] .gnome2/rhythmbox/plugins/artdisplay_browser/__init__.py:570: CoverArtBrowser DEBUG - album_load()


After a thousand lines or so of that, I get:

(16:40:18) [0x1aa9040] [paned_size_allocate_cb] rb-shell.c:2663: paned position 374
(16:40:18) [0x1aa9040] [paned_size_allocate_cb] rb-shell.c:2664: right_paned position 1373

I don't know if that's an error.

Please give me instructions if you want me to help debugging. I'm not the only one: http://www.omgubuntu.co.uk/2010/02/rhythmbox-cover-art-browser.html
As you can see in the comments, it doesn't really work for anyone - or so it seems. Might be working for a lot of people, who doesn't bother to comment.
I would like to know if anyone has had any succes.

thatguruguy
February 15th, 2010, 08:07 PM
Looks too much like iTunes and therefore not original.

I've never understood claims like this one. Sometimes, a program does something a particular way because it's a logical way to do something. The fact that other programs do something in a similar way is not a bad thing, if it's the most logical way to do it.


EDIT: I guess the point I'm trying (perhaps poorly) to make is, the question should not necessarily be, "Is it original?" but instead should be, "Is it useful and/or functional?"

manuw2009
February 15th, 2010, 09:39 PM
Thanx thatguruguy :)
I just can't see the point either...

Anyhow, on a more constructive front :
it turns out I'm unable to access the rhythmbox sources (to perform a transfer to the media devices).
It seems I'm facing quite a common bug :
ERROR:/build/buildd/pygobject-2.18.0/gobject/pygobject.c:924:pygobject_new_full: assertion failed: (tp != NULL)
when trying to access my ipod source

even in a the console debug window, a plain
shell.get_property('selected-source')
is giving the same result...
And so are a lot of plugins as Google suggests

Shpongle
February 15th, 2010, 09:55 PM
I've never understood claims like this one. Sometimes, a program does something a particular way because it's a logical way to do something. The fact that other programs do something in a similar way is not a bad thing, if it's the most logical way to do it.


EDIT: I guess the point I'm trying (perhaps poorly) to make is, the question should not necessarily be, "Is it original?" but instead should be, "Is it useful and/or functional?"

well said!

zob
February 15th, 2010, 10:40 PM
Could someone confirm that they have made this work?
I just need to know if it downloads (or shows from jpg in folder) ALL or MOST of the covers in your collection.

manuw2009
February 17th, 2010, 11:40 AM
hi zob,

Could you please try again using the latest google.code version ?
I had stall issue at the beginning because of the threads used in the original code.
They have not disappeared completely, but seem to happen less often...
As I said before, some albums seem to cause problems, the by-pass I found was to assign an album art through the album art plugin.

zob
February 18th, 2010, 02:53 AM
I know this is lazy but I can't seem to find it on google code.
I got my version from your dropbox folder I think, from the link he gives on this site:
http://www.omgubuntu.co.uk/2010/02/rhythmbox-cover-art-browser.html
Could you please post a link to the version, that you would like me to test, and that I will be happy to test;)

EDIT: Sorry. I just noticed that you left a comment on that site with the link. I will install tomorrow and tell how it works out.
http://code.google.com/p/rhythmbox-cover-art-browser/
But it sure looks great. Beautiful work.

zob
February 18th, 2010, 04:43 PM
Sorry, I still have no luck. It doesn't download anything. Please tell me if there is anything I can do to test.

manuw2009
February 19th, 2010, 10:28 AM
Hi,

Sorry to hear the bad news...
Could you please try again with the attached .py version ?
(run rhythmbox -D artdisplay_browser)
This won't work any better, but it will display traces & hopefully will tell us where it gets stuck...
Could you please also attach a screenshot of the pane before the fetch is launched & one afterwards ?
Also are you sure the album art display plugin is activated ?

Pott
February 19th, 2010, 01:04 PM
Funny thing here.
It worked when I extracted to gnome2/plugins, but copied itself to gconf/apps/rhythmbox/plugins. It doesn't work if it's only in one of these folders.

Now it works but it doesn't see many of the cover arts.
I have all my cover art embedded in the ID3 tags of my MP3s... so I'm guessing it doesn't recognize these..?

manuw2009
February 19th, 2010, 01:30 PM
Strange...I guess some gentle Rhythmbox developper could tell us where we're meant to put the plugins !
about the embedded art : tha answer is no, since I'm actually relying on rhythmbox album covers database, and I guess this implies embedded covers are not handled

Pott
February 19th, 2010, 01:46 PM
DOH :( Guess it's hopeless for me then... Rhythmbox won't see embedded art until 0.12.6, which I can't get yet. I use it instead of gmusicbrowser because it works with Conky (just a bit of fun) but I guess gmusicbrowser is the best music player I tried so far... :/

Thanks for the help and the plugin!

kyleabaker
April 15th, 2010, 03:43 AM
Has this plugin been improved at all in the last 2 months? It looks like its partially working and attempted to fetch covers the first time I ran it, but now its got both buttons disabled as others are experiencing.

I thought we might see some community members help pick up the slack on this by now. :P

manuw2009
April 15th, 2010, 04:50 PM
Hi,

Well, the truth is I eventually left rhythmbox for amarok...since amarok 2.3 now handles my ipod touch pretty well ;) and amarok collection system is way more powerful
Actually, I worked on this instead:

http://www.ubuntuhq.com/content/amarok-231-get-cover-bling

Last time I checked rhythmbox though, I still had the crash preventing me from scanning library sources and I gave up (I wanted to add to the album grid a "transfer to ipod" command)

joetraff
May 20th, 2010, 04:32 PM
I have got my solution.
Thank you all:)

joey-elijah
June 1st, 2010, 04:28 PM
Sad to see this cease - was a promising plugin :)

manuw2009
June 2nd, 2010, 08:54 AM
Well, I guess there's bound to be anyone willing to finish the work...?
The reasons why I don't feel like working on it anymore :
1. Python...my knowledge is sooo limited
2. and of course, I'm really liking Amarok 2.3 now ! It's so powerful, efficient and well, awesome too. It really does everything I need, and it does it well. I'm strongly recommanding it to anyone (and the development on it is VERY active)

kyleabaker
June 2nd, 2010, 09:08 AM
I'd take it up, but I've already got like 10 other projects that I'm juggling right now. I really wanted to see this project go far though. Rhythmbox is my favorite music app!

FokkerCharlie
October 27th, 2010, 07:37 PM
Is this project dead?

A real shame if so, as it's a really good idea, and one area the Banshee beats Rhythmbox.

I don't have the skills to take it forward myself, and was very disappointed when I found that the plugin didn't work properly for me :(

Hope that someone will take a new interest.

Charlie

FokkerCharlie
October 27th, 2010, 07:50 PM
Ah!

Good news- just found this:

http://sourceforge.net/projects/rhythmarty/

Charlie