[gpodder-devel] Using Audioscrobbler Log Files To Mark Shows As Played

  • From: thp at perli.net (Thomas Perl)
  • Date: Fri, 28 Mar 2008 14:38:53 +0100

Hello, Nick!

On Thu, 2008-03-27 at 20:54 -0500, nikosapi wrote:
> A new gPodder release is out so it's time to start adding features ;)
> If you have a player that is capable of running the Rockbox firmware[1] you 
> can enable logging everything you play to an audioscrobbler portable player 
> format logfile[2]. (Go to: Settings-->General Settings-->Playback-->Last.fm 
> Log and set it to "Yes")
> I wrote a patch that is able to use this logfile to mark episodes that you've 
> listened to as played in gPodder while you're syncing. For this to work you 
> must be using gPodder's tag update feature (set update_tags to True) because 
> the audioscrobbler logfile only reports the metadata of the tracks you've 
> listened to not an actual filename.

Great work! I've looked through your patch and cleaned up some things
(moved the find_mount_point function to gpodder.util, rename the config
option, so people know this is related to mp3 players, re-structure some
other parts of the code, move the list of possible file names to the
class instead of having it per-instance, etc..). I have attached the
updated patch, please have a look at it and try it out if it doesn't
break anything.

I'll merge the patch to SVN trunk if everything works and you are happy
with the patch. I think this could really be an useful feature. One
question remains, however: Which program is supposed to "clean" that
file, or is Rockbox keeping it down to a maximum size, so it doesn't
grow endlessly?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpodder-r643-scrobbler_v2.patch
Type: text/x-patch
Size: 5231 bytes
Desc: not available

Other related posts: