Help - Search - Members - Calendar
Full Version: Need help with foo_converter directory spec
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
xsdaver
I've used the same command for years and it has stopped working with the new release of foobar. I have two directories, one for new stuff ripped with flac and one for MP3. When I rip something new, I put it into the directory structure called New. When I'm done ripping, I drag all the stuff in the New directory structure into foobar, right click, and choose convert. The idea is it goes into the MP3 directory structure in the same place. Here's the single tracks command:

$replace(%path%,'M:\Audio\New\',,%filename_ext%,%filename%)

When I convert, I point to the root of MP3 Audio as the last step after right clicking on the songs and selecting convert. What used to happen is the stuff in M:\Audio\New\A\Artist\Album\Songs.flac went into MP3 Audio\A\Artist\Album\Songs.mp3. Now everything goes into the root of MP3. I've tried many variations, none work. Some of those are:

$replace(%path%,M:\Audio\New\,,%filename_ext%,%filename%)
$replace(%path%,M:\Audio\New,,%filename_ext%,%filename%)
$replace($replace(%path%,M:\Audio\New,),%filename_ext%,%filename%)
$replace($replace(%path%,M:\Audio\New\,),%filename_ext%,%filename%)
$replace(%path%,'M:\Audio\New','',%filename_ext%,%filename%)

The preview in preferences is correct for all the above, the implementation is not.

Help.

Dave
buktore
What is "stop working" mean? It doesn't convert at all and show error message? or giving wrong result?

Your code seem overcomplicated for a this task but I tried using..

CODE
$replace(%path%,D:\ALL MUSIC\OST\,,%filename_ext%,%filename%)


which is the same as yours and it work fine so I don't know what happen to your code.

You might want to try these.. It's the same as your code but it might work for you.

CODE
$replace($directory_path(%path%),M:\Audio\New\,)\%filename%
xsdaver
What I mean by stopped working is it puts the files into the MP3 root instead of the intended path below it. Your suggestion does the same thing, it puts the file into the MP3 directory itself instead of the intended path further down the tree.

Dave


QUOTE(xsdaver @ Jul 9 2008, 20:17) *

What I mean by stopped working is it puts the files into the MP3 root instead of the intended path below it. Your suggestion does the same thing, it puts the file into the MP3 directory itself instead of the intended path further down the tree.

Dave


Actually, if I select one song, it puts it into the root of MP3. If I pick more than one it puts them into the correct directory. This is using your command line. Hmmm.

Dave
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.