Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_enhanced_playcount - Record all song plays and Last.fm scrobbles (Read 129302 times) previous topic - next topic
0 Members and 3 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.

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

Reply #187
You guys have complained about the occasional popups when playing a new track, and marc2k3 decided to step in and save you guys by using a background thread pool which doesn't block the UI, and doesn't display a popup. We're all in his debt.

Let me know if you guys experience any issues with this latest beta.

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

Reply #188
Emigrating from an early version 3 to the newest I seem to have some troubles getting my scrobble playcount. Console says last.fm Error: Login: User required to be logged Found 0 plays in last.fm (since last recorded scrobble) when trying to get last.fm scrobbles. My last.fm username is filled in, is there another login procedure that needs to be done?

The earlier version has no issues getting the data but it's not always correct in getting the right numbers.

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

Reply #189
Emigrating from an early version 3 to the newest I seem to have some troubles getting my scrobble playcount. Console says last.fm Error: Login: User required to be logged Found 0 plays in last.fm (since last recorded scrobble) when trying to get last.fm scrobbles. My last.fm username is filled in, is there another login procedure that needs to be done?

The earlier version has no issues getting the data but it's not always correct in getting the right numbers.
I had talked to @ben-xo about this issue a couple weeks back and this is what he told me:
Quote
"User required to be logged in" means the user has their recent scrobble history set to private. I think that may be a bug for this new method, though - thanks for bringing it up.
Guess they haven't fixed that.

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

Reply #190
Yep, mine were set to private. No more issues when disabling private scrobbling. Do wish to be able to use private in the future (along with this component).

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

Reply #191
Yep, mine were set to private. No more issues when disabling private scrobbling. Do wish to be able to use private in the future (along with this component).
Agreed. If for whatever reason last.fm can't or won't make the change, I might need to replicate the last.fm authorization that foo_scrobble uses. Presumably that would prevent the API calls from failing even if set to private.

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

Reply #192
Hi MordredKLB! Thanks for this excellent plugin, it works a charm!

I think the checkbox for "compare album fields" doesn't work when you disable it. I have at least one song that has scrobbles from both the single and the album version (with the single version receiving significantly more plays)--but regardless of whether I check the box or not, it will only give me the album plays when I attempt to update the playcount. Unless I'm misunderstanding how it works? I'm using v4.0.0b3.

EDIT: I just realized I needed to clear the plays and re-get the data. False alarm!

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

Reply #193
I noticed I seem to be getting the wrong amount om retrieved scrobbles so I did some checks. Just to be clear with "wrong amount" I mean the scrobbles returned are more than what is shown on the last.fm track page. Here's a screen shot of a sample of 28 tracks.



Look at the relevant set of 4 numbers to the right. The first number represent local playcount, the second number is the last.fm playcount (ignore the third and fourth numbers, they are irrelevant to this problem). Those highlighted in red are all wrong retrievals meaning the scrobble number on the track page are actually equal to the local playcount but for some reason when importing using "get last.fm scrobbles" it increments the scrobble with 1. As seen this doesn't happen with all tracks. Of this sample of 28 tracks 12 are wrong. The only consistency is that's always a wrong increment by 1. If the difference between local playcount and scrobble count is +2 and I check the track page the scrobble count is correct.
With this sample about 40% of tracks have wrong scrobble imports. When I clear the scrobbles and do an import again the same tracks have the same issues.
I can't fully trust foo_enhanced_playcount to represent the correct scrobbles since in about 40% of cases it doesn't show the actual scrobble count but always one too high on the bad ones.

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

Reply #194
Can you uncheck the option "Increment Last.fm playcount when %play_count% increments"? It uses some logic that says if the %last_played% > %lastfm_last_played% add 1 to %lastfm_playcount%. The idea is that %lastfm_playcount% would always lag behind %play_count% (which gets incremented 1 minute into a song) so try to keep them in sync.

Could very well be a timezone issue or something though. If disabling that option fixes the problem, can you show me the output of one of the incorrect songs for these values:

%last_played%, %lastfm_last_played%, and %last_played_enhanced%

 

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

Reply #195
I'm ahead of you there, I tested it both with the increment option on and off. Each time clearing it and then again applying get scrobbles. It seems to not make a difference. If the update happens while playing it seems to go ok but I can only check a limited number of tracks like that as it requires a listen of the track. When a track with a bad import, lets say it has 3 actual scrobbles but the import says 4, when it updates (with increment on) it becomes 4 without incrementing to 5  which is then correct.

Also some tracks I have are double (or more) and the +1 import only happens on one version of a particular track. Lets say I have 3 tracks with the exact same tag name. I import the scrobbles and they all say 3 scrobbles, which is correct, except one which says 4. Btw, I leave compare album field uncheck always; never use that option.

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

Reply #196
Just tried it again without increments checked but this time on a smaller batch of files (couple of hundreds instead of 3000+). On smaller batches it seems to be way,more correct but I need to check the tracks individually with the corresponding track page and check for doubles with extra plays to see if it's really correct.

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

Reply #197
That's super weird. Are you using the latest beta or v3.x?

Also, are you saying that the clearing and repulling the values for songs changes the value reported for %lastfm_play_count%? (i.e. sometimes it's correct, sometimes it's not?)

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

Reply #198
Yes sometimes it's correct and sometimes it's not. But it does seem like increments have something to do with it. Leaving it on and doing mass import does indeed create wrong numbers on %lastfm_play_count% and there seems to be no consistency between which tracks get +1 added and which ones don't.


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

Reply #199
I think I found it but now I would like to know if this is normal behavior. These are comparisons between the same tracks. First is with increments off, second it with increments on.

Off:

Note: on this one the few instances where the last.fm playcount is higher it's indeed the correct number if I check the track page.

On:


There was no re-import or clearing. This is just selecting increments and restarting foobar. It was my understanding selecting increments meant the last.fm playcount would increment when it's played. Here it seems to show the incrementation happens on tracks even when they aren't played at all (the fourth number in the set of 4 indicates the amount of days ago it was last played, third one is the amount of days since first played i.e. the age of the track...so all of those tracks haven't been played in a while). So is this normal behavior to increment for some reason without track being played?