Help - Search - Members - Calendar
Full Version: masstagger scripts
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Uploads - (fb2k)
Fifoxtasy
i thought it would be cool to have a thread to share the masstagger scripts we use, they sure make life a lot easier wink.gif

if a thread like this already exists, forgive me, i couldn't find anything by searching.

ok here come mine:
hmmm .mts files can't be uploaded... .rar works


here are my scripts! Click to view attachment
contains:
*clean TITLE
*clean ARTIST
*clean ALBUM

they all do the same but for different fields; they convert: "_" -> SPACE, "%20" -> SPACE, "´" -> "'"
plus they capitalize every first letter ($caps2()). now also converts: "Dj " -> "DJ ", "Mc " -> "MC ", "Vs " -> "vs. ", "Vs. " -> "vs. ", "Feat " -> "feat. ", "Feat. " -> "feat. ", "Featuring " -> "feat. "

*remove iTunes Comment
checks if comment field starts with "iTunNORM: " and deletes it if it does, does nothing to normal comments. new iTunes version doesn't put the "iTUnNORM: " in the beginnning anymore... now this also deletes the comment if it starts with " 0000"


last update: 04.07.2006
Strictly4me
Hello!

Till now i was working with PLAY_DATE (27.06.05) and PLAY_TIME (18:04:06) to show "last playing" in playlist. This was the old version of tagging with foobar v8.0.X.
For my new foobar v0.9.2 i want use new taggingformat like LAST_PLAYED (2006-07-03 20:53:24)!
Maybe anyone know the correct code, to make a script for masstagger what can change my old tags to new one, in one step for all files? - Would be nice. THX!

((((( Strictly4me )))))
alphaex32
QUOTE (Strictly4me @ Jul 3 2006, 16:58) *
Till now i was working with PLAY_DATE (27.06.05) and PLAY_TIME (18:04:06) to show "last playing" in playlist. This was the old version of tagging with foobar v8.0.X.
For my new foobar v0.9.2 i want use new taggingformat like LAST_PLAYED (2006-07-03 20:53:24)!
Maybe anyone know the correct code, to make a script for masstagger what can change my old tags to new one, in one step for all files? - Would be nice. THX!

((((( Strictly4me )))))

Assuming your PLAY_DATE is in the DD.MM.YY format and your time is in HH:MM:SS, this should work:
CODE
$ifgreater($substr(%PLAY_DATE%,7,8),90,19$substr(%PLAY_DATE%,7,8),20$substr(%PLAY_DATE%,7,8))-$substr(%PLAY_DATE%,4,5)-$cut(%PLAY_DATE%,2) %PLAY_TIME%

Just set your %LAST_PLAYED% tag to the above using masstagger.
Strictly4me
QUOTE (alphaex32 @ Jul 4 2006, 00:18) *
Assuming your PLAY_DATE is in the DD.MM.YY format and your time is in HH:MM:SS,...

Yes, it is!
I will give it a try. Thanks again.

((((( Strictly4me )))))

EDIT:
@alphaex32
Works perfect! Big thanks!!! wub.gif
Fifoxtasy
you can find some more masstagger scripts here: Uploads For The Tag-standards Discussion
(mainly stuff for converting play_time and play_date to last_played)
cvax
Can anyone help me with a script that is able to determine the total runtime of an album and store that data into a tag? I can't seem to find a function that is able to cycle through and add up the times of all the tracks in an album. Thanks.
Strictly4me
Hello!

I have a lot of files, i had only played for one time!
Is there a way for a masstaggerscript to send LAST_PLAYED info to FIRST_PLAYED info, for those files?

Any help would be nice, thanks!

((((( Strictly4me )))))
Strictly4me
No one? sad.gif

EDIT: Already found!

((((( Strictly4me )))))
dayfly
Hello,

I wonder if someone could create a script which would capitalize every first letter of a word (in artist, album and title tag), except (small words not to be capitalized): a, an, the, and, but, or, nor, as, at, by, for, in, of, on, to.
Something similar can be found in 'Musikcube'. But since I don't want to use Musikcube only to capitalize the tags of my audio files, I really would look forward to have my foo doing this.
Maybe some faults Musikcube is doing could be avoided, e.g. Musikcube puts CD-1 after capitalizing to Cd-1, oder Test/Test --> Test/test which should remain Test/Test, also Intro: Blubb should NOT become Intro: blubb.
c0utta
Hi dayfly,

