HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: gix on 2017-11-21 14:07:55

Title: foo_scrobble
Post by: gix on 2017-11-21 14:07:55
foo_scrobble is a component that scrobbles to last.fm (https://last.fm/).

The old foo_audioscrobbler component is unmaintained and has various issues. This replacement:


URL: https://github.com/gix/foo_scrobble/ (https://github.com/gix/foo_scrobble/)
Use the releases tab (https://github.com/gix/foo_scrobble/releases) to download.

To get started, open foobar's preferences, navigate to "Tools > Last.fm Scrobbling" and use the top button to authorize your client (it provides a tooltip with instructions).

You can post issues/requests here or on github directly.
Title: Re: foo_scrobble
Post by: TheQwertiest on 2017-11-21 14:38:50
@gix:
Component works without problems so far =)

A few feature requests, if you don't mind:
Title: Re: foo_scrobble
Post by: marc2003 on 2017-11-21 14:48:39
Last.fm already have their own guidelines in place which scrobbler authors are supposed to stick to. No matter how long a track is, you shouldn't have to listen for more than 4 minutes for it to count.

https://www.last.fm/api/scrobbling#when-is-a-scrobble-a-scrobble

Quote
When is a scrobble a scrobble?

A track should only be scrobbled when the following conditions have been met:

    The track must be longer than 30 seconds.
    And the track has been played for at least half its duration, or for 4 minutes (whichever occurs earlier.)


Title: Re: foo_scrobble
Post by: EpicForever on 2017-11-21 14:59:14
To keep proper track of feature requests:
This plugin misses certain functionality from original one (blocking tracks from being scrobbled, based on tags). I added my own tag named "LFM_BLOCKED" and when it has value "1" or "yes" tracks are not scrobbled.
Use case:
On my PC there are ripped both my CDs and CDs of my wife. Sometimes I play her music for her from my account and honestly I don't want them to be counted on my LFM profile. Simple tag for all wife's CDs allowed me to achieve this.
Title: Re: foo_scrobble
Post by: TheQwertiest on 2017-11-21 15:02:47
Last.fm already have their own guidelines in place which scrobbler authors are supposed to stick to. No matter how long a track is, you shouldn't have to listen for more than 4 minutes for it to count.
That's nice to know, thanks! Scratch that feature request from the list then =)

PS: Some of the scrobblers I've used on Android ignored those guidelines magnificently though :\

... blocking tracks from being scrobbled, based on tags ...
+1 on this.
Title: Re: foo_scrobble
Post by: marc2003 on 2017-11-21 15:11:04
I've not tested this yet but given it has dialogs for artist/title title formatting, it should support not submitting based on tags like the old component.

Just make sure the value is blank if a certain condition is met and then the component should either not submit or last.fm will refuse the submission because of bad parameters. For example...

Code: [Select]
$ifequal(%rating%,1,,%artist%)
Title: Re: foo_scrobble
Post by: gix on 2017-11-21 15:19:53
Tracks are only scrobbled when a next track starts or playback is stopped (and they are valid according to last.fm's guidelines). This works equally for local and streamed tracks. It would be possible to scrobble earlier but then you have to keep track of the current submission state across restarts or else you may scrobble a long track twice.

To keep proper track of feature requests:
This plugin misses certain functionality from original one (blocking tracks from being scrobbled, based on tags). I added my own tag named "LFM_BLOCKED" and when it has value "1" or "yes" tracks are not scrobbled.
Use case:
On my PC there are ripped both my CDs and CDs of my wife. Sometimes I play her music for her from my account and honestly I don't want them to be counted on my LFM profile. Simple tag for all wife's CDs allowed me to achieve this.

Just curious, where or how was this configured? I don't see this functionality in the old foo_audioscrobbler 1.4.7. Or do you mean another component?

Edit: Ah I see, it was just the fact that it ignores tracks without artist that could be used to do this.
Title: Re: foo_scrobble
Post by: marc2003 on 2017-11-21 15:55:24
Just looking at the readme, you don't need to link to the 64bit C++ redist as foobar2000 and your component are only 32bit.
Title: Re: foo_scrobble
Post by: EpicForever on 2017-11-21 16:47:08
I've made some tests and... I think it is bit vague how this plugin works. It seems that I can not rewind track to make it scrobbled - looks like only track of which 100% of its length is listened is scrobbled, while 50% should be enough accordingly to L.fm rules, even if rewind was used - as long as total time was more than 50% of track.
Plugin says that it scrobbles something (would be nice to have information which exactly track was send - its title - just to make it more clear) and it scrobbles everything, no matter if tags are present or not - and that was confusing for me and that's why I asked for adding special functionality. Last.fm however filters tracks without title for example, so still expression
$if(%skip_lastfm%,,%title%)
put into "Field remappings - Title" causes that tracks with my special tag filled in are not visible in Last.fm . So let's say that requested functionality is de facto present in pipeline, but thanks to filtering applied on Last.fm servers, and not because it is implemented in plugin itself (plugin reports that it was scrobbled). But I suppose it shouldn't work like this. After changing it, it would be great if plugin was differentiating tracks that should not be scrobbled from others and if it was clearly printed in console ("Not scrobbling because: missing tile" or "Not scrobbling - insufficient legth" for example). Similarly to information about track being outside of ML.
Title: Re: foo_scrobble
Post by: gix on 2017-11-21 18:05:21
I've made some tests and... I think it is bit vague how this plugin works. It seems that I can not rewind track to make it scrobbled - looks like only track of which 100% of its length is listened is scrobbled, while 50% should be enough accordingly to L.fm rules, even if rewind was used - as long as total time was more than 50% of track.
I cannot reproduce that. It tracks the total time the track has been played, regardless of any seeks (Same as foo_audioscrobbler).

Plugin says that it scrobbles something (would be nice to have information which exactly track was send - its title - just to make it more clear) and it scrobbles everything, no matter if tags are present or not - and that was confusing for me and that's why I asked for adding special functionality. [...]
Yes I was unaware that people were using these field mappings that way.

I've added a new release (https://github.com/gix/foo_scrobble/releases/tag/v1.1.0) that allows skipping tracks based on a titleformat script and adds a mainmenu command to toggle scrobbling.

Title: Re: foo_scrobble
Post by: EpicForever on 2017-11-21 18:51:51
I've made some tests and... I think it is bit vague how this plugin works. It seems that I can not rewind track to make it scrobbled - looks like only track of which 100% of its length is listened is scrobbled, while 50% should be enough accordingly to L.fm rules, even if rewind was used - as long as total time was more than 50% of track.
I cannot reproduce that. It tracks the total time the track has been played, regardless of any seeks (Same as foo_audioscrobbler).

(...)

OK, but it seems that foo_scrobble plugin requires that total tracked time is at least 100% length of the track. As far as I remember from my experiments foo_audioscrobbler was simply sending scrobble after half of this time was achieved. So I could listen to 20% of the song, then skip next 30% with seekbar AND on 80% of track length, track was scrobbled. And I could advance to next track at let's say - 82%. Still 50% was achieved (in 2 parts - 20% + 32% ) and everything was in accordance with the rules. In foo_scrobble, when I omit just 5% of the track - there is no scrobble. I haven't checked if I can search back and forth and scrobble is done if total listening time sums up to at least 100%. But it does not matter if scrobble should be sent after 50% (or after 4 minutes, whichever occurs first - as mentioned by marc2003).
Title: Re: foo_scrobble
Post by: gix on 2017-11-21 19:06:32
OK, but it seems that foo_scrobble plugin requires that total tracked time is at least 100% length of the track. As far as I remember from my experiments foo_audioscrobbler was simply sending scrobble after half of this time was achieved. So I could listen to 20% of the song, then skip next 30% with seekbar AND on 80% of track length, track was scrobbled. And I could advance to next track at let's say - 82%. Still 50% was achieved (in 2 parts - 20% + 32% ) and everything was in accordance with the rules. In foo_scrobble, when I omit just 5% of the track - there is no scrobble. I haven't checked if I can search back and forth and scrobble is done if total listening time sums up to at least 100%. But it does not matter if scrobble should be sent after 50% (or after 4 minutes, whichever occurs first - as mentioned by marc2003).
As said earlier a track is submitted when the next one starts playing or playback is stopped even if the actual conditions are met earlier. This is no different than the other plugin.
Title: Re: foo_scrobble
Post by: TheQwertiest on 2017-11-22 08:50:00
I've added a new release (https://github.com/gix/foo_scrobble/releases/tag/v1.1.0) that allows skipping tracks based on a titleformat script and adds a mainmenu command to toggle scrobbling.
Thanks!
Title: Re: foo_scrobble
Post by: elia_is_me on 2017-11-22 22:45:07
I've not tested this yet but given it has dialogs for artist/title title formatting, it should support not submitting based on tags like the old component.

Just make sure the value is blank if a certain condition is met and then the component should either not submit or last.fm will refuse the submission because of bad parameters. For example...

Code: [Select]
$ifequal(%rating%,1,,%artist%)
+1
Title: Re: foo_scrobble
Post by: EpicForever on 2017-11-23 20:31:47
@elia_is_me : this functionality is now present in latest release: https://github.com/gix/foo_scrobble/releases/tag/v1.1.0
And in console there is clear message that file was skipped:
foo_scrobble: Skipping track due to missing artist or title
Title: Re: foo_scrobble
Post by: bwat47 on 2017-11-26 18:59:53
fantastic, was getting so sick of the old plugin's bugs (e.g. it would randomly stop scrobbling until you restarted foobar). This seems to work great!
Title: Re: foo_scrobble
Post by: NEMO7538 on 2017-11-27 06:09:45
+1 works like a charm here. Thank Gix !
Title: Re: foo_scrobble
Post by: MordredKLB on 2017-11-28 20:25:12
Trying to request authorization:

foo_scrobble: Requesting auth token
foo_scrobble: Failed to get auth token. (error: -2, <unknown error>)


Nothing is happening in my browser either.
Title: Re: foo_scrobble
Post by: kode54 on 2017-11-29 03:29:57
I see this implements its own scrobble timing rules. The player core provides an interface for reporting a track has been "played", but it follows different rules:

1) Track must play at least 60 seconds.
OR
2) Track must play at least 1/3 of its duration before ending.

