Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Some Playcounter mods (Read 124231 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Some Playcounter mods

Reply #50
The problem is Masstagger doesn't work with custominfo as the author stated at the start of its thread. So as of now there's no way I know of. You can sync custominfo data to tag values using custominfo script but not vice versa as masstagger doesn't read custominfo data.

Now, that's a problem. I very much wish that could be solved. Perhaps playback_custom can be made to sync tag values to custominfo data? Isn't it rather absurd that while I already have playcount data in custominfo db (accessable by custom_pc) playback_custom disregards that and starts tagging playcount info from the beginning?

BTW, I haven't seen that statement. Perhaps it should be stressed clearly?

Some Playcounter mods

Reply #51
BTW, I haven't seen that statement. Perhaps it should be stressed clearly?


It's a known limitation of custom_info (among it's other shortcomings). Unfortunately, it looks like the developer has abandoned the plugin, so i wouldn't expect any efforts to address these problems anytime soon.

Some Playcounter mods

Reply #52
@barry123: Use this
Code: [Select]
$if(%last_played%,
$num($sub(9999,$substr(%last_played%,1,4)),4)
$num($sub(99,$substr(%last_played%,6,7)),2)
$num($sub(99,$substr(%last_played%,9,10)),2)
$num($sub(99,$substr(%last_played%,12,13)),2)
$num($sub(99,$substr(%last_played%,15,16)),2)
$num($sub(99,$substr(%last_played%,18,19)),2),
z
)


thanks thuan, is it possible to remove the '?' (when not played yet)

Some Playcounter mods

Reply #53
I'm not a programmer, but I find it strange that while you can access custom_info data from SCPL and the kind you can't do so from Masstagger.

Some Playcounter mods

