Version: 2.0.2 (using 4.2.1 (KDE 4.2.1) "release 106", KDE:KDE4:Factory:Desktop / openSUSE_11.1) Compiler: gcc OS: Linux (i686) release 2.6.27.19-3.2-pae Fech cover locales and servers aren't assigned correctly because Canada is in the second place and will be the last. As I can see using "amarok --debug" the asignation was: International -> .com (ok) Canada -> .fr (bad) France -> .de (bad) Germany -> .jp (bad) Japan - .co.uk (bad) U.K. -> .ca (bad) pretty confusing :).
Ouch. Does anyone know if this is still valid in SVN? Ignacio, could you make a patch for fixing it?
Well I'm not a C programmer and I don't know how to debug and trace a C program but my brain debugging tool shows me that the problem would be in CoverFech.h 85: enum Locale { International=0, France, Germany, Japan, UK, Canada }; because don't have the same order that combo and probably would be 85: enum Locale { International=0, Canada, France, Germany, Japan, UK }; but could be not ;). Locale are obtained in CoverFetcher.cpp 258: QString locale = AmarokConfig::amazonLocale(); but I'm not sure if with the enum change the problem will be fixed. On the other side, there is a wrong comment in 259 "//Amazon Japan isn't on xml.amazon.com". If that comment would be true Amarok can't download covers from amazon.jp ;).
Waiting for info: does this still happen in Amarok 2.1?
Yes, I need to use Germany to download covers from Japan. I test this in main interface and in "Cover Manager" form.
Confirmed with current 2.2-git. I suspect some weird sorting of the locations, the displayed list is only partially alphabetical as it starts with 'International'
Well, I finally learn how to compile a Amarok. God, programing in C++ is really a nightmare :(, thanks god for my new dual core computer but, as I told in March a simple change fix the bug: Change enum Locale { International=0, France, Germany, Japan, UK, Canada }; for enum Locale { International=0, Canada, France, Germany, Japan, UK }; and, for me, bug was fixed.
Could somebody fix this, please?
commit cc4a2b4d352ab0b624363ad06e1c27efcc193096 Author: Mark Kretschmann <kretschmann@kde.org> Date: Sat Aug 1 15:00:21 2009 +0200 Assign correct locales for Amazon servers. Thanks to Ignacio Serantes for figuring this out :)