See: SDK, play_callback.h, playback_statistics_collector. Implement your own service of this class, and receive a notification when the core has determined a metadb_handle has been played to its own definition of completion. Use your own implementation if you have already written something to the completion of the core service.

The core service observes multiple facets of the play_callback service, including counting the ticking seconds of the file towards the completion. You probably already do this, though. I haven't looked at your code thoroughly. Just enough to know you didn't use the above mentioned service.
Title: Re: foo_scrobble
Post by: gix on 2017-11-29 12:55:12
With the different rules playback_statistics_collector I can't really use this service. If the rules were simply stricter, maybe. A bigger problem is that it doesn't seem to support dynamic track info. Playing a stream just reports the stream name after a minute.
Title: Re: foo_scrobble
Post by: MordredKLB on 2017-11-29 19:10:55
Trying to request authorization:

foo_scrobble: Requesting auth token
foo_scrobble: Failed to get auth token. (error: -2, <unknown error>)

Nothing is happening in my browser either.
I installed this plugin on my work machine. Turns out that for some reason, IT blocks the API request call (I can't explain why Chrome doesn't even open though). Anyway, I switched my wifi to a guest account that for some reason is unblocked, and now I was able to authorize and everything is working perfectly again.
Title: Re: foo_scrobble
Post by: gix on 2017-11-29 20:24:08
I installed this plugin on my work machine. Turns out that for some reason, IT blocks the API request call (I can't explain why Chrome doesn't even open though). Anyway, I switched my wifi to a guest account that for some reason is unblocked, and now I was able to authorize and everything is working perfectly again.
The browser page that should be displayed requires the auth token in the URL, so without any token there's no way to proceed. I admit that the error reporting could be a bit better there.
Title: Re: foo_scrobble
Post by: BPM on 2017-12-03 04:17:36
Does this component support other scrobbling services, such as libre.fm or is it strictly for last.fm only?
Title: Re: foo_scrobble
Post by: eNforcer on 2017-12-05 05:31:14
I haven't been here in forever, but I recovered my account just to say thanks!
Title: Re: foo_scrobble
Post by: jazzthieve on 2017-12-11 04:55:14
For some reason after my antivirus Bitdefender made an update it started catching foo_scrobble.dll as a threat and blocked it. The result is foobar2000 can't access the dll anymore. Strange. All other foobar2000 dll work fine, only foo_scrobble is indicated as a threat.

Bitdefender says: "item was deleted. Threat name: Gen:Suspicious.Cloud.4.Uu8@aya8bPgi. Path: D:\foobar2000_music\user-components\foo_scrobble\foo_scrobble.dll"
Title: Re: foo_scrobble
Post by: EpicForever on 2017-12-11 07:58:33
Looks like bit defender doesn't like the fact that this dll uploads certain data to the Internet... I am guessing it by word 'cloud' invoked in threat name.
Title: Re: foo_scrobble
Post by: kode54 on 2017-12-11 08:09:41
Maybe someone else is insane enough to install their own distribution of vcpkg and install cpprest, so this thing can be built independently and verified?

One of the scanners on VirusTotal seems to think this is a piece of some recent ransomware. Probably a false positive.
Title: Re: foo_scrobble
Post by: gix on 2017-12-13 04:42:13
It certainly is a false positive. Though there obviously is no way for me to prove that. All those vague heuristics are in my experience really unreliable, and of course it's impossible to find out what they actually scan for. And even if I were to release a new clean version you could surmise I was just more careful about hiding it.

Targeting such a small obscure group of users seems like more trouble than it's worth. The good news is, if you are paranoid enough, everything to create your own build is freely available.
Title: Re: foo_scrobble
Post by: kode54 on 2017-12-13 08:20:01
I'm not paranoid. I've gotten false positives for my own work, which all magically went away for that two year period where I paid the Authenticode Cartel for a certificate. $26 for notary public services, to verify my two forms of ID, and $475 to Thawte, bought a handful of people peace of mind. I still think it was a waste, though.
Title: Re: foo_scrobble
Post by: WalterPeck on 2017-12-20 20:07:54
Thank you very much for creating this. It appears to work flawlessly. Just in case it has any influence, I too would appreciate libre.fm functionality to operate in parallel.

Thanks again.
Title: Re: foo_scrobble
Post by: Woodenhead on 2018-01-02 04:56:01
Every time I open foobar, I have to re-authenticate.  And NowPLaying notification fails every time:

foo_scrobble: NowPlaying notification failed (error: 9, Invalid session key. Please re-authenticate.)
Title: Re: foo_scrobble
Post by: gix on 2018-01-03 14:07:24
Every time I open foobar, I have to re-authenticate.  And NowPLaying notification fails every time:

foo_scrobble: NowPlaying notification failed (error: 9, Invalid session key. Please re-authenticate.)
What does the log say when authenticating?
If NowPlaying fails right after, it looks like you don't properly complete the authentication procedure (or it fails).
If it succeeds, does the auth button say "Clear authorization" after closing and reopening the preferences?
If it does, after closing foobar, is there a %appdata%\foobar2000\configuration\foo_scrobble.dll.cfg file? Does anything delete this file?
If it's there, when you view that file in a text editor (Notepad if you don't have anything else), does it end with a string of 32 characters (using only small/uppercase letters, numbers, underscore, like "_AijaIJbA789aA7NMXmanQLKalG8zqDY")?
Title: Re: foo_scrobble
Post by: MordredKLB on 2018-02-15 00:30:40
gix, I don't think I've properly expressed my gratitude for your work here. I've spent a LOT of time working with last.fm scrobbles lately while working on my component, and I've noticed a night and day difference between what last.fm thinks I'm listening to compared to when I was scrobbling with foo_audioscrobbler.

Example: before I heard of your component I listened to Metallica's Binge & Purge album. Last.fm scrobbled most songs from that album (but not all!) with the disc number in the title, i.e. "Binge & Purge (Disc 3)". With zero changes to tags your component correctly scrobbled them with the correct album name.

Because of how awesome this is, you're now the officially supported scrobbler for my foo_enhanced_playcount (https://hydrogenaud.io/index.php/topic,115227.msg952973.html#msg952973) component which pulls last.fm scrobbles.

Keep up the good work.
Title: Re: foo_scrobble
Post by: GrafGantz on 2018-04-27 15:33:18
Couldn't get my Foobar to connect to Last.fm on my new PC with the old plugin, so after some asking around I managed to get here. Grabbed the new plugin and followed the instructions, and got this error message:


I knew I was still on a fairly older version of Foobar (1.3.10), so I figured that that was the problem. Just upgraded to the latest stable version (1.3.17) but I'm still getting the exact same error message. Anyone got any idea what I'm doing wrong? Any help would be appreciated!
Title: Re: foo_scrobble
Post by: GrafGantz on 2018-04-27 16:08:14
Update: found out about the Visual C++ Redistributable for Visual Studio 2015 x64 library and installed it. Error message is gone now, ticked the "enable scrobbling" box in my preferences in Foobar, requested authorization and got this hopeful message from Last.fm:



Strangely enough I still don't see it @ Last.fm in my settings under "applications", and still nothing that I play is scrobbling:



(The Android one that's there is for my phone, I'm trying to add one for my PC)

What am I doing wrong?  :'(
Title: Re: foo_scrobble
Post by: gix on 2018-05-04 11:36:17
What am I doing wrong?  :'(

As the authorization button explains in its tooltip, the authorization process is a three-step process. After granting permission on last.fm you have to go back to foobar2000 and click the button again to finish (and click OK or Apply of course): https://giant.gfycat.com/NippyZigzagBactrian.webm
Title: Re: foo_scrobble
Post by: peersoft on 2018-06-11 12:01:16
Hi,
would it be possible to add a command to scrobble just the selected track? Sometimes I am listening to music from various sources and don't like every song played so have scrobbling turned off. Then, when any track interests me, I would like to scrobble it right now. It could be part of context menu or available for binding to a keystroke. Thanks for feedback.
Title: Re: foo_scrobble
Post by: fluxcore on 2018-06-26 01:27:07
Trying to run this under wine and getting the following error:

Failed to load DLL: foo_scrobble.dll
Reason: Unknown error code (317)

I've installed the vc redist and tried a couple of different reported OS versions under wine.

Any ideas what the 317 code represents?
Title: Re: foo_scrobble
Post by: kode54 on 2018-06-26 08:54:42
https://docs.microsoft.com/en-us/windows/desktop/api/winternl/nf-winternl-rtlntstatustodoserror

Quote
ERROR_MR_MID_NOT_FOUND is returned when the specified NTSTATUS code does not have a corresponding system error code.

Sounds like a Windows NT internal error. Or, in the case of Wine, unimplemented functionality.
Title: Re: foo_scrobble
Post by: fluxcore on 2018-06-27 00:33:17
Trying to run this under wine and getting the following error:

Failed to load DLL: foo_scrobble.dll
Reason: Unknown error code (317)

I've installed the vc redist and tried a couple of different reported OS versions under wine.

Any ideas what the 317 code represents?

Running from command line (dur) showed the following exception:

wine: Call from 0x7b43c04c to unimplemented function concrt140.dll.??0_ReentrantBlockingLock@details@Concurrency@@QAE@XZ, aborting

Bug was fixed in wine 2.3: https://bugs.winehq.org/show_bug.cgi?id=42138

Debian stretch packages wine version 1.8.7-2, or wine-development version 2.0-3, both of which are too old.

