Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
coverview instead of amazon-page in amarok's contextbrowser
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
SeeksTheMoon
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 163

PostPosted: Sat Jul 22, 2006 8:50 am    Post subject: coverview instead of amazon-page in amarok's contextbrowser Reply with quote

I really, really dislike amaroks behaviour when you cklick on an albumcover in the contextbrowser:
Instead of showing the cover in real size, it opens your browser and visits the amazon website to a location where you can buy this album.
(This even happens if you compiled amarok with the noamazon-flag)

The developers say, that's because of amazon's license, but I think this sucks =)

So I patched that out and changed the coverview to be the default action.
The patch is described for version 1.4.1-r2 but it still works with 1.4.3-r1.

To get this changed behaviour, make
ebuild /usr/portage/media-sound/amarok/amarok-1.4.1-r2.ebuild unpack
go to /var/tmp/portage/amarok-1.4.1-r2/work/amarok-1.4.1/amarok/src
and patch contextbrowser.cpp with the following patch:
Code:

--- contextbrowser.cpp   2006-07-02 21:37:44.000000000 +0200
+++ contextbrowser_patched.cpp   2006-07-22 10:06:24.000000000 +0200
@@ -402,6 +402,7 @@
             return;
         }
 
+/*
         QImage img( albumPath );
         const QString amazonUrl = img.text( "amazon-url" );
 
@@ -409,6 +410,8 @@
             KMessageBox::information( this, i18n( "<p>There is no product information available for this image.<p>Right-click on image for menu." ) );
         else
             amaroK::invokeBrowser( amazonUrl );
+*/
+   CoverManager::viewCover(artist, album, this);
     }

then enter
ebuild /usr/portage/media-sound/amarok/amarok-1.4.1-r2.ebuild compile
ebuild /usr/portage/media-sound/amarok/amarok-1.4.1-r2.ebuild install
ebuild /usr/portage/media-sound/amarok/amarok-1.4.1-r2.ebuild qmerge

I don't know if someone wants that changed behaviour and if it's legal to distribute this changed version (from amazon's point of view), so I didn't make a modified ebuild and did everything by hand.
Maybe it's ok to apply it if you use the noamazon-flag.

Have fun!
(come and get me, amazon :P)
Back to top
View user's profile Send private message
amazon
n00b
n00b


Joined: 15 Feb 2007
Posts: 1

PostPosted: Thu Feb 15, 2007 12:58 am    Post subject: freeeze! Reply with quote

here i am!

wouldn't have thought I'd be here so quickly, right?

It's over now


:lol: :lol: :lol:













this was worth the registration :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum