Hydrogenaudio Forums

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: fbuser on 2008-12-21 00:12:30

Title: foo_new_file_stamper_mod
Post by: fbuser on 2008-12-21 00:12:30
As promised here (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=66010&view=findpost&p=589397), I extracted the new file tagger from foo_cwb_hooks.

Download: [attachment=5214:foo_new_...mper_mod.7z]

It is only a maintenance release without any changes.
Title: foo_new_file_stamper_mod
Post by: baroughter on 2009-01-26 19:54:19
As promised here (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=66010&view=findpost&p=589397), I extracted the new file tagger from foo_cwb_hooks.

You can download the component here (http://88.79.136.46/~fbuser/foo_new_file_stamper_mod.7z).

It is only a maintenance release without any changes.


thank you for this.  it is exactly what I was looking for.
Title: foo_new_file_stamper_mod
Post by: baroughter on 2009-01-26 19:56:58
oops, I just realized I also need the "Stamp Time and Date" function from cwb_hooks also.  Is this available from a different component?
Title: foo_new_file_stamper_mod
Post by: fbuser on 2009-01-28 20:54:38
I wasn't aware that such a function was available in foo_cwb_hooks. Unfortunately it is not a simple task to add this function to foo_new_file_stamper_mod, because it was based on an old masstager API inside the SDK. The API is not available anymore, probably because the masstagger component was declared as deprecated at about the same time the API was removed from the SDK. It is not impossible to reimplement this function, so I will have a look, what I can do. But don't expect this to be done in the near future.
Title: foo_new_file_stamper_mod
Post by: tomthomson on 2009-02-14 13:22:20
oops, I just realized I also need the "Stamp Time and Date" function from cwb_hooks also.  Is this available from a different component?


i'm also looking forward to the implementation of this feature since i dont know any other way of creating values for the %added% tag besides the official playback statistics component.
the downside of the official component is that as far as i know it also updates the %added% value when i move my files from on folder to another but i want to add the %added%-tag to my files only once when i first listen to them..
Title: foo_new_file_stamper_mod
Post by: Frank Bicking on 2009-02-14 13:28:14
(...) i want to add the %added%-tag to my files only once when i first listen to them..

Sounds like you want %first_played% instead, which is also stored by the playback statistics component.
Title: foo_new_file_stamper_mod
Post by: tomthomson on 2009-02-17 11:23:54
ok, perhaps i should have written:
i want to add the %added%-tag to my files only once and the tag should be equal for all the files i add at a certain time (e.g. for all tracks of an album)
so the time of %added% and the time a track being first played differs since i add the added tag first and then listen to the tracks for the first time
Title: foo_new_file_stamper_mod
Post by: baroughter on 2009-02-18 19:06:03
i'd rather not use the playback statistics module, as it encodes the timestamp in win32 filetime, which is not human readable, and not compatible with various linux scripts i use.

so for now i am just using cwb_hooks.  works fine, except for the warning message.

i also realized there were a lot of great features in cwb_hooks -- like variables for the current playing playlist, playlist length, etc.  of course, they don't work anymore.
Title: foo_new_file_stamper_mod
Post by: ladiko on 2009-05-25 09:43:51
uhh great, the new files tagger =D

thank you fbuser!

but i also "need" a variable for the current date + time to add it as %added% tag, so i can have a autoplaylist with all new added files - played or not played - like %cwb_systemdatetime%
Title: foo_new_file_stamper_mod
Post by: q-stankovic on 2009-05-25 19:28:39
Ladiko,

What's wrong with the official playcount component - mainly as it it is so much easier to save that info?
Title: foo_new_file_stamper_mod
Post by: ladiko on 2009-05-26 07:12:22
because:
* it writes the information on the first playback, so in real it is not the "added" tag but the "first played" tag
* it writes the information to a separate file and not to the file, this is why i use foo_playback_custom
* the timestamp tags of the official playcount are unreadable, but thats not the biggest problem
* i want to have an autoplaylist of all new to the media library added songs to play them - i dont want a autoplaylist of all first time played tracks
Title: foo_new_file_stamper_mod
Post by: eradumvelhinho on 2009-05-26 07:23:43
because:
* it writes the information on the first playback, so in real it is not the "added" tag but the "first played" tag
* i want to have an autoplaylist of all new to the media library added songs to play them - i dont want a autoplaylist of all first time played tracks


That's not correct. You have a %added% field in this component. It's the time that the file was first added to the database and NOT the time the file was first pllayed (that's %first_played%).

So you can do a search like:

%added% DURING LAST 1 WEEK SORT DESCENDING BY %added%

and you will get all the files that you added to the database in the last week
Title: foo_new_file_stamper_mod
Post by: ladiko on 2009-06-04 18:18:05
this would mean that all my tracks in the media library should have an %added% tag?! but if i configure Preferences -> Advanced -> Display -> Properties Dialog -> Standard fields to
Code: [Select]
Artist=ARTIST;Title=TITLE;Album=ALBUM;Track=TRACKNUMBER;Total Tracks=TOTALTRACKS;Disc=DISCNUMBER;Total Discs=TOTALDISCS;Date=DATE;Genre=GENRE;Comment=COMMENT;Album Artist=ALBUM ARTIST;Composer=COMPOSER;Performer=PERFORMER;Added=ADDED;First Played=FIRST_PLAYED;Last Played=LAST_PLAYED;Play Counter=PLAY_COUNTER
the property field "Added" is empty for a file that is in the monitored media library path since about 2 weeks?!

by the way, if it works: how to create a file tag from this media library meta tag?
Title: foo_new_file_stamper_mod
Post by: eradumvelhinho on 2009-06-04 22:01:20
this would mean that all my tracks in the media library should have an %added% tag?
by the way, if it works: how to create a file tag from this media library meta tag?


%ADDED_TIMESTAMP% it's the name of the field. A file tag? You mean writing in the file? If you synchronize (preferences--> advanced--> tools-->playback statistics) you will get what you want.
Title: foo_new_file_stamper_mod
Post by: ladiko on 2009-06-05 06:24:20
ahh! i use Playback Statistics Custom - that's why i doesnt have an added date!?
Title: foo_new_file_stamper_mod
Post by: eradumvelhinho on 2009-06-05 11:05:32
ahh! i use Playback Statistics Custom - that's why i doesnt have an added date!?


You have to use the official one, if you want the field %added_timestamp%
Title: foo_new_file_stamper_mod
Post by: ladiko on 2009-06-05 12:27:12
everything i want is a variable for the current time 

everything else is only a workaround.
Title: foo_new_file_stamper_mod
Post by: Fractal_Mortality on 2009-06-06 20:25:18
How does one configure this plugin to automatically tag the "%added%" field when adding songs to library?
Title: foo_new_file_stamper_mod
Post by: ladiko on 2009-06-30 08:20:04
ok now it's near!

Quote
Latest news
2009-06-21
Multiple optional components have been updated.
Masstagger (version 1.8.2): Added %now% in "format from other fields", various cosmetic changes.


1.) Masstager
clear all other actions
Add -> Format value from other field:
destination field name: ADDED
formatting pattern: $if2(%added%,%now%)
ok
name it f.e. "Add added date" in the lower part of the window and save it

2.) New file tagger
File -> Preferences -> Tools -> New File Tagger
Select "Tagging\Scripts\Add added date" from the list.