There's only one option - use $caps() to "proper case", and then use $replace() to replace those annoying little words.

Masstagger
Format value from other fields...
Pattern: $caps(%title%)$char(32)
(the space character is to catch those words at the end of the string, such as "Music to Kill By". Put a space at the front as well if you want to catch the words at the beginning, but I can't imagine a situation when you'd want to do this)

Format value from other fields...
Pattern: $replace(%title%, And , and , Cd , CD , Blah , blah )
(note the spaces surrounding each word)

Format value from other fields...
Pattern: $trim(%title%)
(remove the extra space(s) you added in the first step)

You won't catch everything though, and will need to resort to manual edits. For example, "Midnight Oil - US Forces".

Cheers,

c0utta
zmur
very useful thanks smile.gif
Synthetic Soul
This is an excellent idea for a thread; something I've vaguely thought about before.

It looks as though it's turning into a thread for people to request scripts, rather than provide them.

There is obviously a requirement for such a process: users requesting scripts and kind-hearted souls supplying them; however my concern is that the thread will just get totally smothered by requests, with a few useful scripts scattered about, difficult to find.

It seems to me that the wiki would be an ideal place to actually record useful, tested scripts; however, I get the impression that few people have asked for the rights to edit the wiki.

I'm happy to set a page up, and add the few scripts here so far, but the page can't obviously rely on one person; that's not the idea of a wiki. I suppose I, or other wiki editors, could port any scripts as and when they can be bothered, so the wiki may end up being constantly behind this thread. Do we want duplication though, could that cause problems?

As I say, I think this is a great idea. I'm just concerned that, in its current format, it is doomed to fail. I'm probably totally wrong; I know there are various gigantic threads with buttons and layouts, but personally I don't visit them.

Any thoughts?
Fifoxtasy
QUOTE (Synthetic Soul @ Jul 7 2007, 08:40) *
This is an excellent idea for a thread; something I've vaguely thought about before.

thank you very much for your compliment Synthetic Soul

QUOTE (Synthetic Soul @ Jul 7 2007, 08:40) *
It looks as though it's turning into a thread for people to request scripts, rather than provide them.

There is obviously a requirement for such a process: users requesting scripts and kind-hearted souls supplying them; however my concern is that the thread will just get totally smothered by requests, with a few useful scripts scattered about, difficult to find.

I thought so as well, i was quite disappointed that there were no contributions to this thread, but only requests for certain scripts.
when i started this thread more than a year ago i just put together some scripts thought them to be very useful and wanted to share them. i was curious to know what kind of scripts others used (especially those who are more skilled with programming and stuff wink.gif )

QUOTE (Synthetic Soul @ Jul 7 2007, 08:40) *
It seems to me that the wiki would be an ideal place to actually record useful, tested scripts; however, I get the impression that few people have asked for the rights to edit the wiki.

I'm happy to set a page up, and add the few scripts here so far, but the page can't obviously rely on one person; that's not the idea of a wiki. I suppose I, or other wiki editors, could port any scripts as and when they can be bothered, so the wiki may end up being constantly behind this thread. Do we want duplication though, could that cause problems?

As I say, I think this is a great idea. I'm just concerned that, in its current format, it is doomed to fail. I'm probably totally wrong; I know there are various gigantic threads with buttons and layouts, but personally I don't visit them.

Any thoughts?


Of course a wiki would be a better solution than a long thread that gets polluted with comments and requests. but i think it will take more time to maintain, i don't know, i'm not an expert. of course i am willing to upload my few scripts to a wiki and explain what they do. but who else will? i haven't seen anybody else uploading their scripts here, so who will do it on the wiki? where should we take the scripts from?

the problem with those huge button and layout threads doesn't account yet to masstagger scripts thread because it just didn't have enough contributions, so i think we don't have to decide now if we want to create a wiki, but can wait for later when this thread finally gets some life. if anybody wants to create a wiki page i would be honored to see the scripts i wrote there wink.gif

fifoxtasy
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-2009 Invision Power Services, Inc.