[mythtv] MythMusic LastFM support offering support (was Re: [mythtv-commits] mythtv/master commit: 8e2982436 by Paul Harrison (paul-h))

Paul Harrison mythtv at sky.com
Fri Jan 6 23:29:15 UTC 2012


On 04/01/12 20:25, Jonathan Martens wrote:
> On 4-1-2012 16:24, Paul Harrison wrote:
>> Support LastFM and Spotify APIs
>>
>> I've not looked at this at all yet. I do know it's been asked about many
>> times though.
> I am willing to help on this but would need some guidance on that as I 
> am not very familiar with the MythMusic source (yet).
>
> I have thought about this a little, and was thinking more or less a long 
> the line of a ScrobbleManager like class that interacts with the 
> database and maintaince the queue of tracks to scrobble as well as 
> performing the now playing announcement.
>
> Once a succesfull hadshake is made now playing announcements and 
> scrobbles can be sent until errors occur that should be handled 
> according to the LastFM api.
>
> To get that working properly I think we could hook stuff up using some 
> additional events but I am unsure how to start on this in the current 
> MythMusic tree.
>
> I am thinking that we would need at least the following signals when:
> 1. a new track is started, so we can:
>     a) announce now playing information
>     b) set a timer to trigger the actual scrobble when eligable
>        according to the LastFM API.
> 2. a track is skipped and/or stopped to reset the scrobble timer under
>     1. b)
>
> I would also need to set up a development system, which I currently not 
> have, any pointers for that?
>
> Kind regards,
>
> Jonathan
>

I must admit I'm still a bit ignorant at exactly what LastFM is to know
how best to integrate it. I've done a little reading of the LastFM
website and api docs. Do I take it you just want to integrate the
scrobbling part of the api?

Paul H.



More information about the mythtv-dev mailing list