Get your cover!

Just a quicknote about the last feature i’ve worked on today: a CoverFetcher DataEngine 🙂

Simply query your cover doing coverFetcherEngine->query(“ArtistName|AlbumName”); and a source will be added to represent the cover. Each cover will be represented by a source of the dataengine. Additionally, for each source, you can find more than one cover categorized with the keys: “small”, “medium”, “large”, “extralarge” according to the different cover size fetched.

The playlist applet already takes advantage of this.. get your cover!

playlistappletcovers

P.S.: the magic behind the engine is the last.fm api. I hope  to be respecting their license.. I’ll add a Credit file mentioning them as soon as possible to the repository.

2nd P.S.: thanks to lfranchi for pointing me to last.fm

3rd P.S.: thanks to notmart and pinotree for the hints about the xml parsing

Cheers devs! 🙂

Advertisements

11 Responses to “Get your cover!”


  1. 1 Stefan April 29, 2009 at 12:31 am

    What Plasma theme are you using?

    Tank you.

  2. 2 Eike Hein April 29, 2009 at 2:13 am

    Air, which will be the default theme in KDE 4.3.

  3. 3 JavierBere April 29, 2009 at 3:35 am

    Awesome. Looking forward to seeing the media center shape up.

  4. 4 pns April 29, 2009 at 6:34 am

    We have amarok with its own cover fetch, JuK has its own. Now a new one… May be getting single KDE resource with plugin capability accessed by everyone is better know? Just a thought…

  5. 5 pns April 29, 2009 at 7:44 am

    By the way this media center thing is nice and I am very much looking forward to it. Thanks for the great work. Hopefully final one will be at par with amarok 🙂

  6. 6 Alessandro Diaferia April 29, 2009 at 9:03 am

    @pns: maybe juk and amarok can use the DataEngine now 😛

  7. 7 pns April 29, 2009 at 10:11 am

    @Diaferia: That would be awesome. Is this the plan already?
    As far as I remember amarok gets it from amazon through some deal. I don’t the source for JuK. This data engine source is last.fm. Thats why I was wondering about a plugin based one like the weather data engine.
    Ultimately I will be a happy user if all players in KDE give the same cover 🙂
    I am sure I will be using both media center and amarok 🙂

    • 8 Alessandro Diaferia April 29, 2009 at 10:16 am

      There aren’t plan about this already even since i’ve just created the engine and still needs some bugsquashing.. Anyway when things will be more stable i’ll for sure suggest a unified aproach for every media player 🙂

  8. 9 pns April 29, 2009 at 10:23 am

    You are awesome.
    When you are on this, “may be” you look at unifying playlists, podcast bookmarks, other online sources part of amarok also 🙂
    Considering its media center, I think we need them anyway 😉
    I hope I am not asking too much 🙂

    Thanks a lot for your work.

  9. 10 SVG Crazy April 29, 2009 at 5:13 pm

    Some mp3, m4a and other audio formats have their cover art saved on their own tag. Nowadays, amarok can’t read them (do not know about juk). Would it be possible to make this dataengine aware of this?

    Me, for example, I have more than 10000 music organized and with the cover art saved on the tags, so I am not worried about recovering the cover art every time I have to change the player (mediamonkey, iTunes, ipods.. etc).

    Keep up the excellent work!


  1. 1 Wieści z Planety nr 2 - Silezja.eu Trackback on May 5, 2009 at 8:31 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





%d bloggers like this: