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

Jonathan Martens jonathan at snetram.nl
Wed Jan 4 20:25:34 UTC 2012


On 4-1-2012 16:24, Paul Harrison wrote:
> I really wish I hand the time and motivation to have finished this by
> now but TBH I'm not
> finding the MythTV project to be a very pleasant project to be
> associated with since the
> changing of the guard so to speak or maybe it's just me that changed:(

I am pleased that you have returned from the hiatus and am pleased to 
see you still have attention for MythMusic.

> 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



More information about the mythtv-dev mailing list