[mafw-lastfm-devel] New projects: libscrobble and mafw-scrobbler

Felipe Contreras felipe.contreras at gmail.com
Mon Jan 4 10:12:25 EET 2010


On Mon, Jan 4, 2010 at 8:05 AM, Claudio Saavedra <csaavedra at igalia.com> wrote:
> El lun, 04-01-2010 a las 00:33 +0200, Felipe Contreras escribió:
>> Anyway, what's wrong with the fd standard? (.config)
>
> As you probably know, anything inside ~/.osso will be backed up and
> restored by the backup application for free. That's the main reason to
> have moved it there -- allowing users to back up their credentials when
> backing up the device settings.

Ah, makes sense then.

>> I see. I worry that we would be depending on certain mafw versions
>> because of this silly bug. So I think we should rely on the API that
>> we know has always been working correctly (the one MP uses). That's
>> what I do on mafw-scrobbler and the code is actually simpler :)
>
> I don't really know what MP does, since it's proprietary, but it's good
> to know that there's a different way to make it work.

I took a quick look and that's what it seemed to do.

>> That is a feature of the library. It doesn't mean the client *has* to
>> submit them at that interval... the client can choose 10 seconds, or
>> the full track length if it so wishes.
>
> Does this mean that it always set a timeout? I think this is not such a
> great idea (the less timeouts, the better for battery life).  I have
> code in my local repository that removes this timeout and simply
> "flushes" the scrobbling queue on track change. In practice, this means
> that the previously played song is scrobbled when the next track starts
> playing, together with any other tracks that, for whatever reason, were
> not scrobbled previously.

No, it's up to the client. The client can call sr_session_submit() any
time. After a timeout, before adding the next track, etc.

> afair, there shouldn't be much BADSESSION's at all, unless you are
> scrobbling with another player at the same time. Sending the tracks each
> 10 minutes shouldn't be a reason for a BADSESSION.

I was doing it each minute, maybe the server didn't like that.

>> I prefer the name mafw-scrobbler because some people might use it for
>> libre.fm instead. But I don't really care much.
>
> Me neither. If there's a sane migration path we can rename mafw-lastfm
> to mafw-scrobbler. Not sure how to proceed with the mailing list, the
> archives and the garage project. Everything else should be simple to do.

If more people agree that renaming is a good idea perhaps we can ask
the administrators to see how difficult that would be.

Cheers.

-- 
Felipe Contreras


More information about the mafw-lastfm-devel mailing list