Bug 95178 - Audioscrobbler + non latin names problem
Summary: Audioscrobbler + non latin names problem
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 1.2-CVS
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-15 00:22 UTC by Mashrab Kuvatov
Modified: 2006-06-11 12:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
A patch to fix Audioscrobbler URL encoding problem (1.21 KB, patch)
2004-12-15 00:24 UTC, Mashrab Kuvatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mashrab Kuvatov 2004-12-15 00:22:33 UTC
Version:           1.2-CVS (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

Dear amaroK developers,

there is a problem in submitting to Audioscrobbler if the artist/title name is non latin
(namely, it is Unicode). The garbage characters you can see here [1] are gone after
applying the attached patch. It seems Audioscrobbler does not like encoded URL.

I tested the patch with Cyrillic, Japanese and Chinese artist/title names. The results
you can see here [1].

Please consider applying the attached patch.

[1] http://www.audioscrobbler.com:80/user/kmashrab/

Thanks.
Comment 1 Mashrab Kuvatov 2004-12-15 00:24:56 UTC
Created attachment 8670 [details]
A patch to fix Audioscrobbler URL encoding problem
Comment 2 Mark Kretschmann 2004-12-17 08:46:13 UTC
I think Daniel Molkentin fixed this last night.
Comment 3 Mashrab Kuvatov 2004-12-18 13:02:50 UTC
Yes it is fixed. Daniel's fix is much more elegant than mine.

There is one more fix to make, I think. Namely, in

void Scrobbler::similarArtists( const QString & artist )

line

.arg( KURL::encode_string_no_slash( artist.utf8() ) );

should be

.arg( KURL::encode_string_no_slash( artist ) );

It is like what Daniel did for Audioscrobbler submit URL encoding fix.
Comment 4 Mashrab Kuvatov 2004-12-21 21:21:44 UTC
Daniel reverted his URL encoding changes. Thus, the report is valid again. I'm going to reopen it.

I reset my Audioscrobbler statistics, I do not feel like playing with it. For testing I created a new accout at Audioscrobbler.com, it is amarok_user. The garbage characters one can see at http://www.audioscrobbler.com:80/user/amarok_user/ is after revert.
Comment 5 Mark Kretschmann 2004-12-21 21:30:21 UTC
Guys, could you every come to a conscensus as to what the right code is? Perhaps you could discuss this with Daniel, over a cup of tea.
Comment 6 Lukáš Tinkl 2004-12-27 13:04:22 UTC
Mashrab, please test again with current CVS; I hope I got it correctly this time :)
Comment 7 Mashrab Kuvatov 2004-12-28 14:28:44 UTC
I tested recent amarok CVS with Audioscrobbler.com and confirm it works properly.

Thanks Lukas.