Help - Search - Members - Calendar
Full Version: Executing Masstagger script on library scan
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Leech
Hi,

I want to add a new tag (ADDED) to each file with the current datetime value when it's added to the library, so it will able me to create a playlist_tree query that will show me new additions to the library based in a time range (1 week before).

I've asked in the foo_playlist_tree library topic about a variable or something in the library or database that says when it was added but no luck.

Anyone know a good solution for this?
db78
QUOTE(Leech @ May 15 2007, 09:47) *

Hi,

I want to add a new tag (ADDED) to each file with the current datetime value when it's added to the library, so it will able me to create a playlist_tree query that will show me new additions to the library based in a time range (1 week before).

I've asked in the foo_playlist_tree library topic about a variable or something in the library or database that says when it was added but no luck.

Anyone know a good solution for this?


If I understand it correctly you want to basically have a playlist of recently added, correct me if I'm wrong, it's quite early and I've gotten no sleep. Anyways I'm not sure how you would do it with playlist tree because I don't use it, I did it through autoplaylist. But here's a thread that I created asking how to set up a recently added playlist, tell me if you can get it set up. If not I'll try to walk you through it base on what I know.

Recently Added
Leech
Oh, nice..

Good.. I've tried the autoplaylist and looks nice.
But thanks to your post I can imagine how to do it using Playlist Tree.

Thank you! smile.gif
db78
QUOTE(Leech @ May 15 2007, 12:36) *

Oh, nice..

Good.. I've tried the autoplaylist and looks nice.
But thanks to your post I can imagine how to do it using Playlist Tree.

Thank you! smile.gif


By the way, I found a bit of a problem with the sorting that someone offered in the thread. It would sort my albums in this totally random order. I wanted to sort my recently added playlist by first when it was added. And then if it's an album, all the songs are grouped under the album based on tracknumber. here's how my queries & sorting is setup with my autoplaylist.

CODE
Query: %date added% HAS "-" AND "$cwb_datediff(%date added%,%cwb_systemdatetime%)" LESS 4
Sort Format: $sub(999999999999,$replace($left(%date added%,$sub($len(%date added%),3)),'-',,':',,' ',)),%album%,%tracknumber%


You're going to want to replace "cwb_systemdate" with "cwb_systemdatetime" in both the query and custom info. Here's the thread with a little more detail.
Other Thread
shakey_snake
Did we really have to create a new thread for this?
I already answered your question in the playlist_tree thread.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.