BUT: there is a bug!
it only shows the current time if you add or edit the tagging rule "format value from other field". if you load a saved script or just run it from the files context menu, it will only write ADDED="?"

(http://img268.imageshack.us/img268/3564/nowt.th.png) (http://img268.imageshack.us/i/nowt.png/)
Title: foo_new_file_stamper_mod
Post by: ladiko on 2009-06-30 08:25:51
ok now it's near!

Quote
Latest news
2009-06-21
Multiple optional components have been updated.
Masstagger (version 1.8.2): Added %now% in "format from other fields", various cosmetic changes.


1.) Masstager
clear all other actions
Add -> Format value from other field:
destination field name: ADDED
formatting pattern: $if2(%added%,%now%)
ok
name it f.e. "Add added date" in the lower part of the window and save it

2.) New file tagger
File -> Preferences -> Tools -> New File Tagger
Select "Tagging\Scripts\Add added date" from the list.

But there is a bug: Masstager 1.8.2 - Bug in new variable %now% (http://www.hydrogenaudio.org/forums/index.php?showtopic=73099)
Title: foo_new_file_stamper_mod
Post by: ladiko on 2009-06-30 09:57:31
Bug fixed in Masstager 1.8.3
Title: foo_new_file_stamper_mod
Post by: Fractal_Mortality on 2009-10-29 13:38:54
Is there any way to have this component do multiple actions to incoming files?

Example:

-Scan Files for Replaygain
-Fix Mp3 VBR Header
-Add "Added" date
Title: foo_new_file_stamper_mod
Post by: ladiko on 2009-10-29 14:47:33
only tagging is possible.
Title: foo_new_file_stamper_mod
Post by: Fractal_Mortality on 2009-10-29 21:00:06
No it's not, I already have it scan my incoming files with replaygain:

(http://img338.imageshack.us/img338/668/clipboard02ii.jpg)
Title: foo_new_file_stamper_mod
Post by: ladiko on 2009-10-29 21:51:28
ahh ok sorry, so it is capable of executing one context menu entry for the new files. so maybe it would be more helpful to have something like a makro recorder for foobar which also creates context menu entries that can be run by hand and by new files tagger?!
Title: foo_new_file_stamper_mod
Post by: baroughter on 2009-12-25 16:04:03
I finally got around to using Masstagger's new ability to stamp the current time!  Thanks again for making this new file tagger component.  Finally I can delete cwb_hooks and foobar's accursed deprecated component warning.
Title: foo_new_file_stamper_mod
Post by: michinosora on 2010-04-29 13:14:54
this component is great! thx a lot!
Title: foo_new_file_stamper_mod
Post by: muzack on 2010-06-22 12:39:30
I wish that more than one action could be applied to incomming files.
Is it possible that someone update this Component? I am not familar with programming components :-(
cheers m.
Title: foo_new_file_stamper_mod
Post by: delusion on 2011-07-20 22:36:41
thx for this plugin. very useful for my setting at home.
for our radio-station, i would love to see a plug-in, that can set actions to files added to a (specific) playlist.
but maybe this would be easier to implement in the playlist-attributes-plugin?
thx anyways
Title: foo_new_file_stamper_mod
Post by: kode54 on 2011-07-21 00:57:19
While we're bumping two year old topics about components that nobody should be using because they are probably made obsolete by newer components, I thought I'd add that while the timestamp tags maintained outside of the tracks by the Playback Statistics component may be formatted into human readable timestamps using the title formatting functions listed here (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Title_Formatting_Reference#Time.2FDate_Functions). Simple integer math functions may also be used to convert the numbers to Unix timestamps as well, if those are preferred:
Code: [Select]
$sub($div(timestamp,10000000),11644473600)
Title: Re: foo_new_file_stamper_mod
Post by: Xerus on 2017-07-16 20:30:05
By what was this made obsolete? Because I need this feature, but this plugin is for the older foobar version
SimplePortal 1.0.0 RC1 © 2008-2018