Skip to main content
Topic: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles (Read 17649 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles

Reply #175
is it possible to offer a enhanced %played_per_day% to show  3 or 4 digits after the decimal point?
now  %played_per_day% shows only 2 digits is meaningless for most songs, as I have 10k songs with more than 10 years in library.

Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles

Reply #176
I only know of softplaylists which still works, but is not being developed anymore. It actually builds playlists based on tags and similar artists, rather than making the data available for titleformatting (or JScript). Anyway - again not a feature request - but in my ideal world there would be a separate plug-in all about lastfm  ;)
Haha, yeah. The problem as I see it is there's a way to get the list of all Loved tracks, but it's not possible to take that list and apply it back to all songs in your library.

i.e. I can start playing "Song 1" which is loved in last.fm, pull the list of loved tracks from last.fm and mark "Song 1" in the library as loved.
I can't pull the list of all last.fm loved tracks and then find "Song 1", "Song 2", "Song 3" in the library and mark them as loved. The comparison has to be done for each track in the library to determine whether it is loved or not.

That seems to limit the usefulness a little bit.

Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles

Reply #177
is it possible to offer a enhanced %played_per_day% to show  3 or 4 digits after the decimal point?
now  %played_per_day% shows only 2 digits is meaningless for most songs, as I have 10k songs with more than 10 years in library.
I didn't even know this was a thing. Seems like very low utility, but I can add that and at least another decimal point. When you're getting into < 1 play every 3 years I'm not sure .0001 is much more useful than just calling it 0 :D

Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles

Reply #178
Thx very much.
I don't care about those  0.0001 and 0.
a lot of songs with even 90 counts showed with all same 0.01 and 0.02 really disappointed me, you know I just found out how useful %played_per_day% is yesterday but my foo_playcount first run is in 2008

is it possible to offer a enhanced %played_per_day% to show  3 or 4 digits after the decimal point?
now  %played_per_day% shows only 2 digits is meaningless for most songs, as I have 10k songs with more than 10 years in library.
I didn't even know this was a thing. Seems like very low utility, but I can add that and at least another decimal point. When you're getting into < 1 play every 3 years I'm not sure .0001 is much more useful than just calling it 0 :D

Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles

Reply #179
The problem as I see it is there's a way to get the list of all Loved tracks, but it's not possible to take that list and apply it back to all songs in your library.

Yes, for this very special case, returning lastfm info as a playlist makes more sense. That's what I did with softplaylist at the beginning, and than mass-edited the playlist tracks (I store this information in a real custom id3 field, because I want it to be file-related). Since then, I only use softplaylists to synchronize my loves and bans from player to web and not viceversa.

Retrieving lastfm data as a playlist doesn't make sense for similar artists and tags, though, not for me at least. These should rather be stored in tag-related virtual fields and formatted as JSON objects, like the %lastfm_played_times%. It really looks like a natural addition to your component.
I'm late

 

Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles

Reply #180
Good evening,

I might have a challenge for you :P

I'm in love with the new last.fm feature (subscribers only) to manually edit scrobbles (possible since yesterday?) and I was wondering how the component's dealing with those manual edits.

Unfortunately it seems like the data cannot be received for the edit songs. For example: I've edited 32 scrobbles of one song, which had an annoying typo all the time. On last.fm the correct change was smoothly taking into account, but after I used the functions to clear and get the last.fm scrobbles with your component in foobar, I just have gotten the value 0.

Do you know why this is happening? Is it possible to programm a work around in this case? How do you plan to deal with it in the future?

Thanks for your advice in advance!

Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles

Reply #181
@Smakaveli I'm 99% positive this is because this component currently relies on hitting an endpoint which uses a legacy backend database that does not replicate those edits. When I release the updated version of this component (it's basically ready to go, but I want to clean up some stuff) it should work seamlessly.

Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles

Reply #182
Beta 1 version using the new last.fm API. Please let me know any issues you find here.

Changelog
  • Uses new API Endpoint which retrieves scrobbles by song, and not by artist
  • No more freezing foobar due to too many metadb_refreshes killing JScript panels (thanks to Marc2k3 for the help here!)
  • NOTE: Due to the new API pattern matching for song titles must be exact (or match a last.fm rename pattern)

Right now there's no throttling other than the natural throttling due to slow API calls. Please don't hammer Last.fm by requesting scrobbles for 10k songs at once. I'll build throttling in if it's a problem. I'll add some restrictions and throttling as needed once I figure out the best course of action there.

Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles

Reply #183
thank you once again for your quick support. The beta works like a charm and fixes my problem I've had. :)

Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles

Reply #184
Playcounts for Artists or Tracks with '&' in the name/title are not updating properly in Beta 1 when importing.

Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles

Reply #185
Playcounts for Artists or Tracks with '&' in the name/title are not updating properly in Beta 1 when importing.
Great catch. It looks like '&' and '#' are the only characters that need to be escaped. Tried it out with a bunch of other common punctuation, and multibyte characters and had no issue.

See if you have any problems with this version:

Re: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles

Reply #186
I figured it was something simple like that. I'll let you know if I have any issues with it when I install it later today. Thanks.

 
SimplePortal 1.0.0 RC1 © 2008-2019