stretch-backports packages wine version 3.0.1-2~bpo9+1, so I installed that version and the error goes away, component now seems to work correctly :)
Title: Re: foo_scrobble
Post by: kode54 on 2018-06-27 00:46:43
Yeah, Wine is one of those things you don't really want to use old versions for if you don't have to. This happens to be a case of their implementation of some C runtime library, and an old version having a placeholder just so they can catch reports of unimplemented functions. Those bug reports would be useless now, though, as you usually have to be running either latest stable or Git HEAD to qualify for bug reporting.
Title: Re: foo_scrobble
Post by: Foobrother on 2018-07-08 20:21:46
@gix I have the same issue as @GrafGantz
Code: [Select]
Failed to load DLL: foo_scrobble.dll
Reason: This component is missing a required dependency, or was made for different version of foobar2000.

I have the latest version of Foobar2000 (1.3.19) and I installed Visual C++ Redistributable for Visual Studio 2015 x64 library.
I'm using Windows 7 64 bit (6.1 Build 7601 SP1) up to date.

I found a tool called Dependency Walker and it shows some dependency problems but I have no idea what needs to be installed to get them. You can see a screenshot of the result attached.

Any idea what's wrong?

Title: Re: foo_scrobble
Post by: kode54 on 2018-07-09 01:57:10
Dependency walker has never been able to locate those dependencies, as far as I know, even on systems which have them.
Title: Re: foo_scrobble
Post by: arch21 on 2018-07-09 02:26:52
@gix I have the same issue as @GrafGantz

I have the latest version of Foobar2000 (1.3.19) and I installed Visual C++ Redistributable for Visual Studio 2015 x64 library.
I'm using Windows 7 64 bit (6.1 Build 7601 SP1) up to date.

Any idea what's wrong?

Github readme says:
Prerequisites
You may have to install Visual C++ Redistributable for Visual Studio 2017. Windows 7 also requires Update for Windows 7 (KB2999226) which usually is already installed via Windows Update.
Title: Re: foo_scrobble
Post by: Foobrother on 2018-07-09 18:45:31
Thanks! It turns out I needed the x86 version of Visual C++ Redistributable for Visual Studio.  ::)
Didn't realise foobar2000 was in 32bit
Title: Re: foo_scrobble
Post by: gix on 2018-07-10 21:26:09
I found a tool called Dependency Walker and it shows some dependency problems but I have no idea what needs to be installed to get them. You can see a screenshot of the result attached.
Dependency Walker sadly hasn't been updated in a long time and fails on newer Windows versions that use ApiSets. I suggest using https://github.com/lucasg/Dependencies if you ever have a similar problem in the future.
Title: Re: foo_scrobble
Post by: stealthswor on 2018-09-28 19:10:47
Hello, I can't seem to get my scrobbles to be properly authenticated. I have reset my authentication and it's showing its connected on the main web but it doesn't seem to be working properly.

Code: [Select]
Components loaded in: 0:00.017404
Configuration read in: 0:00.002188
Watching: C:\Users\sword\Music
User Interface initialized in: 0:00.077968
foo_scrobble: Submitting 16 of 16 cached tracks
Loading
Autoplaylists initialized in: 0:00.006920
"Anime" : 0:00.001296
"EDM" : 0:00.000755
"J-Pop" : 0:00.000751
"J-Rock" : 0:00.000762
"Pop" : 0:00.000902
"Rap" : 0:00.000745
"Rock" : 0:00.000783
"VN" : 0:00.000876
Startup time : 0:00.149618
foo_scrobble: Scrobbling failed (error: 9, Invalid session key. Please re-authenticate.)
Opening track for playback: "C:\Users\sword\Music\Rise Against - The Sufferer and the Witness\04. Bricks.mp3"
Opening track for playback: "C:\Users\sword\Music\Rise Against - The Sufferer and the Witness\04. Bricks.mp3"
foo_scrobble: Queuing scrobble (Unauthenticated)
Title: Re: foo_scrobble
Post by: gix on 2018-10-31 20:52:00
Hello, I can't seem to get my scrobbles to be properly authenticated. I have reset my authentication and it's showing its connected on the main web but it doesn't seem to be working properly.

Code: [Select]
Components loaded in: 0:00.017404
Configuration read in: 0:00.002188
Watching: C:\Users\sword\Music
User Interface initialized in: 0:00.077968
foo_scrobble: Submitting 16 of 16 cached tracks
Loading
Autoplaylists initialized in: 0:00.006920
"Anime" : 0:00.001296
"EDM" : 0:00.000755
"J-Pop" : 0:00.000751
"J-Rock" : 0:00.000762
"Pop" : 0:00.000902
"Rap" : 0:00.000745
"Rock" : 0:00.000783
"VN" : 0:00.000876
Startup time : 0:00.149618
foo_scrobble: Scrobbling failed (error: 9, Invalid session key. Please re-authenticate.)
Opening track for playback: "C:\Users\sword\Music\Rise Against - The Sufferer and the Witness\04. Bricks.mp3"
Opening track for playback: "C:\Users\sword\Music\Rise Against - The Sufferer and the Witness\04. Bricks.mp3"
foo_scrobble: Queuing scrobble (Unauthenticated)

What does the log say when you authenticate?
Title: Re: foo_scrobble
Post by: hinafu on 2019-01-04 21:29:51
Thanks a lot for the plug-in!!

This particular radio station I listen switches the title and the artist tags, but the plug-in supports this so it's no problem! (I'll only be able to stream this radio on Foobar but I use other players for my local files anyway).



Thanks again!!  O:)  O:)
Title: Re: foo_scrobble
Post by: addawd on 2019-01-24 15:19:51
can automatic scrobble submitting be disabled? can that be implemented?
Title: Re: foo_scrobble
Post by: rokkokko on 2019-03-31 17:07:58
Hi gix, I have the same problem as stealthswor, it's saying "Unauthenticated" even though I am.
When I dis- and reconnected, the console said this:
Code: [Select]
foo_scrobble: Queuing scrobble (Unauthenticated)
Found 0 plays in last.fm (since last recorded scrobble) of The Donald
foo_scrobble: Requesting auth token
foo_scrobble: Received auth token: l5ddvT183mazWLqa3NmNmd9s2k_mnzQZ
foo_scrobble: Requesting session key
foo_scrobble: New session key: xRnifLPucw9JW3rpdMv9ZNNhRlINfPeQ
foo_scrobble: Queuing scrobble (Unauthenticated)
No errors, no nothing.

Edit: And on startup, this is what it says:
Code: [Select]
foo_scrobble: Scrobbling failed (error: 9, Please re - authenticate.)
Title: Re: foo_scrobble
Post by: Odinos on 2019-03-31 19:32:08
...

Same here.
Title: Re: foo_scrobble
Post by: rokkokko on 2019-04-01 14:58:28
I haven't gotten the opportunity yet to check if it works again, but I've heard that people are having this problem with other scrobblers as well and that last.fm is just having trouble right now, apparently. So the problem is probably on last.fm's part.
Title: Re: foo_scrobble
Post by: loz on 2019-04-02 22:53:21
You may have to reauthorize foo_scrobble again.

