Help - Search - Members - Calendar
Full Version: Statistics Plugin ?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2
Peter
There have been repeated reports of foobar2000 crashes on shutdown caused by foo_audioscrobbler (the one I got today is from 1.2.1a), apparently in libcurl.dll (I can provide more info if needed), also causing playlists / config files to be lost. I know that I'm being cruel here and that it will do more bad than good to some people, but I consider putting foo_audioscrobbler.dll on dll ban list if this doesn't stop (apparently crashes are related to site being down).
mai9
well, I registered in audioscrobbler and I am just waiting for the dll to work with foobar.

I don't think I'll move to winamp to use this plugin rolleyes.gif
russ
Well, nothing's going to work at the moment since the site is down.

This bug doesn't mean that the plugin doesn't work, it just means that in some rare condition it will crash on exit.
phwip
The plugin isn't working with the new 0.8 betas of foobar2000 though. I guess something in the SDK has changed. It crashes almost immediately on startup of foobar2000.
Sebert
QUOTE(phwip @ Feb 6 2004, 09:05 AM)
The plugin isn't working with the new 0.8 betas of foobar2000 though.  I guess something in the SDK has changed.  It crashes almost immediately on startup of foobar2000.

For me it works with beta1 to beta7.
radfaraf
QUOTE(Sebert @ Feb 6 2004, 08:44 PM)
QUOTE(phwip @ Feb 6 2004, 09:05 AM)
The plugin isn't working with the new 0.8 betas of foobar2000 though.  I guess something in the SDK has changed.  It crashes almost immediately on startup of foobar2000.

For me it works with beta1 to beta7.

Same with me mine has never caused a crash yet.. smile.gif
phwip
Hmm... now I have reenabled audioscrobbler I don't seem to be getting this problem with the beta I have installed now (6). So sorry for any confusion caused.

I still have the crash log files so I will see whether I can reproduce it. I don't know if it was specific to an older beta, or to specific other third party components with audioscrobbler and the betas in general.
russ
You can get the new plugin here: http://static.audioscrobbler.com:8000/plug...obbler1.2.2.exe

It won't do much until the servers are back up unfortunately, but it'll fix the crashing (if it still occurs, I think I fixed it by changing something on the server).

Russ
russ
Oops sorry, this version needs msvcr71.dll again. Will fix tomorrow.
phwip
Thanks for the update russ.

QUOTE(Ganymed @ Jan 21 2004, 02:11 PM)
QUOTE(anathema @ Jan 20 2004, 11:49 PM)
an option to only submit songs that are in foobar's database would be awesome.

I support this suggestion smile.gif

I would like add my voice to the clamour (well, two people) requesting this option.
russ
New version.

Not quite "tomorrow", but what can I say, I was busy wink.gif. Includes the "not in db" option.
trance
blink.gif Thanks, I didn't have problems with the previous version but newer is newer!
Sebert
And down is down (again)! ohmy.gif
russ
Yeah, sorry sad.gif. We're not having much luck at the moment...
Sebert
Nice new Headline:
Audioscrobbler - at least as stable as windows 95 smile.gif
Linkin
sorry for bringing this thread up again, but i would like some offline statistics from foobar, just like audioscrobbler, but offline. like stated in the first post in this thread something like madStats Statistics Plugin for winamp...i would like madStats Statistics Plugin for foobar.

is anybody interested in coding something? my c++ knowledge is not neraly sufficient for this.
Ruby
QUOTE(Linkin @ Apr 19 2004, 09:39 PM)
sorry for bringing this thread up again, but i would like some offline statistics from foobar, just like audioscrobbler, but offline.

I don't know what exactly madStats does (never used it), but the Play Counter plugin does some offline statistics.
Linkin
QUOTE(Ruby @ Apr 20 2004, 08:28 AM)
QUOTE(Linkin @ Apr 19 2004, 09:39 PM)
sorry for bringing this thread up again, but i would like some offline statistics from foobar, just like audioscrobbler, but offline.

I don't know what exactly madStats does (never used it), but the Play Counter plugin does some offline statistics.

I know...but I would like something that analyzes the results of a day/week/month of the play counter plugin. Like this
tboehrer
QUOTE
I know...but I would like something that analyzes the results of a day/week/month of the play counter plugin. Like this


One option might be to have an "DB export" feature. You could then manipulate the data in a spreadsheet (or something). That would be a quick way at least. If the export could be coupled with foo_scheduler, you could at least have some automation.
Paranoia
Tbh, although the Audioscobbler boys might not want to take it in this direction, surely a simple modification to the script could get Audioscrobbler to store data offline aswell, which is a step in the right direction - a script to analyse this data would need to be written somewhere tho.

Steve
teetee
QUOTE(Paranoia @ Apr 20 2004, 05:33 PM)
Tbh, although the Audioscobbler boys might not want to take it in this direction, surely a simple modification to the script could get Audioscrobbler to store data offline aswell, which is a step in the right direction - a script to analyse this data would need to be written somewhere tho.

Steve

