RedFox
Oct 22 2005, 14:22
QUOTE(gboy515duo @ Oct 22 2005, 08:43 PM)
Is there any way you can have it say the percentage of plays?
IE: If a song has 10 plays and foobar has played 200 songs ever, what would the could be?
Is there a tag/component i can add to count all songs as a general tag to the dB?
I guess the total number of songs played would not be in the DB, because it's not related to a file in particular.
It would be possible to get that value by processing the whole DB and adding all PLAY_COUNT values. Maybe you could do that with foo_lua.
Not exactly what you asked for, but if you like charts, you can check the audioscrobbler plugin, which will allow you to check your personal charts on
last.fm site, get recommendations and share with the community.
The plugin is available
here.
If you want to go through a proxy, AFAIK this
version works better.
gboy515duo
Oct 22 2005, 22:11
Yeah. I use last.FM/audiocrobbler already. I'm just looking for like ... current stats up to the second shite and whatever.... anyway i'll check out foo_lua.
Is it possible to have foo_lua run every night at lets say 2 AM to add up the playcount values so i have it for the day?
InFlame
Nov 27 2005, 17:16
how can i get a date format like this:
28.11.05
dd.mm.yy
and separate
00:15 Uhr
mm:hh Uhr
my current code:
$get(spacer2)$get(info)Zuletz gespielt: $get(text)$if(%LAST_PLAYED%,%LAST_PLAYED%,'nie')$char(10)
would be great if you could help me!!
tia
check out the codesnippets in the first post in this thread - among other things, they also tell you how to split up the timestamp into year, month, day, hour, min, sec...... afterwards, you can reformat it as you like:
http://www.hydrogenaudio.org/forums/index....showtopic=31530
InFlame
Nov 28 2005, 02:20
QUOTE(Lyx @ Nov 28 2005, 01:42 AM)
check out the codesnippets in the first post in this thread - among other things, they also tell you how to split up the timestamp into year, month, day, hour, min, sec...... afterwards, you can reformat it as you like:
http://www.hydrogenaudio.org/forums/index....showtopic=31530thanks, i will try it....
ArcticRSXS
Dec 10 2005, 16:33
I dont know how to get the time and date to show up....it just comes up as "Last Played: ? on ?"
anyhelp
---edit---
never mind...i figured it out.
I try new beta foo_playcount for Foobar 9b13.
This is very bad release. All old statistics is lost, also tag first_played not supported.
I don't convert play_counter to play_count by using tags operation avalable with right mouse click.
Now I wait release from author of plugin.
foosion
Dec 19 2005, 05:08
The playcount component offered on the beta page has nothing to do with any that was made for 0.8.3. The new one was made by zZzZzZz. While it may be sufficient for some users, it was only intended as a test for a new API that allows components to add titleformatting fields and functions to arbitrary tracks. For example it does not import playback statistics stored in any form - including those used by the playcount component(s) for 0.8.3. If you require a full-featured playcount component, I suggest you wait for someone to create one when the 0.9 SDK is released, i.e. when 0.9 goes final.
QUOTE(#foobar2000)
<DEATH> bah. no playcount == whining. playcount implementation == more whining.
...
<DEATH> i added the API and that's as far as my interest in adding this goes
<DEATH> and even wrote test implementation to make sure that it actually works
This was from a discussion on the foobar2000 IRC channel yesterday. Note: DEATH = zZzZzZz = foobar2000 author.
hunted
Dec 19 2005, 05:26
yay! thank you Peter (and foosion), I appreciate the work into the API. This is the only feature I really wanted in 0.9, this will help all sorts of plugins (ipod, playcount, etc...)
josephyang
Dec 28 2005, 06:31
I have no idea how to use this plugin even though I read many articles
Sorry about that...
I want to display play count info on trackinfo panel
I have foo_playcount Version 1.7.6 and foo_ui_columns.dll
What should I do next?
In my thought...I should input something on prefereces windwos like Appended Information and Track Info Panel...
Please help me...Any tip would be appreciated...
There are two ways to do it:
1. find a trackinfo config from someone else which already has playback-stats display included.
2. Do it yourself:
http://www.hydrogenaudio.org/forums/index....showtopic=31530 <-- the tags %first_played% and %last_played% and their coresponding codesnippets are interesting there. For counting the number of plays, the field %play_counter% is used.
josephyang
Dec 28 2005, 23:07
Thanks for the help
I got a trackinfo code...and then should I mod file's tags manually?
For example, If I want to display the last played info...should I add LAST_PLAYED for tag fieldname and put %last_played% for field value?
And how to use "Code snippets" ?
Really sorry about low level questions...
QUOTE(josephyang @ Dec 29 2005, 06:07 AM)
Thanks for the help
I got a trackinfo code...and then should I mod file's tags manually?
For example, If I want to display the last played info...should I add LAST_PLAYED for tag fieldname and put %last_played% for field value?
The playcount plugin will automatically add those tags to your files. Thats basically the point of what the plugin does. You dont need to do this yourself - it happens automatically when you play files.
QUOTE(josephyang @ Dec 29 2005, 06:07 AM)
And how to use "Code snippets" ?
Well, it works like this...
If you want to display how often a track has been played somewhere:(no matter if in a playlist, trackinfo-panel, etc. - it works the same everywhere)
Then just put %play_counter% there.
If you want to display last/first played info of a track:Just put %last_played% or %first_played% there.
If you only want to display the date of last/first played info:Just put $left(%last_played%,10) or $left(%first_played%,10) there.
Now, as for "where" this has to be entered - i dont know because i dont use the trackinfo-panel yet. I guess somewhere in the trackinfo-preferences there should be a location where one can enter a "formatting string" - thats where you need to put it. Someone else will need to help out here

- Lyx
@kl33per: the first post of this thread still points to the obsolete version of this plugin. Maybe it would make sense if you would start a new thread, so that this one gets faded out?
josephyang
Dec 29 2005, 05:11
I really appreciate your kind explanation
As you told, all I need to do is just put Code snippets on trackinfo panel
For example...like this one...
// display only the time of last_played (without reformatting)
// the use of $right is strongly unrecommended!
$substr(%last_played%,12,19)
Am I right? Sorry for inconvenience...
Yep, just as you said :) In the area where you can put code, the *order* matters.
Example1:
CODE
%artist%' - '%title%' was played last time on '%last_played%
Example2:
CODE
'On '%last_played%', '%artist%' - '%title%' was played the last time'
So, everything entered in the area where you can paste code, is executed(and displayed) from left->right, top->bottom.
josephyang
Dec 29 2005, 06:55
Again...sorry...
I put this on trackinfo panel
------------------------------------------------------------
This song was played %play_counter% times so far
------------------------------------------------------------
And then it displays
------------------------------------------------------------
This song was played ? times so far
------------------------------------------------------------
What did I wrong? I use Tahoma 8pt...
It will display "?" if the track does not have the specified tag. Just interprete ? as "error, tag not found".
To avoid this, use [ ] brackets - like this:
test [blah %last_played%]
Everything inside the brackets will only be displayed if the %tag% inside of the brackets does exist.
another useful function is $if - syntax goes like this:
$if(this_condition_is_true,then_do_this,else_do_this)
Example:
$if(%play_counter%,this track was played %play_counter% times,this track was not played yet)
For more info on how this language, called TAGZ works, see these links:
http://wiki.hydrogenaudio.org/index.php?ti...at_Introductionhttp://wiki.hydrogenaudio.org/index.php?ti...ormat_Reference (important: the "field remappings" described there work differently in foobar 0.8)
You can use $if2 if you want something to be displayed when %tag% doesn't exist, for example:
$if2(This song has been played %play_counter% times so far, This song has not been played yet)$char(10)
In order to avoid mistakes like "played 1 times" I'm using:
// play counter
$if(%play_counter%
,
$if($strcmp(%play_counter%,1),Played once,
$if($strcmp(%play_counter%,2),Played twice,
Played %play_counter% times))
,
Never played)$char(10)
josephyang
Dec 29 2005, 07:18
I put this :
test[blah %play_counter%] and then it displays just "test"
I think my play_count plugin doesn't work normally
When I open Properties windows...there is no PLAY_COUNTER or LAST_PLAYED
Just there are TITLE, ARTIST, ALBUM...etc
I checked all on Tag Writing option and leave blank on Appended Infomation under play count preference
QUOTE(Olive @ Dec 29 2005, 02:17 PM)
You can use
$if2 if you want something to be displayed when %tag% doesn't exist, for example:
$if2(This song has been played %play_counter% times so far, This song has not been played yet)$char(10)
wow, something which i didn't know yet - thanks! Is this new in 0.9 or does it also work in 0.8?
heheh yes it seems to work in 0.8.3
QUOTE(josephyang @ Dec 29 2005, 02:18 PM)
I think my play_count plugin doesn't work normally
When I open Properties windows...there is no PLAY_COUNTER or LAST_PLAYED
Just there are TITLE, ARTIST, ALBUM...etc
Did you play those tracks completely, or just gave them a short "quick-play"? In the prefs, there is a slider "update songs when playback percentage is..." - if for example it is set to 75%, then it will only add playcount-tags to a song, after you've listened 3/4 through it.
- Lyx
Shade[ST]
Dec 31 2005, 11:58
Is the current implementation of %play_count% (with plugin) configurable? - It seems to add 1 to the play count as soon as a tune starts playing. Is there any way I can, maybe, install another plugin to change this functionnality somewhat? How did the previous plugin work?
Thanks,
Tristan.
kockroach
Dec 31 2005, 12:27
This pertains to fb2k 0.83. The foo_playcount plugin from this thread (most recently improved by kl33per) has a slider that allows you to change when the tags are updated. It is defaulted to 50%. There is also an option that will immediately update songs if they are shorter than a specified number of seconds (if set to 0, then this function is ignored).
If you are using fb2k 0.9, then this is not the same foo_playcount.
link dead. anyone got a mirror to the latest version?
i'm also looking for a copy. i will temporarily host it if anyone can kindly send to sauce</at>notamused</dot>org
thanks
kockroach
Jan 11 2006, 22:48
It is at the 3rd party website.....try
this download link.
Hey the Plugin on the Beta Site for 0.9 Beta 14 doesn't work for me, it just doesnt count. What's wrong?
kockroach
Feb 14 2006, 16:34
It isn't the same thing as the plugin in this thread.
QUOTE(kl33per @ May 18 2005, 10:00 AM)
foo_playcount 1.7.8 *TEST VERSION* (May 18 2005)1) Changed PLAY_STAMP so that it writes each stamp to the same field seperated by a ";" character.
@ above, no worries, was just a little concerned + I've had a bad day, so I may have come off a little harsh, sorry.
Edit: Have removed PLAY_STAMP from the available stable 1.7.6 version so that users who get it from the plugins site will get only the stable features.
is this the latest version or is there a newer somewere else?
edit: nevermind.. didn't read the most recent posts so well
Generalverdacht
Mar 23 2006, 11:51
sorry, could anybody tell me where to find a working version of play counter for my version 8.3 ?
benrad
Mar 29 2006, 09:41
So are we going to see a new port for version .9?
I love me some play counter.
randal1013
Mar 29 2006, 09:52
yeah, play counter is an important plug-in for me. not having this plug-in for .9 is the main reason why i still primarily use .83.
Zootropo
Mar 29 2006, 10:49
and why don't you use the playback statistics component? One of the fields is the number of times it has been played
benrad
Mar 29 2006, 11:04
QUOTE(Zootropo @ Mar 29 2006, 08:49 AM)
and why don't you use the playback statistics component? One of the fields is the number of times it has been played
Well, because I didn't know about it. Is it something built in or another plug-in?
snively
Mar 29 2006, 11:43
QUOTE(Zootropo @ Mar 29 2006, 10:49 AM)
and why don't you use the playback statistics component?
because our previous play counts are useless with their component?
DustMagnet
Mar 29 2006, 20:48
QUOTE(snively @ Mar 29 2006, 09:43 AM)
QUOTE(Zootropo @ Mar 29 2006, 10:49 AM)
and why don't you use the playback statistics component?
because our previous play counts are useless with their component?
I'm using this:
$add(%play_counter%,%play_count%)
to combine the two values
hedge153
Mar 29 2006, 22:35
QUOTE(DustMagnet @ Mar 30 2006, 01:18 PM)
QUOTE(snively @ Mar 29 2006, 09:43 AM)
QUOTE(Zootropo @ Mar 29 2006, 10:49 AM)
and why don't you use the playback statistics component?
because our previous play counts are useless with their component?
I'm using this:
$add(%play_counter%,%play_count%)
to combine the two values
Yeah thats what im using, last_played doesn't want to work nice tho, it seems to automatically check for a tag called last_played present, if its there, it will use it instead of the playback stats component added one.
amonrei
Mar 30 2006, 00:39
QUOTE(DustMagnet @ Mar 30 2006, 10:48 AM)
I'm using this:
$add(%play_counter%,%play_count%)
to combine the two values
Thanks. This works.
MC Escher
Mar 30 2006, 05:20
Where does that plugin store the playback information? I can't see any tags for that, and I'ld like that info to be in tags, because it's less likely that something bad happens to all my music then one database file (and if something bad happens with all my music I have far bigger problems then lost playback info).
QUOTE(amonrei @ Mar 30 2006, 07:39 AM)
QUOTE(DustMagnet @ Mar 30 2006, 10:48 AM)
I'm using this:
$add(%play_counter%,%play_count%)
to combine the two values
Thanks. This works.