via Twitter (https://twitter.com/lastfmstatus)
Quote from: Last.fm Official Response
Good morning everyone, 

Yesterday afternoon we experienced a brief outage at our datacentre which unfortunately caused many connected api keys / active sessions to get automatically logged out. The root issue has now been resolved, but if you've been affected by this, then I'm afraid you will need to reconnect and re-authenticate all of the applications connected to your Last.fm account.  We apologise for any inconvenience caused by this. 

You can view your connected applications in your settings here: https://www.last.fm/settings/applications  If the app(s) you're using are not listed, they will need to be reconnected - please follow each app's instructions for how to do this.  You can also find more information on how to connect to the most popular scrobblers here and here.

  Note that if an app says you're connected, but still doesn't work or gives you an error, you may need to first disconnect it and then re-auth again.  Failing this, you may need to do a fresh reinstall of the app, or reset it (e.g. you may need to do this if you're using the foo_scrobble component, detailed steps can be found here ). 

Please also note that to fix the problem we had to roll back a configuration setting at 1am this morning which would have logged everyone out of everything again -- if you had successfully reconnected all of your apps last night, then I'm afraid you may find that you've been logged out once again, and will need to reconnect one more time. 

Once again, we're sorry for any inconvenience this disruption has caused.
Title: Re: foo_scrobble
Post by: Masza on 2019-05-13 23:25:40
I get
Code: [Select]
foo_scrobble: Scrobbling failed (error: 9, Please re - authenticate.)
on startup.

and
Code: [Select]
foo_scrobble: Queuing scrobble (Unauthenticated)
after a track is played.

I have reauthorized the plugin, no luck. It won't scrobble.
Title: Re: foo_scrobble
Post by: D2Synua on 2019-05-30 19:07:23
How do you actually install this? The read me file is the most useless thing I've seen in my entire life. "Tools > Last.fm Scrobbling" doesn't exist since there's no clear way for me to interpret where to actually place the files from foo_scrobble.
Title: Re: foo_scrobble
Post by: WalterPeck on 2019-05-30 19:09:39
How do you actually install this? The read me file is the most useless thing I've seen in my entire life. "Tools > Last.fm Scrobbling" doesn't exist since there's no clear way for me to interpret where to actually place the files from foo_scrobble.

An easy way is to open up the Foobar2000 preferences and navigate to the Components section. Click the install button and browse to the file. Apply. Restart. Done.
Title: Re: foo_scrobble
Post by: gix on 2019-06-03 18:04:51
How do you actually install this? The read me file is the most useless thing I've seen in my entire life. [...]
No need to be rude. The readme there is mostly for the development side, but I'll change it. You install this component like any other. If you have a default foobar2000 installation, you can just double-click .fb2k-component files and foobar2000 installs them. The second way, also described at "How to install a component" (https://wiki.hydrogenaud.io/index.php?title=Foobar2000:How_to_install_a_component), is to use the Install button in the foobar2000 preferences dialog. You can also just drag the .fb2k-component file onto the component list in the foobar2000 preferences.
Title: Re: foo_scrobble
Post by: Chronial on 2019-06-04 23:32:28
Thx for this nice component :)
Title: Re: foo_scrobble
Post by: mainevent on 2019-06-08 04:54:17
I get
Code: [Select]
foo_scrobble: Scrobbling failed (error: 9, Please re - authenticate.)
on startup.

and
Code: [Select]
foo_scrobble: Queuing scrobble (Unauthenticated)
after a track is played.

I have reauthorized the plugin, no luck. It won't scrobble.

same issue here with Queuing scrobble (Unauthenticated) error
Title: Re: foo_scrobble
Post by: mainevent on 2019-06-08 05:40:29
so i just checked my brother's computer to see if the component was working on his and it is. the difference was that he hadn't updated to 1.3.1 and was still on 1.1.0. tried 1.1.0 on my computer and the Queuing scrobble (Unauthenticated) error went away. it's now scrobbling the way it's supposed to.
Title: Re: foo_scrobble
Post by: Masza on 2019-06-29 12:11:31
I got 1.3.1 working by removing it, installing it again, clearing authorization and requesting it again.
Title: Re: foo_scrobble
Post by: mainevent on 2019-07-01 07:44:21
worked over here too. now why didn't I think of that?
Title: Re: foo_scrobble
Post by: RichF on 2019-08-12 15:37:06
Just tried to install this for the first time and am getting "Could not load component "foo_scrobble.fb2k-component": I/O error (win32 #87)"
Title: Re: foo_scrobble
Post by: dkg on 2019-10-05 19:31:32
Hi.  First, a disclaimer: The issue I'm about to describe occurs on a system running fb2k in wine on funtoo linux.  That said, I have not reproduced the conditions on a Windows system, and may affect those as well.  I recently switched over to foo_scrobble since finding some 800 scrobbles in the submit queue that I didn't know about.  Since changing over, I've had a number of fb2k crashes (which are usually very rare).  I have intermittent ISP connection errors on this system, and the crashes happen when the internet connection is down.  I can only conclude that foo_scrobble is reacting poorly when it can't connect to the last.fm servers.  Has any one else seen this?  Can someone other user here try to reproduce?

Thanks.
Title: Re: foo_scrobble
Post by: jazzthieve on 2019-12-01 18:01:42
Since yesterday I'm getting some strange scrobble behavior. Whenever I edit a tag from a track that's being played the scrobble count adds up on the site (it happens even live when looking at the now scrobbling list on last.fm). With each separate tag edit a scrobble of the playing track gets added.
I'm not really sure if it's the component's fault because I've made several big changes to foobar. I've updated to Foobar 1.5 (coming from 1.4.6) and also updates Columns UI to 1.3.0 beta. 1 (coming from 1.1).

For now I would want to see if anyone can replicate this using the latest foobar with columns ui. The problem is very consistent, I don't edit tags and nothing wrong happens but as soon as I edit a tag on a playing song an extra scrobble is counted. It seems as if each time an edit gets confirmed a scrobble gets send and finished (scrobbel counted) but the current playing track is still in the process of being scrobbled without being finished (until the track actually ends and thus the scrobble counted).
Title: Re: foo_scrobble
Post by: MordredKLB on 2019-12-04 20:17:52
Since yesterday I'm getting some strange scrobble behavior. Whenever I edit a tag from a track that's being played the scrobble count adds up on the site (it happens even live when looking at the now scrobbling list on last.fm). With each separate tag edit a scrobble of the playing track gets added.
I'm not really sure if it's the component's fault because I've made several big changes to foobar. I've updated to Foobar 1.5 (coming from 1.4.6) and also updates Columns UI to 1.3.0 beta. 1 (coming from 1.1).

For now I would want to see if anyone can replicate this using the latest foobar with columns ui. The problem is very consistent, I don't edit tags and nothing wrong happens but as soon as I edit a tag on a playing song an extra scrobble is counted. It seems as if each time an edit gets confirmed a scrobble gets send and finished (scrobbel counted) but the current playing track is still in the process of being scrobbled without being finished (until the track actually ends and thus the scrobble counted).
I'm seeing the exact same thing since updating to foobar 1.5:
Play song A
-> Last.fm shows A is being listened to
Update title of A to B while song is playing
-> Last.fm shows A was scrobbled and B is being listened to.
Update title of B to A
-> Last.fm shows A was scrobbled, B was scrobbled, and A is being listened to
Song Ends
-> Last.fm shows A was scrobbled, B was scrobbled, then A was scrobbled

My guess is that a lifecycle hook was updated for 1.5 and foo_scrobble isn't handling it the same way.
Title: Re: foo_scrobble
Post by: gix on 2019-12-08 19:10:07
foo_scrobble listens for playback notifications. When the current title is edited, the on_playback_edited notification is sent and the track info is updated. But v1.5 now sends a on_playback_dynamic_info_track notification immediately afterwards which, according to its documentation and the behavior until v1.4.8, should only happen when a stream receives new track info. This is also why the current track is scrobbled at that point: foobar said a new track has begun, so the old one is scrobbled.

So this really feels like a foobar2000 bug. If not then it's a weird behavior change. I might be able to remember whether a stream is running, and if not, ignore all on_playback_dynamic_info_track notifications.
Title: Re: foo_scrobble
Post by: MordredKLB on 2019-12-12 21:20:49
foo_scrobble listens for playback notifications. When the current title is edited, the on_playback_edited notification is sent and the track info is updated. But v1.5 now sends a on_playback_dynamic_info_track notification immediately afterwards which, according to its documentation and the behavior until v1.4.8, should only happen when a stream receives new track info. This is also why the current track is scrobbled at that point: foobar said a new track has begun, so the old one is scrobbled.

So this really feels like a foobar2000 bug. If not then it's a weird behavior change. I might be able to remember whether a stream is running, and if not, ignore all on_playback_dynamic_info_track notifications.
Honestly, I think the documentation is correct. on_playback_dynamic_info_track is supposed to be sent when the "stream" has new information... typically that's because the stream you're listening to is now playing a new song, but if the "stream" is just a file, and the info of that file changes I would expect that to be sent. I think it's actually fixing a bug (unless streams and files are handled completely differently internally in which case this does seem bad).

Does on_playback_new_track not get called in the middle of an internet stream?

If you're always getting an on_playback_edited followed by a on_playback_dynamic_info_track can you not just skip the very next dynamic_info_track notification?
Title: Re: foo_scrobble
Post by: Peter on 2019-12-13 08:56:13
Quote
Does on_playback_new_track not get called in the middle of an internet stream?
No, it gets called only when playback has advanced to a new physical location.

Changes of logical tracks within the same URL produce on_playback_dynamic_info_track.
In foobar2000 v1.5, I made on_playback_dynamic_info_track also called after tag editing to propagate new information, without realizing the side effects. Version 1.5.1 will correct this. No need to change your components.
Title: Re: foo_scrobble
Post by: MordredKLB on 2019-12-13 18:11:58
Quote
Does on_playback_new_track not get called in the middle of an internet stream?
No, it gets called only when playback has advanced to a new physical location.

Changes of logical tracks within the same URL produce on_playback_dynamic_info_track.
In foobar2000 v1.5, I made on_playback_dynamic_info_track also called after tag editing to propagate new information, without realizing the side effects. Version 1.5.1 will correct this. No need to change your components.
Awesome news! Thanks, Peter.
Title: Re: foo_scrobble
Post by: Peter on 2019-12-16 10:55:00
Fixed in 1.5.1 beta 2.
Title: Re: foo_scrobble
Post by: Kursebi on 2020-01-22 21:24:50
I found an issue related to "Only submit tracks in media library" function. I’ll illustrate it step by step:
1.   Foobar is closed.
2.   I take a file from the folder which is not belongs to media library and put it in my media library folder.
3.   I double-click this file to run it with Foobar (as it is my default music app)
4.   File is not scrobbling
As far as I understand, that happens because the plugin starts immediately, but it takes some time for Foobar to index the file as part of media library. So the plugin just not consider the file us part of media library. That is why scrobbling not happen. If I play this file again – it scrobbles. I think to fix this issue foo_scrobble should be set to scrobble files just if they located in the media library folders, no matter were they already indexed by foobar or not.

It woud be great if you can fix that, and thanks for the plugin.
Title: Re: foo_scrobble
Post by: netant on 2020-01-29 18:32:18
if getting this error recently, anf figured nothing is scrobbled after 19 December 2019.
Code: [Select]
foo_scrobble: Scrobbling failed (error: 9, Please re - authenticate.)

i have authenticated in last.fm application & its correctly listed in application section of last fm. still no luck.

im using the latest v1.3.1, and no further update available  form this page https://github.com/gix/foo_scrobble/releases

any suggestion ?
Title: Re: foo_scrobble
Post by: netant on 2020-02-01 13:58:13
Update: made it work today, finally after many tries to authenticate in last.fm site. 
every time i deleted last authorised key before next try it worked in 3rd try.
Title: Re: foo_scrobble
Post by: roeigabriel on 2020-03-03 20:13:35
i have this issue:
it authorizes normally, but then i click apply and ok and then immediately when i go back to preferences it deauthorizes
it was working fine before
Title: Re: foo_scrobble
Post by: jekehu on 2020-03-27 02:19:39
Hi, the foo_scrobble plugin isn't working. Based on the console text, it seems like the plugin doesn't even load:

Code: [Select]
Components loaded in: 0:00.050567
Configuration read in: 0:00.003643
foobar2000 v1.4 [portable]
Watching: C:\Users\Jeremy\Music
User Interface initialized in: 0:00.194318
Loading
Startup time : 0:00.299359
Opening track for playback: "C:\Users\Jeremy\Music\orbital 2\07 Walk Now....wav"

Please help me get it to work.
Title: Re: foo_scrobble
Post by: PaluGrandiBoy on 2020-04-12 15:47:59
i have this issue:
it authorizes normally, but then i click apply and ok and then immediately when i go back to preferences it deauthorizes
it was working fine before

You have to go to the same button again and click complete authorization before clicking Apply :)
Title: Re: foo_scrobble
Post by: drico1 on 2020-06-27 09:40:39
Hi, I'm very new to fb2k and I'm having a lot of trouble w this component.  Every time I try to install the foo_scrobble_master folder to the components library, the only compenent that seems to install is the foobar_input_validator.  Am i doing something wrong? Sorry if this is very noob, I cant find any other way to link my last.fm w foobar.
Title: Re: foo_scrobble
Post by: marc2k3 on 2020-06-27 10:27:43
Seems like you've downloaded the source code. You want the fb2k-component file from this page....