Reply #54
@barry123:
In the Display tab of your Last Played Column use this:
Code: [Select]
$if2(%last_played%,'Haven't Played')

You can change Haven't Played to whatever you like.

Next time for question like this you should start a new thread.

Some Playcounter mods

Reply #55
Quote
For a long time I've also wanted to store timestamps for every time a file is played. This would be a multi-value field that added a new value with every play, so that info on a track's entire play history would be available. Would you consider adding this?

This means like follows?

PLAY_HISTORY[0]  : 2007/06/23 09:00
PLAY_HISTORY[1]  : 2007/06/22 11:00
PLAY_HISTORY[2]  : 2007/06/21 10:00

Not exactly -- the tag would be a multi-value tag, like the kind that are separated by ';' semicolons in the metadata properties dialog box.  So it would be a single field with multiple values:

PLAY_STAMP : 2007-06-21 08:30:00; 2007-06-28 13:00:30; ...

Which the user would get with the $meta() function:

$meta(play_stamp,0) : 2007-06-21 08:30:00
$meta(play_stamp,1) : 2007-06-28 13:00:30
...

Make sense?

Okay, I understand.
It refers to the future.

Thank you for advice. 

I think he chose it because play_count is used by the official playback statistics plugin

Yes, it is.

Some Playcounter mods

Reply #56
kitahei, is there anything you can do about this.
when I play a stream it doesn't tag the stream.
this isn't that important but it gives the error.

"Unable to resume decoding at 0:03.971 (Unsupported format or corrupted file):
"C:\Documents and Settings\Administrator\Desktop\stream.asx""

I've to disable the plugin.
would be very great to skip those tracks or even better tag them as well.

mslive://*;mms://*;rtsp://*
I open the stream with C:\stream.asx

link to  foo_input_mslive, streaming support for mms/rstp/http
http://www.hydrogenaudio.org/forums/index....c=49165&hl=

I can disable the plugin but this isn't that comfortable, so if there's an easy way to fix this... thanks!

Some Playcounter mods

Reply #57
kitahei, is there anything you can do about this.
when I play a stream it doesn't tag the stream.
this isn't that important but it gives the error.

"Unable to resume decoding at 0:03.971 (Unsupported format or corrupted file):
"C:\Documents and Settings\Administrator\Desktop\stream.asx""

I've to disable the plugin.
would be very great to skip those tracks or even better tag them as well.

mslive://*;mms://*;rtsp://*
I open the stream with C:\stream.asx

link to  foo_input_mslive, streaming support for mms/rstp/http
http://www.hydrogenaudio.org/forums/index....c=49165&hl=

I can disable the plugin but this isn't that comfortable, so if there's an easy way to fix this... thanks!

Sorry, I was not able to modify it easily. 
In this case, my component cannot recognize "c:\stream.asx" online file.
It was only notified only "file://c:\stream.asx".

Is it useless in "Only tracks in the media library update playback statistics" option?

Some Playcounter mods

Reply #58
you mean an extra option beside, update when track is started etc.
yes that would be great!

Some Playcounter mods

Reply #59
I released new version of foo_playback_custom.dll (v1.2.1).

Change log
* foo_custom_pc.dll was integrated foo_playback_custom.dll
* Change default play-counter tag name ("PLAY_COUNT" to "PLAY_COUNTER")

The update of foo_custom_pc.dll has ended because foo_custom_pc.dll was integrated into foo_playback_custom.dll.
Please use foo_playback_custom.dll in the future.

Note
Database combo box in preference page is added.
Please set the combo box in preference page.

download here


Some Playcounter mods

Reply #61
* Change default play-counter tag name ("PLAY_COUNT" to "PLAY_COUNTER")


kitahei-- Why this change?  The official playback statistics component uses PLAY_COUNT, so I think most distributed configurations use this tag as well.

I think that I make my component equal to foo_playcount_mod.
Because the official FIRST_PLAYED_TIMESTAMP and LAST_PLAYED_TIMESTAMP formats are incompatible with my component FIRST_PLAYED and LAST_PLAYED.

Some Playcounter mods

Reply #62
Not exactly -- the tag would be a multi-value tag, like the kind that are separated by ';' semicolons in the metadata properties dialog box.  So it would be a single field with multiple values:

PLAY_STAMP : 2007-06-21 08:30:00; 2007-06-28 13:00:30; ...

Which the user would get with the $meta() function:

$meta(play_stamp,0) : 2007-06-21 08:30:00
$meta(play_stamp,1) : 2007-06-28 13:00:30
...

Make sense?

I challenged multi-value tag, but does not work correctly. 
Why?

PLAY_STAMP=2007-06-21 08:30:00; 2007-06-28 13:00:30
  or
PLAY_STAMP=2007-06-21 08:30:00; 2007-06-28 13:00:30;
  or
PLAY_STAMP=2007-06-21 08:30:00;2007-06-28 13:00:30
  or
PLAY_STAMP=2007-06-21 08:30:00, 2007-06-28 13:00:30
  or
PLAY_STAMP=2007-06-21 08:30:00,2007-06-28 13:00:30

My result was nothing but as follows.
$meta(PLAY_STAMP,0) = 2007-06-21 08:30:00; 2007-06-28 13:00:30
$meta(PLAY_STAMP,1) = (no data)
$meta_num(PLAY_STAMP) = 1 (Why does not 2?)

foobar2000 version : v0.9.4.3

Some Playcounter mods

Reply #63
A quote from the foo_custominfo author:
Quote
Use # in front of field name to add new value, instead of replacing existing values. This can also be combined with the separators, for example: "MYFIELD|#MYFIELD|#MYFIELD".

in this post.
IOW, the first one should be like this:
PLAY_STAMP=2007-06-21 08:30:00
and add new value by passing this
#PLAY_STAMP=2007-06-28 13:00:30
Hope that solve your problem. This is for the context menu command but I hope with custominfo SDK it's the same.

Some Playcounter mods

Reply #64
kitahei
plz add combo box to change tag name from official to mod

Some Playcounter mods

Reply #65
You can change them manually already and only need to do it once. Why are you so lazy? It's already flexible enough IMO.

@kitahei-san: Feature request. Can you make a new feature for this component that will sync tag to custominfo database and vice versa. Ideally, it should be able to run on a large number of files easily (like a context command or a new masstagger action type). Also someone's already requested the feature that syncs playback statistic to the official one. I think it's a good feature for ppl who's currently running the official plugin and want to switch (not me though as I have already lost all the statistic after the switch, sigh).

Some Playcounter mods

Reply #66
A quote from the foo_custominfo author:
Quote
Use # in front of field name to add new value, instead of replacing existing values. This can also be combined with the separators, for example: "MYFIELD|#MYFIELD|#MYFIELD".

in this post.
IOW, the first one should be like this:
PLAY_STAMP=2007-06-21 08:30:00
and add new value by passing this
#PLAY_STAMP=2007-06-28 13:00:30
Hope that solve your problem. This is for the context menu command but I hope with custominfo SDK it's the same.





- You can set several fields at a time by separating field names and values with "|". For example "MYFIELD1|MYFIELD2|MYFIELD3" with corresponding value string "value1|value2|value3".
- Use # in front of field name to add new value, instead of replacing existing values. This can also be combined with the separators, for example: "MYFIELD|#MYFIELD|#MYFIELD".

Wow, I never knew that.  I guess that means I don't need this implemented in foo_custom_pc.  I can just use this as my last played field:

LAST_PLAYED|#PLAY_STAMP

Thanks for pointing that out, thuan!

edit: LAST_PLAYED|#PLAY_STAMP doesn't seem to work.

Some Playcounter mods

Reply #67
I released new version of foo_playback_custom.dll (v1.3.7).

Change log
Supported tag convertion function
  * You can convert the official playback statistics tag (including timestamp) to an another
  * You can convert tag to custominfo database and vice versa

download here

Please look at preference page.
"Convert old tag and Remove" check box and edit box are added.
convert souce : input tag or foo_custominfo database field name by the edit box
convert target : select by the combo box.
and play song, then to be converted.

>> mpioner san

Please use this version to convert the official tag.


>> thuan san

New version is able to convert tag to custominfo database and vice versa.
But not context command or not masstagger.
These are future tasks.

Some Playcounter mods

Reply #68
Wow, I never knew that.  I guess that means I don't need this implemented in foo_custom_pc.  I can just use this as my last played field:

LAST_PLAYED|#PLAY_STAMP

Thanks for pointing that out, thuan!

edit: LAST_PLAYED|#PLAY_STAMP doesn't seem to work.


That won't work. From my analogy, you should set your LAST_PLAYED field to #PLAY_STAMP. Unfortunately it doesn't work either. Looks like this only works with context menu. I hope somewhere in the SDK there's some thing similar but I don't have the SDK to check.

Some Playcounter mods

Reply #69

Wow, I never knew that.  I guess that means I don't need this implemented in foo_custom_pc.  I can just use this as my last played field:

LAST_PLAYED|#PLAY_STAMP

Thanks for pointing that out, thuan!

edit: LAST_PLAYED|#PLAY_STAMP doesn't seem to work.


That won't work. From my analogy, you should set your LAST_PLAYED field to #PLAY_STAMP. Unfortunately it doesn't work either. Looks like this only works with context menu. I hope somewhere in the SDK there's some thing similar but I don't have the SDK to check.

It turned out.
The Separater in tags is '\'.

In tags:
TEST=data 1\data 2\data 3\data 4

Result
$meta(TEST,0)=data 1
$meta(TEST,1)=data 2
$meta(TEST,2)=data 3
$meta(TEST,3)=data 4
$meta_num(TEST)=4

Some Playcounter mods

Reply #70
Possible bug: Even though I'm using custominfo database only mode, some times there're tag updating happens consistently file after file that I play and some times not (look at the console). Your component is the only one writing metadata during playing.

Some Playcounter mods

Reply #71
Possible bug: Even though I'm using custominfo database only mode, some times there're tag updating happens consistently file after file that I play and some times not (look at the console). Your component is the only one writing metadata during playing.

Sorry, it is bug. 

I released fixed version (v1.3.8).
Please try new version.

download here

Some Playcounter mods

Reply #72
I support topdownjimmys request.
I want to use those tags as history, but as it gets overwritten when a file is played again it doesn't really work, history shows the last time a song was played only.
So instead of overwriting the old date the plugin I'm looking for should replace it with "%oldvalue%, %currentdate%".

Some Playcounter mods

Reply #73

Possible bug: Even though I'm using custominfo database only mode, some times there're tag updating happens consistently file after file that I play and some times not (look at the console). Your component is the only one writing metadata during playing.

Sorry, it is bug. 

I released fixed version (v1.3.8).
Please try new version.

download here


Hi kitahei, thanks for your great work!

There's a simliar bug: I'm using custominfo database ony mode, but playback statistics custom still try to write to file metadata field when I'm using packed archives.

Some Playcounter mods

Reply #74
Another bug: when playing a song and encoding that same song, if playback statistic gets updated during the conversion process a sharing access violation will be thrown. This maybe caused by foo_custominfo I haven't investigated furthur.