Where to add?
snively
Mar 30 2006, 09:44
QUOTE(Tiis @ Mar 30 2006, 06:36 AM)
QUOTE(amonrei @ Mar 30 2006, 07:39 AM)
QUOTE(DustMagnet @ Mar 30 2006, 10:48 AM)
I'm using this:
$add(%play_counter%,%play_count%)
to combine the two values
Thanks. This works.

Where to add?
Columns UI / Playlist view / Columns..
either make a new column or add it to a previous one
i guess i wont be using 0.9 untill there is a way to copy the old statistics..
falconfox
Mar 31 2006, 00:18
why don't you use masstagger and copy all play_counter tags to play_count tags?
QUOTE(MC Escher @ Mar 30 2006, 12:20 PM)
Where does that plugin store the playback information? I can't see any tags for that...
That would be very interesting for me, too!
unabatedshagie
Mar 31 2006, 01:02
QUOTE(MC Escher @ Mar 30 2006, 12:20 PM)
Where does that plugin store the playback information? I can't see any tags for that, and I'ld like that info to be in tags, because it's less likely that something bad happens to all my music then one database file (and if something bad happens with all my music I have far bigger problems then lost playback info).
QUOTE(Tiis @ Mar 31 2006, 07:29 AM)
QUOTE(MC Escher @ Mar 30 2006, 12:20 PM)
Where does that plugin store the playback information? I can't see any tags for that...
That would be very interesting for me, too!
IIRC the plugin stores the information in the foobar config file, also IIRC the plugin wasn't really intended for actual everyday use, it was created as more of a proof of concept that plugins could store info to external files.
mixcherry
Mar 31 2006, 01:09
QUOTE(falconfox @ Mar 31 2006, 08:18 AM)
why don't you use masstagger and copy all play_counter tags to play_count tags?
New PC plugin developed by Peter stores its statistics in foobar2000.cfg, not in the database. I don't know what will happen when you masstag your _files_ with play_count tag, but I suppose you won't be too satisfied with the result
MC Escher
Mar 31 2006, 03:48
Since the official playback statistics plugin stores the playcount information in something as corruptable as the foobar2000.cfg, I renew my request for someone to port this plugin over.
The Link
Mar 31 2006, 04:02
QUOTE(MC Escher @ Mar 31 2006, 10:48 AM)
... something as corruptable as the foobar2000.cfg ...

So you prefer an external sql database or do you want to have the playback statistics tagged to your files?
Killmaster
Mar 31 2006, 04:19
QUOTE(The Link @ Mar 31 2006, 02:02 AM)
QUOTE(MC Escher @ Mar 31 2006, 10:48 AM)
... something as corruptable as the foobar2000.cfg ...

So you prefer an external sql database or do you want to have the playback statistics tagged to your files?
I mentioned this in another post, but I think it should store it in a file completely seperate from everything else. I also think that someone should figure out how to import the mySQL and tag-related stuff into this plugin's storage, which would be amazingly useful.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.