https://github.com/gix/foo_scrobble/releases

https://wiki.hydrogenaud.io/index.php?title=Foobar2000:How_to_install_a_component
Title: Re: foo_scrobble
Post by: dypsis on 2020-09-20 05:05:05
i have this issue:
it authorizes normally, but then i click apply and ok and then immediately when i go back to preferences it deauthorizes
it was working fine before

You have to go to the same button again and click complete authorization before clicking Apply :)
That caught me out too.
Title: Re: foo_scrobble
Post by: bewinter on 2020-09-30 11:24:12
i have this issue:
it authorizes normally, but then i click apply and ok and then immediately when i go back to preferences it deauthorizes
it was working fine before

You have to go to the same button again and click complete authorization before clicking Apply :)

Arrrrrrgh! I've stumbled over this obstacle as well and wondered for quite some time what's going wrong! Damn, that post should be highlighted or voted up in some way.

I was certain after the positive last.fm site's response of "You have granted permission to foo_scrobble to use your Last.fm account." that authentication was done, I wouldn't have to bother with anything more and did not expect the button I pressed to surprisingly change its function completely, i.e. shapeshifting into a button for the "next stage". Well, I did not consciously read the tooltip either, my bad. That everyday's haste fucks up my focus too much.

Maybe the UI would be even more foolproof if there were plain three buttons referring to the three possible states, enabled and disabled in their useful combinations, of course:
* Request Auth.
* Finalize/Complete Auth.
* Reset/Clear Auth

But well, being a software developer myself, it is astounding how stupid people (me!) can be when fumbling around with a piece of simple software, increasing the demand for foolproofness to extremes. Even being aware of that obviously does not save you from the occasional embarrassment  ::)
Title: Re: foo_scrobble
Post by: artins90 on 2020-10-08 17:28:29
Hi,

I just bought an album called "unknown".
Here is the album listing on lastfm: https://www.last.fm/music/Reona/unknown

I suspect either foo_scrobble or lastfm might have some issues with fields containing "unknown" as a value.
Here is what shows up in the console:

Opening track for playback: "E:\Users\Artins\Music\ReoNa - unknown - 03 - Untitled world.flac"
Resampler (SRC): 96000 Hz sample rate is excluded
in on_playback_new_track()
Fetching new art
on_metadb_changed()
lastfm: []
foobar: [1602160764000]
Querying last.fm: http://ws.audioscrobbler.com/2.0/?method=user.getTrackScrobbles&api_key=a1685abe5265b93cf2be4a70d181bf6b&user=artins90&artist=ReoNa&track=Untitled world&limit=200&format=json&page=1
Found 0 scrobbles in last.fm of "Untitled world"
on_metadb_changed() 
I think the strange entry is "lastfm: []".

All the other tracks are scrobbling just fine, even other tracks from the same artist but from different albums. I made sure the files are included in my monitored library.

I don't know if it's a lastfm issue or a foo_scrobble issue.
By the way, the same artist has another album called "null" which works just fine.
Title: Re: foo_scrobble
Post by: jazzthieve on 2020-10-08 17:52:00
It would make sense to think foo_scrobble was at fault if it wouldn't scrobble "null", it doesn't make much sense with "unknown". Thinking about that I wonder if it's possible to do some sql injection by scrobbling  8) .
It's precaution by lastfm: https://support.last.fm/t/track-filter-list-unknown-scrobbles/776/3
Title: Re: foo_scrobble
Post by: artins90 on 2020-10-08 19:33:54
Thank you for solving the mystery, it looks like they have already added this album to the whitelist queue.
Title: Re: foo_scrobble
Post by: spiro on 2020-11-05 11:31:58
Thank you for this component. :)

One issue I'd like to report: if you have "Send now playing notifications" ticked on, it displays the "Scrobbling now" track on your Last.fm profile even if you have scrobbling turned off. Expected behavior would be to display the "now playing" track only if scrobbling is also turned on. I can't think of any instance when a user would prefer to send "now playing" notifications about tracks they are not scrobbling. Because of this, I currently have the "now playing" option permanently off... until it gets fixed, I hope. :)
Title: Re: foo_scrobble
Post by: Air KEN on 2020-11-23 03:14:40
Hi.
Scrobble 1.4.0.20572 crash on Linux Mint.
(Linux 5.4.0-54-generic x86_64 Mint 20 Ulyana 64bit MATE 1.24.0 Wine 5.0)
foobar2000 v1.6.2 DUI Output: Default : Primary Sound Driver or Default : Pulseaudio (TEAC USB DAC HA-P50)

crash reports.7z
https://www.sendspace.com/file/j8z9y4

version 1.3.1 is no problem
Windows 10 Home v2004 is is no problem.

Thanks.
Title: Re: foo_scrobble
Post by: Air KEN on 2020-11-23 11:06:38
I didn't solve.

Re-install
Winetricks > Visual C++ redistributable for Visual Studio 2013, 2015
or
Wine Visual C++ redistributable for Visual Studio 2015
https://askubuntu.com/questions/852407/wine-visual-c-redistributable-for-visual-studio-2015
Title: Re: foo_scrobble
Post by: gix on 2020-11-24 22:04:29
Any more info? Any output from wine?

I just tested with Ubuntu 18.04 LTS:
Code: [Select]
tyr:~/mdev/foo_scrobble/test/foobar2000_v1.6.2_wine:master> wine foobar2000
0009:err:ole:CoGetClassObject class {d9b3211d-e57f-4426-aaef-30a806add397} not registered
0009:err:ole:CoGetClassObject no class object {d9b3211d-e57f-4426-aaef-30a806add397} could be created for context 0x1
0009:err:ole:CoGetClassObject class {d9b3211d-e57f-4426-aaef-30a806add397} not registered
0009:err:ole:CoGetClassObject no class object {d9b3211d-e57f-4426-aaef-30a806add397} could be created for context 0x1
0009:err:ole:CoGetClassObject class {1968106d-f3b5-44cf-890e-116fcb9ecef1} not registered
0009:err:ole:CoGetClassObject class {1968106d-f3b5-44cf-890e-116fcb9ecef1} not registered
0009:err:ole:create_server class {1968106d-f3b5-44cf-890e-116fcb9ecef1} not registered
0009:err:ole:CoGetClassObject no class object {1968106d-f3b5-44cf-890e-116fcb9ecef1} could be created for context 0x17
wine: Call from 0x7b43c8bc to unimplemented function msvcp140.dll.?uncaught_exceptions@std@@YAHXZ, aborting

After that installing the VC++ 2015 runtime:
Code: [Select]
tyr:~/mdev/foo_scrobble/test/foobar2000_v1.6.2_wine:master> winetricks vcrun2015

With that I could authorize and scrobble successfully.
foobar2000 1.6.2
foo_scrobble 1.4.0
wine 3.0 (Ubuntu 3.0-1ubuntu1)
Title: Re: foo_scrobble
Post by: Air KEN on 2020-11-25 01:19:09
Hi gix.
Thanks for the answer, but didn't solve.
Re-install again.
Visual C++ 2015, 2017, 2019 runtime
Scrobble 1.4.0.20572: It crashes on setup and play.

crash reports - 02.7z(Another PC)
https://www.sendspace.com/file/pesgaf

version 1.3.1 is no problem at all.

Machine specifications:
OS: wine-5.0 (Ubuntu 5.0-3ubuntu1), on: Linux / 5.4.0-54-generic
CPU: Intel(R) Celeron(R) CPU B830 @ 1.80GHz, features: MMX SSE SSE2 SSE3 SSE4.1 SSE4.2
CPU threads: 2
Audio: Out: DAC-HA200 - USB Audio
Title: Re: foo_scrobble
Post by: gix on 2020-11-25 21:12:41
I can reproduce it with Mint and Wine 5. Checking.
Title: Re: foo_scrobble
Post by: gix on 2020-11-25 23:34:55
Can you try with Wine 5.22?
Title: Re: foo_scrobble
Post by: Air KEN on 2020-11-26 02:54:10
Thanks for the advice.
Updated to Wine 5.22.
Can be sclobbling.

Many thanks gix.
Title: Re: foo_scrobble
Post by: frogworth on 2021-01-20 13:19:11
I'm on the latest version, foo_scrobble-1.4.0.20572, and the plugin still loses authorization frequently.
It's authorized and scrobbling fine, until it isn't. And then usually it takes a while until I think to check what's been scrobbled recently and realise, and have to go and reauthorize and let it scrobble all the cached stuff.

Is this a known bug?
Title: Re: foo_scrobble
Post by: frogworth on 2021-02-24 23:37:03
I'm on the latest version, foo_scrobble-1.4.0.20572, and the plugin still loses authorization frequently.
It's authorized and scrobbling fine, until it isn't. And then usually it takes a while until I think to check what's been scrobbled recently and realise, and have to go and reauthorize and let it scrobble all the cached stuff.

Is this a known bug?

@gix are you aware of this problem? Or is it only me?
Title: Re: foo_scrobble
Post by: gix on 2021-03-02 23:03:58
I'm on the latest version, foo_scrobble-1.4.0.20572, and the plugin still loses authorization frequently.
It's authorized and scrobbling fine, until it isn't. And then usually it takes a while until I think to check what's been scrobbled recently and realise, and have to go and reauthorize and let it scrobble all the cached stuff.

Is this a known bug?

@gix are you aware of this problem? Or is it only me?

