HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Wolfbane on 2021-07-23 01:19:06

Title: Any plugin that does add date?
Post by: Wolfbane on 2021-07-23 01:19:06
So...

I add songs every week, to my playlist.
And sometimes I want to sort songs or see when I added a song to my playlist.

I know there are Metadata fields I can manually add/edit. But that would be insanely time consuming.

So... what Im wondering if there is any plugin or maybe even some default settings to FooBar I don't know about.
That when a song is added to my playlist then it automatically adds add information when it was added to the playlist?
Title: Re: Any plugin that does add date?
Post by: regor on 2021-07-23 08:56:15
Nope.  I would recommend you a masstagger script associated to a button, but as far as I know there is no TF function to get current date...
It would be trivial to add such thing to an SMP script for an specific playlist.

If you don't mind waiting, that's a feature planned to be added here
https://hydrogenaud.io/index.php?topic=120979.0

Specifically, I plan to add a configurable TF expression (+ some javascript functions) which can be attached to any playlist and would apply to new tracks (for tagging) when adding them. You could therefore apply different expressions to different playlist or only limit its usage to one playlist.
Title: Re: Any plugin that does add date?
Post by: anamorphic on 2021-07-23 12:44:10
Masstagger > 'Format value from other fields' can use %now% to get current system time.
Title: Re: Any plugin that does add date?
Post by: regor on 2021-07-23 13:07:17
Great to know it. Then you can use that in a new Masstagger preset, and bind that preset to a button applied to current selection. You would have to run it on new tracks added manually though.

Just finished implementing the auto-tag feature on Playlist Manager too, works fine. It replaces the configured tag (will not add new values to current ones).

X

On the example I have configured to add the result of a function to first tag and a string to the other tag. The function is executed in JavaScript and only those set on a given file can be called. In the example I used a "now" function. Alternatively, TF or %tag% can also be used.

Autotag would run every time a new track is added to the playlist (only) on the new tracks. If adding multiple copies of the same track, it tags them only once... even if it's done at different times.

Title: Re: Any plugin that does add date?
Post by: Air KEN on 2021-07-24 05:01:31
Hi  Wolfbane :)

File Date Time (foo_file_datetime.dll) (http://ux.getuploader.com/foobar2000/download/160/foo_file_datetime_v1.02.7z)
bottom button [ダウンロード] click > Next Page > bottom button [Download Now] click > Save

%file_created% → [yyyy-mm-dd hh:mm:ss}, $date(%file_created%) → [2021-07-24]
Playlist View > Columns >Add new
Name: File Created / Pattren: $date(%file_created%)

Menu > Edit > Sort > Sort by...
$sub(99999999,$replace(%file_created%,-,)) - $swapprefix(%album artist%) - $sub(3000,%date%) - %album% - %discnumber% - %tracknumber% - %title%

Menu > Libray > Seach > Create Auto Playlist
%file_created% DURING LAST 8 WEEKS SORT DESCENDING BY %file_created%
or
%file_created% DURING LAST 8 WEEKS
Playlist Manager > Playlistname right click > Autoplaylist... >
sort pattean:
$sub(99999999,$replace(%file_created%,-,)) - $swapprefix(%album artist%) - $sub(3000,%date%) - %album% - %discnumber% - %tracknumber% - %title%

Library All Tracks
ALL SORT DESCENDING BY %file_created%

Auto Playlist Property - Album List branach
$sub(99999999,$replace(%file_created%,-,)) - $swapprefix(%album artist%) - $sub(3000,%date%) - %album% - %discnumber% - %tracknumber% - %title%


(https://i.imgur.com/v03rZ9o.png)
Title: Re: Any plugin that does add date?
Post by: anamorphic on 2021-07-24 12:23:21
^ While this is good information, they did not want "File Created" date. They wanted "Date Added To Playlist" which is not recorded anywhere by default.
Title: Re: Any plugin that does add date?
Post by: Air KEN on 2021-07-24 12:40:09
@anamorphic

> They wanted "Date Added To Playlist"
I see. Sorry.

Playlist Search
Menu > Edit > Search

Query Syntax
https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Query_syntax
Time expressions
https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Query_syntax#Time_expressions
<time> DURING LAST
This is different, isn't it?
Title: Re: Any plugin that does add date?
Post by: regor on 2021-07-24 13:26:33
Nope because that applies to already saved date tags. But you can't retrieve the date added to the playlist (only the date added to foobar).

You may use masstagger as @anamorphic suggested to add the info manually.
Masstagger > 'Format value from other fields' can use %now% to get current system time.

Or you may use the SMP playlist manager as I did to add it automatically.