HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: Crusoli on 2007-02-17 03:12:52

Title: foo_playcount_mod
Post by: Crusoli on 2007-02-17 03:12:52
Hey guys,

This release is based on the unofficial playcount component:
http://www.hydrogenaudio.org/forums/index....showtopic=42625 (http://www.hydrogenaudio.org/forums/index.php?showtopic=42625)

I've always been annoyed by the popup window in foo_playcount so I modded it to supress the popups (thanks to terrestrial for sharing his code).
Unfortunately the windows still popup on some files (I can't figure out why, maybe somebody with more coding experience can take a look at the source, it's included) but it works for most.

I changed the name of the plugin because there are quite a few versions around and they are often messed up.


CURRENT VERSION:
1.0.2 (updated March 4th 2007)

CHANGES SINCE LAST VERSION:
-added option to exclude files from being processed based on file format and on whether its part of the media library or not
-added option to choose between classical playcount tags (PLAY_COUNTER, FIRST_PLAYED, LAST_PLAYED) and the official playback statistics component version (PLAY_COUNT, FIRST_PLAYED_TIMESTAMP, LAST_PLAYED_TIMESTAMP)
note: if you change the tag type the old tags will be converted into the new format on next playback. If both tag types are present in a file the current tag style will be used and the old one will be deleted.
-removed the "remove old tags" option (guess all files should be cleaned by now if necessary)

DOWNLOAD:
http://foobar.crusoli.de/foo_playcount_mod.zip (http://foobar.crusoli.de/foo_playcount_mod.zip)
Title: foo_playcount_mod
Post by: Kiteroa on 2007-02-17 05:55:44
Thanks.

Unfortunately I get the following error message when it tries to load:


Failed to load DLL: foo_playcount_mod.dll
Reason: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

Any ideas what is wrong?
Title: foo_playcount_mod
Post by: Mangix on 2007-02-17 06:25:01
use 0.9. my guess is that you're using 0.8
Title: foo_playcount_mod
Post by: pIv on 2007-02-17 07:09:15
I confirm Kiteroa post.
Version of Foobar is 0.9.4.2.

Also my sugesstion is convert official tags (last_played_timestamp, first_played_timestamp, play_count) if it present to last_played, first_played and play_counter.
Title: foo_playcount_mod
Post by: Kiteroa on 2007-02-17 07:10:58
My version of Foobar is 0.9.4.2.
Title: foo_playcount_mod
Post by: orchid on 2007-02-17 10:12:38
I'm getting the same error. As for the official/unofficial tags, an option to choose which ones to use would be nice.
Title: foo_playcount_mod
Post by: Andreasvb on 2007-02-17 13:21:11
I'm getting this error:
Code: [Select]
Failed to load DLL: foo_playcount_mod.dll, reason: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail.


Code: [Select]
Activation context generation failed for "D:\Apps\PortableApps\foobar2000\components\foo_playcount_mod.dll". Dependent Assembly Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0" could not be found. Please use sxstrace.exe for detailed diagnosis.


I think I need VC8 runtime, I'll try install it.

Edit: Same thing. Are you compiling with debug?
http://forums.microsoft.com/MSDN/ShowPost....78&SiteID=1 (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=320178&SiteID=1)
Title: foo_playcount_mod
Post by: Frank Bicking on 2007-02-17 13:57:52
This release is based on the unofficial playcount component

