Comment 7 for bug 406231

Revision history for this message
Yakov Mindelis (jackitg) wrote : Re: [Bug 406231] Re: audioscrobbler won't login/submit problems

On Wed, 29 Jul 2009 12:44:17 -0000
Mathias Brodala <email address hidden> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi.
>
> Yakov Mindelis, 29.07.2009 14:32:
> > In [4]: _scrobbler.login("jitg", pw, hashpw=False,
> > post_url='http://post.audioscrobbler.com/')
> >
> > […]
> >
> > As you see, non-hash pw + hashpw=False doesn't rase a thing, and it
> > should, the reply contains nothing hence no cookie for the session
> > (SESSION_ID)
>
> That’s odd. If I try plain text password + hashpw=False here, I get a
> clear exception:
>
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > File "_scrobbler.py", line 93, in login
> > raise AuthError('Bad username/password')
> > _scrobbler.AuthError: Bad username/password

> And obviously that’s how it’s supposed to work. Not sure what’s wrong at
> your place then.

Just did it again and got BADAUTH as expected. Strange. I'll keep an
eye on it. The only difference is different network (provider).

And another (a bit OT) question: submitting occurs at the beginning of
playback of the track. Afair, lastfm rules are to submit at min(240
seconds, length/2). after playback begins. I guess this comes from
solution a bug where scanning through the song prevented from exaile to
submit songs. Maybe a more elegant solution is possible?
(in any case, at least I can live with the current state)

Next time I'll at the previous place is Monday so I won't bother anyone
with issue till then (using my own player + scrobbler here, also
written in python (and rexx) :-), exaile is used instead of itunes on
mac use at work)

Jack