The next version of the AS protocol is going to store your stats offline in an SQLite database. I'm sure that once that is in place, someone will write an offline analyser for the stats.
Paranoia
smile.gif Thought it was a good direction to take. cool.gif Will look forward to it.

Steve
Linkin
i think it can be done with textwriter plugin also. there just has to be someone willing to create a script or whatever that fetches the data from the textfile evertytime it updates, and maybe write the textfile when song is played 50%.
amppa
I've done something like this for my own use.. I'm using foo_text to write down some statistics of each track I play and have coded a small PHP/MySQL page to analyze that and show the results. Some screenshots I took: http://pelit.koillismaa.fi/fb2k/statsp/.

I'm actually quite pleased with it. The script fetches album covers and lyrics automatically when needed, have made it work for mostly only metal though. Don't know if I should take that option out if I release the script? Wouldn't want to create too much "wrong" traffic on the covers and lyrics sites...

So, anyone interested? As said, this would require you to have PHP and MySQL but they should be fairly simple to get to work. Oh well, these are my settings for foo_text so you could start collecting statistics even though the script is not yet available..

Enable on Quit, New track
Write mode: Append
Path: c:\foo_play_history.txt
Strings:

Playing:
[%tracknumber%]$char(9)
[%artist%]$char(9)
[%album%]$char(9)
[%title%]$char(9)
[%_length_seconds%]$char(9)
[%date%]$char(9)
[%genre%]$char(9)
[%__bitrate%]$char(9)
[%_system_date% / %_system_time%]$char(9)
[%country%]

On quit:
[quit]
Linkin
is it possible to use this offline somehow?
amppa
QUOTE(Linkin @ Apr 20 2004, 09:29 PM)
is it possible to use this offline somehow?

Yes, it is expressly ment to be used offline. You just have to run a web and mysql server on your own computer. For example, OmniHTTPd is a light freeware web server that comes with PHP support. MySQL is free to use, too.
Linkin
can you explain how to do this all? i would be very thankful... wink.gif
dano
i'm also very interested in this script amppa
radfaraf
I would very much like that. I love the online statistics services but don't like my statistics being held hostage by them if they go down hill or lose them. crying.gif
DXX
I'm also interested in seeing this stats. Is it possible for you to provide your php code and mysql database table structures for this? It looks amazing. I understand that some part of it like getting album covers may not work. But hopefully I could tinker with it and get it to work.

Thanks,
DXX
amppa
Sorry for not answering.. Yes, I'll release it when I find some time and motivation to clean it up. Just too hard to set up currently.. Dano was my test case, took something like 10 PM's to get it running tongue.gif It's like that when you code just for your own fun...

However, it's (surprise, surprise..) exam season again, so this might take some weeks. Or I just might get bored with them and finish it sooner. We'll see. The foo_text instructions above are valid, though, so you can just start using them if you're interested.

edit: typo
amppa
OK, I hope someone is still interested despite the delay.

First, note this: these files are ment to be used ONLY LOCALLY, there might be huge security holes so I suggest you don't create a public site with this script.

I originally made the page for my own fun so the code is quite a spaghetti. There are some commenting, hope they help a bit if you want to modify the code smile.gif So, do not expect anything well structured, this is just "code as you feel", with only few functions and classes.

I assume you have a web server with php capabilities and a MySQL server, running on localhost. All can be acquired as freeware. In PHP, I have notices disregarded,
error_reporting = E_ALL & ~E_NOTICE

1) Get http://pelit.koillismaa.fi/fb2k/foo_stats.zip and unzip to some folder your web server can use.

2) Create a MySQL database called "fb2k", or change the database name on "functions.inc", row 7. There are defined MySQL user and password, too.

3) Make sure you have a foo_text play history file. I have told the required formatting earlier on this thread. Add as a first row
[1 playback history start: 04/06/19 02:40]
(Or, well, whatever you want as long there is [1 ... ]).

4) Run http://localhost/your_foo_stats_folder/sta...hp?initialize=1. There might be a PHP error.

5) Click "Full analyze".

Should work fine now. Well, I guess I have forgotten something so just report the errors and I'll try to see what's going wrong tongue.gif

I did not include cover and lyrics functions. This is beacause my own functions work mostly for metal music only and I don't want to create any unnecessary traffic on the cover and lyrics sites. If you can do PHP, the functions can be added to "album.inc", rows 170 and 189, function calls on rows 89 and 107. When fetched, the cover image and lyrics will be saved locally, so PHP needs write access to "covers" folder. Furthermore, PHP needs write access to "config.txt", too.

PM me if you think you can assure me that I should send the album.inc-that-works-only-for-metal.

Urgh. I've taken a couple of beers and a lot of coffee so please just bear if there is some inconsistency and report clearly what's missing smile.gif

edit: Oh, the default location for the play history file is C:\foo_play_history.txt. Can be changed in the config.txt, directly or via the "Settings" page.

edit: Oh2, in the settings page (or directly in config), define starting index to be 1 instead of 3. Fixed now in the zip file, too.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.