No idea what that is. When last.fm responds with "access denied" foo_scrobble clears the authorization (the docs are unclear about the exact meaning of the last.fm error codes). Maybe this error is only intermittent. I've never experienced this myself.
Title: Re: foo_scrobble
Post by: frogworth on 2021-03-23 22:47:38
No idea what that is. When last.fm responds with "access denied" foo_scrobble clears the authorization (the docs are unclear about the exact meaning of the last.fm error codes). Maybe this error is only intermittent. I've never experienced this myself.

Could it be that "access denied" doesn't necessarily mean the authorization has been lost? I don't have any network errors I know about, but could the component be made less eager to clear authorization, by pausing and trying again a certain number of times first?

Just looking for anything that could help, as currently it's super frustrating.
Title: Re: foo_scrobble
Post by: tomstephens89 on 2021-06-29 16:47:43
Works for me 1.6.7 beta14.
Title: Re: foo_scrobble
Post by: frogworth on 2021-06-30 06:14:12
An update was made - got a reply to my ticket on Github - and it's been working for me ever since :)
Title: Re: foo_scrobble
Post by: olethefirst on 2022-07-15 00:54:54
I'm having an issue wih this extension: it scrobbles only files from the folders which are added to foobar2000 library. When I play a file that's not in the library folder, the extension simply doesn't scrobble anything.
Title: Re: foo_scrobble
Post by: frogworth on 2022-07-15 05:04:04
I'm having an issue wih this extension: it scrobbles only files from the folders which are added to foobar2000 library. When I play a file that's not in the library folder, the extension simply doesn't scrobble anything.

In the settings, there's an option to "Only submit tracks in the media library"
Title: Re: foo_scrobble
Post by: olethefirst on 2022-07-15 18:31:43
I'm having an issue wih this extension: it scrobbles only files from the folders which are added to foobar2000 library. When I play a file that's not in the library folder, the extension simply doesn't scrobble anything.

In the settings, there's an option to "Only submit tracks in the media library"
Oh, thank you! I had no idea about that.
Title: Re: foo_scrobble
Post by: InchPerfect on 2022-10-25 21:27:48
Is there any way of telling Last.fm to ignore any text in square brackets in the artist or track title fields?
Title: Re: foo_scrobble
Post by: marc2k3 on 2022-10-26 10:03:48
Dealing with multiple sets of [] would be very difficult but you can ignore the opening [ and all text after it with this...

Code: [Select]
$puts(pos,$strstr(%title%,'['))$ifgreater($get(pos),0,$trim($substr(%title%,0,$sub($get(pos),1))),%title%)
Title: Re: foo_scrobble
Post by: InchPerfect on 2022-11-22 18:18:20
Dealing with multiple sets of [] would be very difficult but you can ignore the opening [ and all text after it with this...

Code: [Select]
$puts(pos,$strstr(%title%,'['))$ifgreater($get(pos),0,$trim($substr(%title%,0,$sub($get(pos),1))),%title%)
Oh, I missed your reply. Thanks very much.

Do I put that in the Title box here: https://i.imgur.com/Q9EYAjG.png?
Title: Re: foo_scrobble
Post by: InchPerfect on 2022-11-22 18:23:25
Dumb question but what are Now Playing Notifications?

Where do the notifications show up? What do they tell you? I mean I know what I'm playing because I'm playing it, lol.

I want to know whether to tick the box in the settings - https://i.imgur.com/xxhTsKJ.png - but I can't find anywhere on the web that explains what Now Playing Notifications are.
Title: Re: foo_scrobble
Post by: hans-jürgen on 2022-12-07 14:53:55
I guess this setting refers to the shown "Scrobbling now" track on your Last.fm user profile in your Recent Tracks list. It uses a different API request than the usual one for actually scrobbling the track.
Or maybe I'm wrong, and it rather means the normal Windows desktop notification in the lower right corner when the next track starts playing - and scrobbling.  ;)
Title: Re: foo_scrobble
Post by: gix on 2022-12-14 00:14:15
I guess this setting refers to the shown "Scrobbling now" track on your Last.fm user profile in your Recent Tracks list. [...]

Correct. See also https://www.last.fm/api/scrobbling#now-playing-requests
Title: Re: foo_scrobble
Post by: InchPerfect on 2022-12-18 06:33:18
I guess this setting refers to the shown "Scrobbling now" track on your Last.fm user profile in your Recent Tracks list. It uses a different API request than the usual one for actually scrobbling the track.
Or maybe I'm wrong, and it rather means the normal Windows desktop notification in the lower right corner when the next track starts playing - and scrobbling.  ;)
I guess this setting refers to the shown "Scrobbling now" track on your Last.fm user profile in your Recent Tracks list. [...]

Correct. See also https://www.last.fm/api/scrobbling#now-playing-requests
Thank you both. I think I've got it. 👍
Title: Re: foo_scrobble
Post by: NewLeaf42 on 2023-01-21 07:50:26
I'm having trouble getting this to work on Linux with Wine after the last update. I just get this message in the console every time I try to request authorization:

Code: [Select]
0024:fixme:urlmon:InternetBindInfo_GetBindString not supported string type 20

...and then this once it fails:

Code: [Select]
03d4:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
03d4:fixme:heap:RtlSetHeapInformation handle 00000000, info_class 1, info 00000000, size 0 stub!
03d4:fixme:heap:RtlSetHeapInformation handle 00000000, info_class 1, info 00000000, size 0 stub!
03e4:fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
03e4:fixme:service:QueryServiceConfig2W Level 6 not implemented
03e4:fixme:service:QueryServiceConfig2W Level 6 not implemented
03e4:fixme:service:QueryServiceConfig2W Level 6 not implemented
03e4:fixme:service:QueryServiceConfig2W Level 6 not implemented
03e4:fixme:service:QueryServiceConfig2W Level 6 not implemented
0024:fixme:urlmon:InternetBindInfo_GetBindString not supported string type 20
0024:fixme:urlmon:InternetBindInfo_GetBindString not supported string type 20

Tried reinstalling dotnet40 and vcrun2015 to my prefix so far. Didn't seem to help
Title: Re: foo_scrobble
Post by: fuo on 2023-01-26 16:05:24
Hey, I seem to have run into a weird situation. Using foobar2000 2.0 beta 19, foo_scrobble-1.6.0.22456.

At some point a few days ago a silent track played (called "Kid606 - Dramatic Pause of Silence to Signify the End of the Album and Beginning of Additional Songs Included on the CD to Make People Feel Better About Buying the CD Instead of the Vinyl Version"). Playing it back again, it seems to skip to the next track after 5 seconds, despite a duration of 0:30.000 (1 323 000 samples). Bitrate 1kbps, format FLAC.

I think I may have had repeat (track) on, and accidentally left it playing silently for a good while. It has caused tens of thousands of scrobbles to be logged to my account. Newly played songs aren't updating on my last.fm due to the huge backlog. An example of what's happening in the console:

Code: [Select]
foo_scrobble: Submitting 50 of 23329 cached tracks
foo_scrobble: Submitting 50 of 23279 cached tracks
foo_scrobble: Submitting 50 of 23229 cached tracks
foo_scrobble: Submitting 50 of 23179 cached tracks
foo_scrobble: Submitting 50 of 23129 cached tracks
foo_scrobble: Submitting 50 of 23079 cached tracks
foo_scrobble: Submitting 50 of 23029 cached tracks
foo_scrobble: Submitting 50 of 22979 cached tracks
foo_scrobble: Submitting 50 of 22929 cached tracks
foo_scrobble: Submitting 50 of 22879 cached tracks
foo_scrobble: Submitting 50 of 22829 cached tracks
foo_scrobble: Submitting 50 of 22779 cached tracks
foo_scrobble: Submitting 50 of 22729 cached tracks
foo_scrobble: Submitting 50 of 22679 cached tracks
foo_scrobble: Submitting 50 of 22629 cached tracks
foo_scrobble: Submitting 50 of 22579 cached tracks
foo_scrobble: Submitting 50 of 22529 cached tracks
foo_scrobble: Submitting 50 of 22479 cached tracks
foo_scrobble: Submitting 50 of 22429 cached tracks
foo_scrobble: Submitting 50 of 22379 cached tracks
foo_scrobble: Submitting 50 of 22329 cached tracks
foo_scrobble: Submitting 50 of 22279 cached tracks
foo_scrobble: Submitting 50 of 22229 cached tracks
foo_scrobble: Submitting 50 of 22179 cached tracks
foo_scrobble: Submitting 50 of 22129 cached tracks
foo_scrobble: Submitting 50 of 22079 cached tracks
foo_scrobble: Submitting 50 of 22029 cached tracks
foo_scrobble: Submitting 50 of 21979 cached tracks
foo_scrobble: Submitting 50 of 21929 cached tracks
foo_scrobble: Submitting 50 of 21879 cached tracks
foo_scrobble: Submitting 50 of 21829 cached tracks
foo_scrobble: Submitting 50 of 21779 cached tracks
foo_scrobble: Submitting 50 of 21729 cached tracks
foo_scrobble: Submitting 50 of 21679 cached tracks
foo_scrobble: Submitting 50 of 21629 cached tracks
foo_scrobble: Submitting 50 of 21579 cached tracks
foo_scrobble: Submitting 50 of 21529 cached tracks
foo_scrobble: Submitting 50 of 21479 cached tracks
foo_scrobble: Submitting 50 of 21429 cached tracks
foo_scrobble: Submitting 50 of 21379 cached tracks
foo_scrobble: Submitting 50 of 21329 cached tracks
foo_scrobble: Submitting 50 of 21279 cached tracks
foo_scrobble: Submitting 50 of 21229 cached tracks
foo_scrobble: Submitting 50 of 21179 cached tracks
foo_scrobble: Submitting 50 of 21129 cached tracks
foo_scrobble: Submitting 50 of 21079 cached tracks
foo_scrobble: Submitting 50 of 21029 cached tracks
foo_scrobble: Submitting 50 of 20979 cached tracks
foo_scrobble: Submitting 50 of 20929 cached tracks
foo_scrobble: Submitting 50 of 20879 cached tracks
foo_scrobble: Submitting 50 of 20829 cached tracks
foo_scrobble: Submitting 50 of 20779 cached tracks
foo_scrobble: Submitting 50 of 20729 cached tracks
foo_scrobble: Submitting 50 of 20679 cached tracks
foo_scrobble: Submitting 50 of 20629 cached tracks
foo_scrobble: Submitting 50 of 20579 cached tracks
foo_scrobble: Submitting 50 of 20529 cached tracks
foo_scrobble: Submitting 50 of 20479 cached tracks
foo_scrobble: Submitting 50 of 20429 cached tracks
foo_scrobble: Submitting 50 of 20379 cached tracks
foo_scrobble: Submitting 50 of 20329 cached tracks
foo_scrobble: Scrobbling failed (error: 29, Your IP has made too many requests in a short period.)
foo_scrobble: Submitting 50 of 20329 cached tracks
foo_scrobble: Scrobbling failed (error: 29, Your IP has made too many requests in a short period.)
foo_scrobble: Submitting 50 of 20329 cached tracks
foo_scrobble: Scrobbling failed (error: 29, Your IP has made too many requests in a short period.)

This huge backlog of scrobbles are stopping new ones from getting through. I tried reinstalling the plugin to try to clear the scrobble cache, but that didn't work. Is it something I can clear myself to fix the issue, or do I just have to wait for the backlog to clear (whilst manually deleting the erroneous scrobbles from my last.fm)? Thanks.
Title: Re: foo_scrobble
Post by: hans-jürgen on 2023-01-26 18:11:29
Your account will be blocked for 24 hours after submitting more than 3k scrobbles per day, that is probably the reason why you cannot repeat scrobbling on the same day. I don't know if you could still delete the cached scrobbles in the foobar plugin though, so this problem will not occur anymore after your account works normally again.

To delete the submitted scrobbles in your library at once you could simply delete the track in your library from the track page.
Title: Re: foo_scrobble
Post by: marc2k3 on 2023-01-26 22:40:02
You can browse the configuration folder inside your foobar2000 profile folder

%appdata%\foobar2000\configuration for normal installs
install folder\profile\configuration for portable installs.

Pretty sure foo_scrobble.dll.cfg will contain your cache so you can delete it when fb2k is closed. But it also contains all your settings/authorisation state so you'd lose that as well and you would need to set it up again.
Title: Re: foo_scrobble
Post by: fuo on 2023-01-28 07:26:47
Thanks to you both for the info. Deleting the .cfg removed the cache and I've removed the scrobbles from my account, all's good now. :)
Title: Re: foo_scrobble
Post by: fivefivefiver on 2023-03-03 12:38:45
Hey, quick question - does this support scrobbling from iPods? I'm probably the only person in the world still using one (when my iPod isn't waiting for replacement parts to arrive from aliexpress) but the old plugin stopped doing that years ago and I'd really love the ability to scrobble from my iPod again.
Title: Re: foo_scrobble
Post by: Blushock on 2023-03-16 09:10:00
How does this differ from https://www.foobar2000.org/components/view/foo_audioscrobbler

They seem functionally the same...
Title: Re: foo_scrobble
Post by: frogworth on 2023-03-16 09:13:16
This is an updated version - see the last page of the other thread (https://hydrogenaud.io/index.php/topic,44320.1200.html).
Title: Re: foo_scrobble
Post by: erusyns on 2023-07-21 18:54:32
Code: [Select]
Opening track for playback: "E:\flac\Porter Robinson - Nurture (2021) {SICX-154} [CD]\04. Wind Tempos.flac"
Using decoder shim instead of DSP: Skip Track
Resampler (RetroArch): 44100 Hz sample rate is excluded
Querying last.fm: http://ws.audioscrobbler.com/2.0/?method=user.getRecentTracks&api_key=a1685abe5265b93cf2be4a70d181bf6b&user=erusyns&limit=200&format=json&from=0&page=1
on_metadb_changed(): 0 handles, fromhook: undefined
[eslyric]https://azlyrics.com/lyrics/porterrobinson/windtempos.html
on_metadb_changed(): 7 handles, fromhook: true
Querying last.fm: http://ws.audioscrobbler.com/2.0/?method=user.getTrackScrobbles&api_key=a1685abe5265b93cf2be4a70d181bf6b&user=erusyns&artist=Porter Robinson&track=Wind Tempos&limit=200&format=json&page=1
Found 0 scrobbles in last.fm of "Wind Tempos"

Every track i played found 0 scrobbles in last.fm. How to fix this
Title: Re: foo_scrobble
Post by: samuelawachie on 2023-11-04 13:03:26
Hi.  First, a disclaimer: The issue I'm about to describe occurs on a system running fb2k in wine on funtoo linux.  That said, I have not reproduced the conditions on a Windows system, and may affect those as well.  I recently switched over to foo_scrobble since finding some 800 scrobbles in the submit queue that I didn't know about.  Since changing over, I've had a number of fb2k crashes (which are usually very rare).  I have intermittent ISP connection errors on this system, and the crashes happen when the internet connection is down.  I can only conclude that foo_scrobble is reacting poorly when it can't connect to the last.fm servers.  Has any one else seen this?  Can someone other user here try to reproduce?

Thanks.

Hello. I’m on Linux too and using Foobar 2.0 on Wine. Everything’s doing okay, and scrobbling has been working fine except that the component forces Foobar to close if I’m not connected to the internet.
Took me a while to know it was this plug-in causing this, as the theme I use means I have a lot of components installed and I finally isolated the component causing my crash whenever I’m not online
I’ve tried to disable scrobbling by unticking the option in Preferences, but it still just closes Foobar when I play any track at all without proper internet connection or internet dropout.
Did you find a fix?
How do I stop this component from doing this without going the route of reinstalling and removing it each time I want to use Foobar without internet?
Alternatively, if there’s a way you to disable a component on an instance of Foobar run session, that could also work for the times I don’t need scrobbling. Or just a way to make it not force-close Foobar when it can’t reach the Last.fm servers
Title: Re: foo_scrobble
Post by: gix on 2023-11-04 23:13:51
Any crash dump? I cannot reproduce this using foobar2000 v2.0 and wine 5.0 on ubuntu.
Title: Re: foo_scrobble
Post by: samuelawachie on 2023-11-05 13:54:11
Any crash dump? I cannot reproduce this using foobar2000 v2.0 and wine 5.0 on ubuntu.

I don't know where Foobar stores its crash dumps on Linux when the application has been installed using PlayOnLinux (I don't know if this is different to using Wine itself).
This is a list of the components that https://help.foobar2000.org/troubleshooter prompted me to copy from my Preferences/Components page:
Core (2023-10-13 11:31:44 UTC)
    foobar2000 core 2.1 preview 2023-10-13
foo_converter (2023-10-13 11:32:16 UTC)
    Converter 2.1 preview 2023-10-13
foo_discogs (2020-04-11 04:21:32 UTC)
    Discogs Tagger 2.23
foo_dsp_eq (2023-10-13 11:32:18 UTC)
    Equalizer 1.2.3
foo_dsp_std (2023-10-13 11:32:22 UTC)
    Standard DSP Array 2.1 preview 2023-10-13
foo_enhanced_playcount (2023-03-22 21:56:32 UTC)
    Enhanced Playback Statistics 5.0.0
foo_fileops (2023-10-13 11:32:26 UTC)
    File Operations 2.1 preview 2023-10-13
foo_freedb2 (2023-10-13 11:32:30 UTC)
    Online Tagger 0.9
foo_input_std (2023-10-13 11:32:10 UTC)
    CD Audio Decoder 2.1 preview 2023-10-13
    FFmpeg Decoders 6.0
    FLAC Decoder 1.4.3
    Monkey's Audio Decoder 10.23
    Opus Decoder 1.4
    Standard Input Array 2.1 preview 2023-10-13
foo_jscript_panel (2016-09-27 10:24:14 UTC)
    JScript Panel 1.1.6
foo_keep_queue (2010-11-12 03:28:44 UTC)
    Keep Queue 0.3.5
foo_multisource (2022-03-18 16:06:22 UTC)
    Multi-source lyrics 0.56
foo_navigator (2015-10-13 10:36:27 UTC)
    Navigator 0.8
foo_playcount (2023-03-14 13:03:58 UTC)
    Playback Statistics 3.1.5
foo_playlist_attributes (2023-05-21 19:21:58 UTC)
    Playlist Attributes 1.0.3
foo_playlisthistory (2011-05-04 12:14:36 UTC)
    Playlist History 0.1.6
foo_queuecontents (2019-12-10 16:25:39 UTC)
    Queue Contents Editor 0.5.1
foo_quicksearch (2016-02-08 11:08:38 UTC)
    Quick Search Toolbar 3.6
foo_removeplayed (2007-09-02 13:15:30 UTC)
    Remove played Files 1.4.0
foo_scrobble (2022-09-05 23:43:00 UTC)
    Scrobble 1.6.0.22456
foo_skip (2023-09-15 08:15:02 UTC)
    Skip Track 1.38
foo_spider_monkey_panel (2022-01-13 21:29:00 UTC)
    Spider Monkey Panel 1.6.1
foo_stop_after_queue (2023-03-16 13:06:06 UTC)
    Stop After Queue 1.2.3
foo_ui_columns (2023-09-26 21:19:08 UTC)
    Columns UI 2.1.0
foo_ui_std (2023-10-13 11:31:56 UTC)
    Album List 2.1 preview 2023-10-13
    Decoding Speed Test 2.1 preview 2023-10-13
    Default User Interface 2.1 preview 2023-10-13
    File Integrity Verifier 2.1 preview 2023-10-13
foo_uie_albumlist (2023-09-30 19:35:20 UTC)
    Album list panel 2.0.1
foo_uie_biography (2010-12-13 20:38:26 UTC)
    Biography View 0.4.2.4
foo_uie_elplaylist (2010-10-30 21:51:16 UTC)
    ELPlaylist 0.6.9.1.2(beta)
foo_uie_esplaylist (2011-05-29 09:36:21 UTC)
    EsPlaylist 0.1.3.9
