Help - Search - Members - Calendar
Full Version: Suggestion: flexibility in Masstagger/Renamer
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Bilange
Unless im missing something, I see that I cannot use variables in masstagger or file renamer.

I had a few files named with underscores instead of spaces, and without any ID3's tags. So i tried to 'guess the values from filename', then wanted to rename the file using the %ARTIST% etc, but guess what, i cant use functions sad.gif

I would write something like "$replace(%ARTIST%,_, )", for example.

So my suggestion is to have function available there..

My 2 canadian cents. (Near $USD 0.01)

(Mods: Feel free to move the topic where its supposed to be. Im no devlopper, so i thought it was not the place for suggestions.)
Florian
You can use the variables and function within the rename function. Please make sure, that the file isn't played when you try to rename it.

~ Florian
billcow
Also, if you want to set a value using variables & functions, you can use the "format value from other fields" function instead of set/copy field.

Incidentally, my next project is looking like it might be a masstagger makeover, featuring at the very least presets and a better way of using variables (like a checkbox to select between parsing TAGZ strings and not (for speed purposes)), and (if I can figure it out) possibly even Lua, Ruby, or (blech) LISP scripting for it.

Of course, that all depends on how long I remain in a non-programming mood, but knowing me, it'll probably blow over when i get my car fixed/a new car.
foosion
QUOTE(billcow @ Sep 14 2003, 10:17 PM)
Incidentally, my next project is looking like it might be a masstagger makeover, featuring at the very least presets and a better way of using variables (like a checkbox to select between parsing TAGZ strings and not (for speed purposes)), and (if I can figure it out) possibly even Lua, Ruby, or (blech) LISP scripting for it.

Adding Lua support isn't that hard, in fact, I already have a Lua plugin for foobar. It's still missing several features (including ease of use), so I didn't really advertise it.

I already thought about a Masstagger-like plugin that would use Lua for actions, presets and macros (basically parametrized presets, or actions that make use of other actions, even ones written in C/C++). I think the GUI would probably be the most difficult part. Well, I didn't have the time to make any progress on that.

So if you need help with using Lua in a plugin, just ask. Even if you do not integrate Lua into such a plugin (assuming you do find the time/motivation to code it), here's my first feature request:
- Make added actions editable!
billcow
QUOTE
Adding Lua support isn't that hard, in fact, I already have a Lua plugin for foobar. It's still missing several features (including ease of use), so I didn't really advertise it.

Yeah, that's actually what gave me the idea. That, and the desire to allow for custom actions, so I wouldn't have to go about merging all the various masstagger mods (such as tradersfriend (which, BTW, has permanently replaced my standard masstagger)).

QUOTE
Make added actions editable!

Tell me about it. Fortunately, seeing as it's stored in an editable form already, it would simply be a question of setting the GUI to load the existing values instead of defaults.

In any case, even if I don't embed a real scripting language, I'm probably going to at least make use some sort of regular expression engine to allow for customizable reading of a text file (so, with a suitable copy comamnd and either SED/Excel/other scriptable program, one could import the text back in using whatever layout they wish). Most of them allow for extensible syntax, so i could use a (?V:varname:pattern) construct or something like that.
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.