This component is known as problematic (http://www.hydrogenaudio.org/forums/index.php?showtopic=44213) due to repeated crash reports.

Since you mentioned that you have only "modded it to supress the popups", I suppose your version doesn't improve anything in this regard. That said, if you don't want to immediately end up on that list as well, may I suggest to delay any further releases until those problems have been sorted out?
Title: foo_playcount_mod
Post by: Crusoli on 2007-02-17 14:50:12
This component is known as problematic (http://www.hydrogenaudio.org/forums/index.php?showtopic=44213) due to repeated crash reports.

There is an update available for some time:
http://www.hydrogenaudio.org/forums/index....st&p=417705 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=42625&view=findpost&p=417705)
I haven't heard of any problems with meta_db leaks since that version. The thread doesn't mention any bigger crash issues either afaik. Can't be 100% sure though of course. My version is based on that one.


As for the other problems: I'll look into it.

@andreasvb
What OS are you using?
Title: foo_playcount_mod
Post by: Andreasvb on 2007-02-17 15:10:56
@andreasvb
What OS are you using?

Windows Vista Ultimate RTM.
Title: foo_playcount_mod
Post by: Frank Bicking on 2007-02-17 15:11:16
There is an update available for some time

This update (August 2006) by far predates the crash reports that lead to the addition to our list in January 2007.

The problematic version was 1.9.2, which matches the version string of the linked version.

Examples of error reports:

2006-10-10 : Crash when closing (http://www.hydrogenaudio.org/forums/index.php?showtopic=49167)
2006-10-13 : "Application error" / Metadb_handle leak on shutdown (http://www.hydrogenaudio.org/forums/index.php?showtopic=49252)
2006-11-05 : FB2K 0.9.4.1 + foo_playcount (unofficial) Crash (http://www.hydrogenaudio.org/forums/index.php?showtopic=49907)
2006-12-14 : Play_count Fehlermeldung (http://foobar2000.fo.funpic.de/index.php?topic=522.0) (German)
2007-01-03 : foo_playcount (unofficial) crash log (http://www.hydrogenaudio.org/forums/index.php?showtopic=51553)
Title: foo_playcount_mod
Post by: Crusoli on 2007-02-17 15:50:38
Deutsch is jetzt nicht das Problem. ;-)

Unfortunately terrestrial didn't change the version string when updating the component. 1.9.2 could aswell be this (http://stephan.kochen.nl/proj/foobar2000.html#playcount) version (April 12 2006) which was known for the metadb_handle leaks.
But for now I think I have added enough bugs myself to be listed as problematic component. 
I didn't encounter any crashes yet, I'll wait for some user feedback.
Title: foo_playcount_mod
Post by: Crusoli on 2007-02-17 16:26:05
Everyone who encountered problems with the first release please try this version an give me feedback whether it works. Thanks.
Title: foo_playcount_mod
Post by: Andreasvb on 2007-02-17 16:51:30
The plugin loads now, thanks.

But the "updating" dialog still pops up.
The file is a 192 kbps VBR Mp3.

Edit: It's random, sometimes it shows.
Title: foo_playcount_mod
Post by: tomthomson on 2007-02-17 18:32:12
plugin works for me after the update, thanks
update dialog hasnt appeared at all after a quick test
always used the unofficial playcount without any crashes or problems
Title: foo_playcount_mod
Post by: Crusoli on 2007-02-17 23:51:59
Since the feedback on the test version was good so far I released the bugfix as version 1.01 (see the first post).

Sometimes the windows still pop up although I can't figure out a pattern when.
Would be really cool if any more advanced coder could take a look at the source (included in the archive) and tell me what I missed.

I'll try to work on feature requests in about a week. Haven't got any time atm.
Title: foo_playcount_mod
Post by: Kiteroa on 2007-02-18 00:01:47
The plugin loads now, thanks.

But the "updating" dialog still pops up.
The file is a .m4a .
Title: foo_playcount_mod
Post by: DustMagnet on 2007-02-18 02:24:54
Nice.

I had given up on the playcount plugins, but this is great. I don't think I've seen a pop-up yet.
Title: foo_playcount_mod
Post by: ExtensionArt on 2007-02-19 16:01:06
I'm so happy play count is working finally (had a different version...)
Great Pug-in, is there any way to exclude .cue files? Thanks
Peace
Title: foo_playcount_mod
Post by: Crusoli on 2007-02-19 16:44:49
Not that I know of.
Put it on the to-do list...
Title: foo_playcount_mod
Post by: Strictly4me on 2007-02-19 17:00:05
Works perfect on my foo (0.9.4), without popups! - Many thanks. 

((((( Strictly4me )))))
Title: foo_playcount_mod
Post by: stampgevaar on 2007-02-19 17:24:58
works good in my case
Title: foo_playcount_mod
Post by: fabiospark on 2007-02-19 17:50:32
Does this plugin write in the files or somewhere else?
Where?

Thanks.
Title: foo_playcount_mod
Post by: Crusoli on 2007-02-19 18:06:57
It writes all infos directly to the file tags.
Title: foo_playcount_mod
Post by: LeBakalite on 2007-02-19 18:10:07
This plugin seems great ! For what version of foobar is it conceived ?
I tried with the 0.9.4 I have, and the popup appeared.

Thx for you help.
Title: foo_playcount_mod
Post by: DustMagnet on 2007-02-19 19:35:34
Darn, now I'm getting what seems to be random pop-ups.    I can't detect a pattern.

It doesn't happen often enough to discontinue use of the plugin. I hope someone figures out a way to stop them, though.
Title: foo_playcount_mod
Post by: VeaaC on 2007-02-22 14:40:41
Works for me
Title: foo_playcount_mod
Post by: Keikonium on 2007-02-22 15:20:29
I've been using it for about an hour (18 songs or so) and received a popup for all of them (when on the foobar screen) except 2. No popups when not on the screen tho. Which was the behavior of the old one for me anyways .

So it doesn't work for me for some reason . Unless those other songs that received the popup were the few exceptions this upgrade seems to see . I hope not... lets hope you (or someone) can figure out how to stop the popups for good !
Title: foo_playcount_mod
Post by: wojtek on 2007-02-25 10:59:19
Still getting popup sometimes.

+ for the idea - this popup really sucks
Title: foo_playcount_mod
Post by: elenhil on 2007-02-26 10:41:58
I'm getting a lot of failed tag update alerts (sharing violation) with this mod. No pattern visible.
Title: foo_playcount_mod
Post by: Crusoli on 2007-02-27 03:33:34
I'm getting a lot of failed tag update alerts (sharing violation) with this mod. No pattern visible.

Could you enable the debug mode in the options and tell me what errors it writes to the console.

BTW, I'm currently working on an update. No idea if it will solve the random popups though, I still haven't found out whats causing them. 
Title: foo_playcount_mod
Post by: Crusoli on 2007-02-27 04:26:30
Also my sugesstion is convert official tags (last_played_timestamp, first_played_timestamp, play_count) if it present to last_played, first_played and play_counter.

Hm, where exactly do I find the plugin using those tag standards?
Title: foo_playcount_mod
Post by: pIv on 2007-02-27 05:14:07
http://www.foobar2000.org/components/foo_playcount.zip (http://www.foobar2000.org/components/foo_playcount.zip) - official Playback Statistics by Peter.

Collects playback statistics for your Media Library content. Statistics can be displayed in the Properties dialog or using %first_played% / %last_played% / %play_count%.
Title: foo_playcount_mod
Post by: elenhil on 2007-02-28 12:04:52

I'm getting a lot of failed tag update alerts (sharing violation) with this mod. No pattern visible.

Could you enable the debug mode in the options and tell me what errors it writes to the console.

"Could not write info (Sharing violation) to:"
Title: foo_playcount_mod
Post by: Bh4i on 2007-03-04 12:45:38
Just wanted to tell that this is the ONLY playcount that works for me... thnx

official playcount - does write the tags, but with wrong dates..
unoffical playcount - doenst write anything at all...
Title: foo_playcount_mod
Post by: wojtek on 2007-03-04 16:19:33
When playing from cd i'm getting: "Could not write info (Access denied) to:" (in five copies  ) which is quite understandable, but an some kind of option to write cout of files on cd would be a nice thing
Title: foo_playcount_mod
Post by: Crusoli on 2007-03-04 22:36:01
"Could not write info (Sharing violation) to:"

Could be caused by the file being used by some other program (e.g. filesharing tools). Only a guess though. Dont know why this happens.

When playing from cd i'm getting: "Could not write info (Access denied) to:" (in five copies  ) which is quite understandable, but an some kind of option to write cout of files on cd would be a nice thing

Hm, that would require a local file on the HD and a lot of new code which is probably too difficult for me. Im sorry.
Title: foo_playcount_mod
Post by: Crusoli on 2007-03-04 22:56:21
New version 1.0.2 released.
Check the first post for updates.

http://foobar.crusoli.de/foo_playcount_mod.zip (http://foobar.crusoli.de/foo_playcount_mod.zip)

I tried something to prevent the remaining popups. Please give me feedback on whether this version fixes them for you.
Title: foo_playcount_mod
Post by: TheTravis on 2007-03-04 23:15:11
Thanks! This plugin fixed my problem. When using ProjectM visualization full screen older plugin stole focus to foobar main window. Now i don't have to use mouse all the time to get the focus back.
Title: foo_playcount_mod
Post by: pIv on 2007-03-05 06:59:18
New version very nive!

I have only one suggestion - if I use official  tags scheme  with datestamp I want use %last_played% an %first_played% values as in official plugun. Now this values not available.
Title: foo_playcount_mod
Post by: pIv on 2007-03-06 13:23:52
For prevent popups "Could not write info (Sharing violation) to:" I delete foo_sic.
That plugin modify file also after 1min of playing and can not share music file when modified it.
Title: foo_playcount_mod
Post by: Bh4i on 2007-03-06 16:47:29
I dont think ull be pleased to hear it, but v1.0.2 does give me the popup screen.. and the previous version doesnt.

So ill stick to the previous version 
Title: foo_playcount_mod
Post by: Crusoli on 2007-03-06 17:04:26
*aaaaaaaaargh*
Title: foo_playcount_mod
Post by: eb3604 on 2007-03-06 20:48:27
still won't load for me.  Using latest foobar, columns ui, panels ui
Title: foo_playcount_mod
Post by: elenhil on 2007-03-07 08:29:02
For prevent popups "Could not write info (Sharing violation) to:" I delete foo_sic.
That plugin modify file also after 1min of playing and can not share music file when modified it.

Hmm... That makes sense, but I'd really like to have some workaround instead of just dropping a component.
Title: foo_playcount_mod
Post by: dark_avenger on 2007-03-14 10:29:25
Hi

I got a problem with this mod ...

like the "normal" unofficial playcount  also this doesn`t work ...

message:

Failed to load DLL: foo_playcount_mod.dll
Reason: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

(The Reason is printed in german)

I know that other users have the same problem...
Title: foo_playcount_mod
Post by: freanir on 2007-03-14 14:29:13

For prevent popups "Could not write info (Sharing violation) to:" I delete foo_sic.
That plugin modify file also after 1min of playing and can not share music file when modified it.

Hmm... That makes sense, but I'd really like to have some workaround instead of just dropping a component.

I haven't seen these popups since I've unchecked the option ''Include FooID audio fingerprint (currently always computed on demand)" in the foosic options.
Title: foo_playcount_mod
Post by: rouge on 2007-03-16 19:16:56
Would be nice if you could do this for rating quick keys, also. Great work, though.
Title: foo_playcount_mod
Post by: FofR on 2007-03-18 01:17:35
Is it possible to use this so that ONLY First Played is added to the mp3 tags?
Title: foo_playcount_mod
Post by: Crusoli on 2007-03-18 02:26:23
like the "normal" unofficial playcount  also this doesn`t work ...

message:

Failed to load DLL: foo_playcount_mod.dll
Reason: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

Try to delete the playcount_mod.dll, then reinstall all the other playcount components, start foobar, exit again, delete the components and reinstall the playcount_mod. On next startup up choose to delete the settings of all the old components. No idea if this helps but I had a similar error while testing.


Would be nice if you could do this for rating quick keys, also. Great work, though.

What do you mean with "quick keys"? Like hotkeys to set a song rating tag? If yes where would you define that hotkey.

Is it possible to use this so that ONLY First Played is added to the mp3 tags?

Er, never tested it but try to uncheck the first two fields under "tag writing" in the preferences. It should work.
Title: foo_playcount_mod
Post by: rouge on 2007-03-19 04:31:40

Would be nice if you could do this for rating quick keys, also. Great work, though.


What do you mean with "quick keys"? Like hotkeys to set a song rating tag? If yes where would you define that hotkey.


I have foobar configured so that i can hit shift-control-n to rate a song.  But, it's annoying when the tag writing window pops up just to write one tag.

I assume that's the thinking behind this plugin in the first place.

There's no reason to have a progress window pop-up when it only takes a millisecond to complete.
Title: foo_playcount_mod
Post by: FofR on 2007-03-20 22:03:16
Couple more questions, can I use this whilst using the official playcount component and is there a tagging script that can send my current playcount to the mp3s?
Title: foo_playcount_mod
Post by: barry123 on 2007-03-21 14:18:41
I really like this one but how do I change the way it is displayed.
I found the options #M etc. but this is at the end of Last_played

I dont want to see the year and time at all

just #D #M
Title: foo_playcount_mod
Post by: ladiko on 2007-03-22 10:51:28
I dont want to see the year and time at all

just #D #M

Code: [Select]
// Last played
$puts(lp_year,$substr(%last_played%,1,4))
$puts(lp_month,$substr(%last_played%,6,7))
$puts(lp_day,$substr(%last_played%,9,10))
$puts(lp_hour,$substr(%last_played%,12,13))
$puts(lp_min,$substr(%last_played%,15,16))
$puts(lp_sec,$substr(%last_played%,18,19))

$if(%last_played%,$get(lp_day)-$get(lp_month)-$get(lp_year)' at '$get(lp_hour):$get(lp_min))


or simple: $substr(%last_played%,6,10)
Title: foo_playcount_mod
Post by: Crusoli on 2007-03-24 16:17:01
I have foobar configured so that i can hit shift-control-n to rate a song.  But, it's annoying when the tag writing window pops up just to write one tag.

I assume that's the thinking behind this plugin in the first place.

There's no reason to have a progress window pop-up when it only takes a millisecond to complete.

Hm I see what you mean but I guess that would require a new component (don't even know if its possible) since tag updates other than created by playcount_mod itself aren't monitored by this component.

Couple more questions, can I use this whilst using the official playcount component?

I used it together with the official playcount component while testing (it worked) but I can't give you a definite answer cause it was only like 10 minutes.

is there a tagging script that can send my current playcount to the mp3s?

You mean as in converting the playcount info in the database into a filetag without using the official playcount component? Haven't seen anything like that yet. I might be able to integrate it if someone tells me how to access the databse infos.

I really like this one but how do I change the way it is displayed.
I found the options #M etc. but this is at the end of Last_played

I dont want to see the year and time at all

just #D #M

The way ladiko mentioned is the easiest to achieve this. I won't add an option to change the whole string because it's an encouraged tag standard (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Encouraged_Tag_Standards#FIRST_PLAYED_and_LAST_PLAYED) and would lead to problems when using different strings. Sorry.

As for your idea pIv, its the same problem. Both tags have their own string standard an I feel uncomfortable mixing them. If you still want to use unofficila tags with official timestamps send me a PM with your email address and I'll send you a build.
Title: foo_playcount_mod
Post by: henk102 on 2007-03-25 16:43:31
Hi I found this code, i'm nearly happy about is, but i'm not sure how I fix it.

the code is:

Code: [Select]
$if($strcmp(%play_counter%,?),
Playing song for fist time,
$if($strcmp(%play_counter%,1),
Song played %play_counter% time',' on ,
Song played %play_counter% times. Last on )
$if($strcmp($left($right(%last_played%,10),1),1),Sunday', ',)
$if($strcmp($left($right(%last_played%,10),1),2),Monday', ',)
$if($strcmp($left($right(%last_played%,10),1),3),Tuesday', ',)
$if($strcmp($left($right(%last_played%,10),1),4),Wednesday', ',)
$if($strcmp($left($right(%last_played%,10),1),5),Thursday', ',)
$if($strcmp($left($right(%last_played%,10),1),6),Friday', ',)
$if($strcmp($left($right(%last_played%,10),1),7),Saturday', ',)
$right(%last_played%,8) at $right($left(%last_played%,16),5))


i'm not sure what the sunday, monday etc. is but I dont need it so maybe it can be removed.
what I get is:

when never played:
Playing song for first time

when 1 time played:
Song played one time, (*this isn't correct at all* something like this:) on :hour: :minute: second: at :hour: minute

when more than 1 time played:
Song played *play counter* times, (*this isn't correct at all* something like this:) last on :hour: :minute: second: at :hour: minute

what I want is:

when never played:
Playing song for first time

when 1 time played:
Song played one time, on :month: - :day: at :hour: - :minutes: AM or PM

when more than 1 time played:
Song played *amount* times, :month: - :day: at :hour: - :minutes: AM or PM



for the AM or PM I found this

Code: [Select]
// AM/PM Conversion
$if($strcmp($get(hour),00),$puts(yy,am))
$if($strcmp($get(hour),10),$puts(yy,am))
$if($strcmp($get(hour),11),$puts(yy,am))
$if($strcmp($get(hour),12),$puts(yy,pm))
$if($strcmp($get(hour),24),$puts(yy,am))
$if($strcmp($left($get(hour),1),0),$puts(yy,am))
$if($strcmp($left($get(hour),1),1),$puts(yy,pm))
$if($strcmp($left($get(hour),1),2),$puts(yy,pm))


When I add this to my code nothing happens.

Can someone help me with my trackinfo?
Title: foo_playcount_mod
Post by: shakey_snake on 2007-03-27 04:09:37
No matter how high I adjust my buffer, this plugin causes audio skips when writing the tags for high bitrate mp3s.
Title: foo_playcount_mod
Post by: slinger1182 on 2007-03-27 08:34:57
No matter how high I adjust my buffer, this plugin causes audio skips when writing the tags for high bitrate mp3s.


Yep, same for me!
Title: foo_playcount_mod
Post by: Crusoli on 2007-04-22 00:47:21
How high is the bitrate? And does it also happen on FLAC or other losless codecs?
Title: foo_playcount_mod
Post by: Acropolis on 2007-05-22 16:47:18
used the source code to incorporate into one of my own private component. so to give a little info.

I've found that sometimes the update dialog shows is because both my foosic client and this component manipulating the file (meta data).

for example, I notice that foosic will do things when has been playing for 1 minutes, if around this time this component try to update the file, the dialog will show (probably because the component has a few Sleep calls, see below).

in the code, it contains a 4-5 Sleep calls (each 500ms), it's blocking foobar to update the fb2k UI interface because it is in the main thread.

I don't remember I've seen the dialog again after removing all the Sleep(s), the visible display pause during update is much better than what it is now. I'm not sure if the Sleep calls are really needed, but seems no problem for me to get rid of them.
Title: foo_playcount_mod
Post by: Andreasvb on 2007-05-22 17:30:22
Can you release foo_playcount_mod with your changes, so no dialogs will appear? It's kinda annoying with like 3-4 popping up now and then.

Or maybe Crusoli could update it with your changes.

Thanks.
Title: foo_playcount_mod
Post by: Acropolis on 2007-05-22 17:52:09
sorry, I was wrong, removing the Sleeps will get rid of the delay during update, but the popup still shows, and it mostly when it's updating a APE file. I'm trying to find out why now.
Title: foo_playcount_mod
Post by: Andreasvb on 2007-05-22 18:06:21
Those damn popups, hard to hide.

Thanks for trying.
Title: foo_playcount_mod
Post by: Acropolis on 2007-05-22 18:25:12
Conclusion:
you CANNOT get rid of it

Reason:
Code: [Select]
//! Set this flag to delay the progress dialog becoming visible, so it does not appear at all during short operations. Also implies op_flag_background effect.
op_flag_delay_ui = 1 << 2,

this is provided in the SDK, it means even with this flag selected, the dialog will always show if the I/O operation time taken is not considered to be short, damn.
I think it is short however, less than 1 sec for it to disappear

EDIT: I've found a trick, probably can make it not visible
Title: foo_playcount_mod
Post by: Andreasvb on 2007-05-22 18:52:52
*crosses fingers*
Title: foo_playcount_mod
Post by: Acropolis on 2007-05-23 05:00:48
ok, finally solved. it's not perfect, but the bottom line is, you will not see it again.

the reason that the popup shows without a pattern is:
the I/O operation time of the update has no pattern, it shows is kind of telling you there may be an interrupt of the playback during update.

the easiest way to see the popup is:
play in the middle of the total tracks of an extra high compressed APE (from cuesheet), set update to @1%

I've done a little trick to make it totally invisible, but there may be an interrupt of playback, accept it.
I've included it as part of my other component, check it in my blog, requirements same as my other components.

Crusoli,
if you want to have my modified source, pm me.
Title: foo_playcount_mod
Post by: Andreasvb on 2007-05-23 08:24:36
Seems to work wonderful.

Thanks a lot, Acropolis!

Edit: Noticed one thing, may be Audioscrobbler that still show a window.
Tried set playcount to update at 100% and this window pops up at 50%.
Title: foo_playcount_mod
Post by: Acropolis on 2007-05-23 11:14:27
I don't use audioscrobbler, so I don't know what you mean, but I guess you mean there's popup when audioscrobbler updates files.
I just guarantee playcounter will not cause the pop up, and it's not good to actually globally make it invisible, otherwise it seems weird when you manually update the files sometimes.
Title: foo_playcount_mod
Post by: Andreasvb on 2007-05-23 11:22:29
The popups for playcounter is gone, very good.

Maybe have an option to hide it globally?
If one enable it, they should know it won't show any window. Maybe put a warning text to be sure.

Thanks for your efforts.
Title: foo_playcount_mod
Post by: Acropolis on 2007-05-23 11:33:33
Maybe have an option to hide it globally?

not possible without breaking the SDK license.
Title: foo_playcount_mod
Post by: snively on 2007-05-30 04:25:28
Thanks for the mod. Is there a way to merge the database playcounts with the ones that are tagged in the mp3 id3 info? reorganizing my music folders and i don't want to lose the playcounts.
Title: foo_playcount_mod
Post by: masterrossi on 2007-06-28 13:06:39
is the data written in the database or is it written in the ID3tag?
Title: foo_playcount_mod
Post by: Legendary on 2007-06-28 14:39:53
How to let play count work ?
I down dll file and put it in comps folder , but it isn't work +__+
Title: foo_playcount_mod
Post by: Pingwinho on 2007-07-28 12:21:42
Strange... It does not work for my mp3 files. Only for OGG, FLAC, and every other than mp3...
Title: foo_playcount_mod
Post by: thuan on 2007-07-28 13:53:11
Check whether mp3 is in the list of exclude files in playcounter settings. At least that what I remember as I don't use this component anymore.
Title: foo_playcount_mod
Post by: xan K on 2007-08-17 05:05:18
this plugin works like a charm! I've never seen a popup and all my songs get tagged. Only question is if it can write tags in ID3v2.3? The format it uses is ID3v2.4 and windows explorer and some other programs can't read it properly.

thanks.
Title: foo_playcount_mod
Post by: kanak on 2007-08-17 05:35:19
this plugin works like a charm! I've never seen a popup and all my songs get tagged. Only question is if it can write tags in ID3v2.3? The format it uses is ID3v2.4 and windows explorer and some other programs can't read it properly.

thanks.


It writes to ID3V2.4 because that's what foobar is using for mp3s. To change this, go to preferences -> advanced. Under tagging enable "use compatibility mode".
Title: foo_playcount_mod
Post by: xan K on 2007-08-17 07:18:37
thanks for the reply, but there's a problem: when I select "use compatibility mode" play counts aren't written to the tag at all.
Title: foo_playcount_mod
Post by: thuan on 2007-08-17 09:48:31
Because foobar doesn't support custom tag fields in compatibility mode (including but not limited to play_counter, first_played and last_played fields).
Title: foo_playcount_mod
Post by: xan K on 2007-08-17 15:13:10
ok, thanks then.
Title: foo_playcount_mod
Post by: pIv on 2007-09-14 09:44:50
I find bug in this plugin.

Official playcount store in tags last_played(first_played)_timestamp time for GMT and calculate last_played and first_played  by adding time zone shift to GMT time.

My time zone is Moscow.

On PC with play_count_mod I play new song and have any time playstamps in tags (for official plugin).

On another PS with official playcount I load this song and I see first(last)_played  greater real time on 4 hours - Moscow time zone shift.

That is - plugin store time stamp of current time (zone), but no GMT  time.
Title: foo_playcount_mod
Post by: ladiko on 2007-09-16 20:38:58
cant confirm this.

for me (berlin, gmt+1, or now gmt+2 cause of the summertime) both write gmt+1 resp. gmt+2  time and not gmt.
Title: foo_playcount_mod
Post by: n0obie4life on 2007-11-17 07:50:35
Never mind~
Title: foo_playcount_mod
Post by: $char(9836) on 2007-12-21 10:38:35
This is a great plugin except that it seems to open & close the files 4 times, this makes my foobar freeze for about a second and it's extremely annoying, + foo_playcount 1.9.2 doesn't seem to work when I try to switch back 
This is the log from my console:

Autoplaylists initialized in: 0:00.016778
"5 Stars" : 0:00.010447
"All Music" : 0:00.006292
Startup time : 0:03.891912
Elapsed time: 1
Audioscrobbler: Handshake successful.
Reopening played file after update: "F:\Musik\All Musik\Stephen Lynch\A Little Bit Special\05. Stephen Lynch - Special.mp3"
Reopening played file after update: "F:\Musik\All Musik\Stephen Lynch\A Little Bit Special\05. Stephen Lynch - Special.mp3"
Reopening played file after update: "F:\Musik\All Musik\Stephen Lynch\A Little Bit Special\05. Stephen Lynch - Special.mp3"
Reopening played file after update: "F:\Musik\All Musik\Stephen Lynch\A Little Bit Special\05. Stephen Lynch - Special.mp3"
Reopening played file after update: "F:\Musik\All Musik\Stephen Lynch\A Little Bit Special\05. Stephen Lynch - Special.mp3"
Audioscrobbler: Submitting 2 cached tracks...
Audioscrobbler: Submission succeeded.
Title: foo_playcount_mod
Post by: kanak on 2007-12-21 13:54:24
You could try the other unofficial play count plugin in the meantime (foo_playback_custom).
Title: foo_playcount_mod
Post by: BuZ on 2008-01-03 17:48:23
This is a great plugin except that it seems to open & close the files 4 times, this makes my foobar freeze for about a second and it's extremely annoying, + foo_playcount 1.9.2 doesn't seem to work when I try to switch back 
This is the log from my console:

Autoplaylists initialized in: 0:00.016778
"5 Stars" : 0:00.010447
"All Music" : 0:00.006292
Startup time : 0:03.891912
Elapsed time: 1
Audioscrobbler: Handshake successful.
Reopening played file after update: "F:\Musik\All Musik\Stephen Lynch\A Little Bit Special\05. Stephen Lynch - Special.mp3"
Reopening played file after update: "F:\Musik\All Musik\Stephen Lynch\A Little Bit Special\05. Stephen Lynch - Special.mp3"
Reopening played file after update: "F:\Musik\All Musik\Stephen Lynch\A Little Bit Special\05. Stephen Lynch - Special.mp3"
Reopening played file after update: "F:\Musik\All Musik\Stephen Lynch\A Little Bit Special\05. Stephen Lynch - Special.mp3"
Reopening played file after update: "F:\Musik\All Musik\Stephen Lynch\A Little Bit Special\05. Stephen Lynch - Special.mp3"
Audioscrobbler: Submitting 2 cached tracks...
Audioscrobbler: Submission succeeded.

same problem :/ and sometimes i get such popups: "Could not write info (Sharing violation) to:"
i think these two problems are somehow connected.. or am i wrong? 
Title: foo_playcount_mod
Post by: helloterence on 2009-04-04 16:01:33
Sorry for bumping this, but this is the thread the designer of the skins Foobear linked to for this plugin which I have yet to figure out why it doesn't work as it should (new to Foobar2000).

As you can see, this is how the Last Played and Tracked Played should be correctly presented:

(http://fc21.deviantart.com/fs21/i/2007/268/d/2/FooBear_by_lassekongo83.png)

For me, I get nothing but a question mark under the specified labels:

(http://i42.tinypic.com/1oo9s7.jpg)


I followed the instructions thoroughly and through many re-installations and nothing's changed. Figured I must be doing something wrong lol. I am using Foobar2000  v.0.9.5.2.
As for installing this component, I extracted both the .dll and .cpp file in the component folder. Is that not correct? Otherwise, could I get some assistance? Thanks.
Title: foo_playcount_mod
Post by: tpijag on 2009-04-04 16:11:23
What part of not supporting panels skins do you not understand?

Yes your issue is of a different sort...but sometimes these these can get complex and no telling just where the issue is?
There is no support for your configuration here.

terry

Based on my experience here....if you insist on posting images of unsupported configurations and asking questions....your thread will be locked or your individual messages will end up in the recycle bin.

EDIT: helloterence,

You are new to foobar.
It is a great program, but can be a little trying at first. Why not start with something a little less demanding to configure. In addition to the problems you will /are having as this is an unsupported configuration, you are not using the current version of Foobar. Why spend effort running full speed on a dead end
road?
There are plenty of alternatives. This is a new one that is quite similar in look. And there are others.
http://www.hydrogenaudio.org/forums/index....showtopic=70731 (http://www.hydrogenaudio.org/forums/index.php?showtopic=70731)
Title: foo_playcount_mod
Post by: unknownserv on 2009-09-19 14:02:23
Is it possible for this to write to the files contained within a cue sheet?
Title: foo_playcount_mod
Post by: Symmetric on 2010-11-27 21:33:37
I've been hit a couple times recently with the following issue: if foobar doesn't close properly, I loose all playback statistics. This happened most recently when the power to my PC was cut. I've tried to reproduce this by killing the foobar task, but in that case the statistics seem to be saved correctly.

Help/suggestions would be much appreciated.

Thanks
Title: foo_playcount_mod
Post by: MC Escher on 2010-11-28 00:46:46
Are you sure the statistics are lost? Perhaps because of the crash the ui didn't reload the changes. Try to reload the tag info (Tagging -> Reload info from files). Another possibility is foobar crashing the moment the files are written, but that's rare.