foo_uie_lyrics3 (2016-06-16 18:38:10 UTC)
    Lyric Show Panel 3 0.5
foo_uie_panel_splitter (2010-05-27 11:03:02 UTC)
    Panel Stack Splitter 0.3.8.3(alpha)
foo_uie_vis_channel_spectrum (2010-03-07 08:23:55 UTC)
    Channel Spectrum panel 0.17.2
foo_uie_vis_peakmeter_spectrum (2010-03-07 08:24:47 UTC)
    Peakmeter Spectrum Visualisation 0.2.0.0 beta
foo_uie_wsh_panel_mod (2013-03-14 00:33:28 UTC)
    WSH Panel Mod 1.5.6
foo_unpack (2023-10-13 11:32:38 UTC)
    ZIP/GZIP/RAR/7-Zip Reader 2.1 preview 2023-10-13
foo_vis_vumeter (2015-08-20 22:25:55 UTC)
    VU Meter 2013-02-16
foo_wave_seekbar (2014-02-08 21:37:10 UTC)
    Waveform seekbar 0.2.45


I'm on wine-6.0.3 (Ubuntu 6.0.3~repack-1+zorin2)
Foobar version: Version 2.1 Preview 2023-10-13 [x86]

You don't even have to be playing anything sometimes. Once you open the application without prior connection to the Internet, it closes within about 4 secs. If you're looking at the Console before it closes, you see:

Components loaded in: 0:00.175264
Configuration read in: 0:00.019364
foobar2000 v2.1 preview 2023-10-13 x86 [standard]
Watching: G:\
Shell hook registration failure: 0
Playlist #1 loaded in 0:00.000397
Playlist #2 loaded in 0:00.002002
Playlist #3 loaded in 0:00.001780
Playlist #4 loaded in 0:00.000510
Playlist #5 loaded in 0:00.001845
Playlist #6 loaded in 0:00.000382
Playlist #7 loaded in 0:00.001099
Refresh visuals
JScript Panel (DarkOne4Mod - Cover Panel v1.0 build20160929 by tedGo, includes partial code by T.P Wang): Parsing file "C:\Program Files\foobar2000\themes\DarkOne4Mod\Others\JScripts\DarkOne4Mod - Global Script.js"
JScript Panel (DarkOne4Mod - Cover Panel v1.0 build20160929 by tedGo, includes partial code by T.P Wang): initialized in 1179 ms
Playlist view initialised in: 0.012 s
JScript Panel (DarkOne4Mod - Seekbar Panel v1.0 build20160929 by tedGo): Parsing file "C:\Program Files\foobar2000\themes\DarkOne4Mod\Others\JScripts\DarkOne4Mod - Global Script.js"
JScript Panel (DarkOne4Mod - Seekbar Panel v1.0 build20160929 by tedGo): initialized in 34 ms
JScript Panel (DarkOne4Mod - Rating Panel v1.0 build20160929 by super-gau and tedGo): Parsing file "C:\Program Files\foobar2000\themes\DarkOne4Mod\Others\JScripts\DarkOne4Mod - Global Script.js"
JScript Panel (DarkOne4Mod - Rating Panel v1.0 build20160929 by super-gau and tedGo): initialized in 39 ms
JScript Panel (DarkOne4Mod - Menu Panel v1.0 build20161002 by tedGo, based on a sample by T.P Wang): Parsing file "C:\Program Files\foobar2000\themes\DarkOne4Mod\Others\JScripts\DarkOne4Mod - Global Script.js"
JScript Panel (DarkOne4Mod - Menu Panel v1.0 build20161002 by tedGo, based on a sample by T.P Wang): Parsing file "C:\Program Files\foobar2000\themes\DarkOne4Mod\Others\JScripts\DarkOne4Mod - Global Drawbutton Object.js"
JScript Panel (DarkOne4Mod - Menu Panel v1.0 build20161002 by tedGo, based on a sample by T.P Wang): initialized in 38 ms
JScript Panel (DarkOne4Mod - Display Panel v1.0 build20160929 by super-gau and tedGo, includes partial codes by fbuser, Br3tt and T.P Wang): Parsing file "C:\Program Files\foobar2000\themes\DarkOne4Mod\Others\JScripts\DarkOne4Mod - Global Script.js"
JScript Panel (DarkOne4Mod - Display Panel v1.0 build20160929 by super-gau and tedGo, includes partial codes by fbuser, Br3tt and T.P Wang): initialized in 38 ms
JScript Panel (DarkOne4Mod - Control Panel v1.0 build20161002 by tedGo, based on a sample created by T.P. Wang, using partial code by Br3tt): Parsing file "C:\Program Files\foobar2000\themes\DarkOne4Mod\Others\JScripts\DarkOne4Mod - Global Script.js"
JScript Panel (DarkOne4Mod - Control Panel v1.0 build20161002 by tedGo, based on a sample created by T.P. Wang, using partial code by Br3tt): Parsing file "C:\Program Files\foobar2000\themes\DarkOne4Mod\Others\JScripts\DarkOne4Mod - Drawbutton Object.js"
JScript Panel (DarkOne4Mod - Control Panel v1.0 build20161002 by tedGo, based on a sample created by T.P. Wang, using partial code by Br3tt): initialized in 41 ms
User Interface initialized in: 0:02.772994
Loading
foo_enhanced_playcount: loaded
FFmpeg version: 6.0
Startup time : 0:03.173612
myLibrary init
Album list panel: initialised in 0.062 s
myInitStageCallback init
Library initialized after 0:03.363852

Then once I start playing a file, this gets added to the console:

Opening track for playback: "G:\FYDE - Lost in Daydreams.mp3"
Using decoder shim instead of DSP: Skip Track
Automatic resampling: using Resampler (dBpoweramp/SSRC): 44100 Hz, Resampler (RetroArch): 44100 Hz
Device: Pulseaudio
Mix format: 44100 Hz / 32-bit float / 2 channels (0x3)
Sending stream: 44100 Hz / 32-bit float / 2 channels (0x3)
Seekbar: taking GDI path.
Seekbar: Frontend initialized.
Found 0 scrobbles in last.fm of "Lost in Daydreams"
foo_scrobble: NowPlaying notification failed (bad exception)

And then about 4 secs later, it closes by itself. Upon restart of the application, it shows that Foobar didn't close properly last time out, and whether you want to open in SafeMode, and the other 2 options. Opening in SafeMode without any component of course doesn't yield any error. Having the internet connection yields no error. Loading the component and not having internet, it just closes the application.

I don't know where else I can find the Crash Log because I'm new to Linux and still finding my way around after many years on Windows.
Title: Re: foo_scrobble
Post by: padampadam on 2024-01-13 15:02:43
This plugin has been unreliable the last three days for me, anyone else experiencing the same issue?
There's no cache output on the console so I guess my scrobbles are gone for good?

By the way I tried foo_audioscrobbler and it didn't work as well. AIMP works like a charm though so it isn't a server issue.
Title: Re: foo_scrobble
Post by: 2tec on 2024-01-13 17:37:52
This plugin has been unreliable the last three days for me, anyone else experiencing the same issue?
There's no cache output on the console so I guess my scrobbles are gone for good?
I also have had issues with handshakes. Restarting resolves it. "Audioscrobbler: Handshake successful."

Audioscrobbler: Submission succeeded.
Audioscrobbler: Submitting 10 of 61 cached tracks...
...
Audioscrobbler: Submitting 10 of 11 cached tracks...
Audioscrobbler: Submission succeeded.
Audioscrobbler: Submitting track...
Audioscrobbler: Submission succeeded.

There is also https://github.com/phw/foo_listenbrainz2 ~ "ListenBrainz 2: Listen submitted OK!"

of course, one needs a ListenBrainz account ~ https://listenbrainz.org/
Title: Re: foo_scrobble
Post by: padampadam on 2024-01-13 19:40:31
This plugin has been unreliable the last three days for me, anyone else experiencing the same issue?
There's no cache output on the console so I guess my scrobbles are gone for good?
I also have had issues with handshakes. Restarting resolves it. "Audioscrobbler: Handshake successful."

Audioscrobbler: Submission succeeded.
Audioscrobbler: Submitting 10 of 61 cached tracks...
...
Audioscrobbler: Submitting 10 of 11 cached tracks...
Audioscrobbler: Submission succeeded.
Audioscrobbler: Submitting track...
Audioscrobbler: Submission succeeded.

There is also https://github.com/phw/foo_listenbrainz2 ~ "ListenBrainz 2: Listen submitted OK!"

of course, one needs a ListenBrainz account ~ https://listenbrainz.org/

Isn't this output from foo_audioscrobbler which is now outdated? (see: https://hydrogenaud.io/index.php/topic,44320.0.html)
foo_scrobbler doesn't give me any output on the console.
Only this after I listen to something:

foo_scrobble: Submitting track

And nothing happens on my profile.
Title: Re: foo_scrobble
Post by: 2tec on 2024-01-13 21:21:25
yes, it is foo_audioscrobbler v.1.5.0. on foobar v 1.6.71 because i'm old and update agnostic until something is dysfunctional and i'm nowhere near the bleeding edge. thankfully, i can leave that to the youngsters who still have enthusiasm and i can then read all about their exciting misadventures over a cup of joe ;~)

omne vetus novatur

Title: Re: foo_scrobble
Post by: padampadam on 2024-01-14 15:47:01
A quick update:

I gave it another try today and noticed that while some tracks scrobbled, some did not.
After analysing my tracks with foo_texttools and comparing with what's submitted to foo_scrobble, it turned out to be a %musicbrainz_trackid% issue.

I use beets for library organization and I fetch all my tags from Deezer, By doing so, the %musicbrainz_trackid% is overwritten by the Deezer track/album ID, which obviously isn't compatible with Last.fm. Clearing the field solved my problems and all is good.

tl;dr - Check if your tag for %musicbrainz_trackid% is a valid musicbrainz ID. If not, clear the field for it on the foo_scrobble options.