INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Convert format and dynamic filing  (Read 1949 times)

Z0001

  • Citizen of the Universe
  • *****
  • Posts: 541
Convert format and dynamic filing
« on: May 27, 2015, 05:57:53 pm »

When converting audio format is it possible to set a dynamic folder location? I have wav files like

...[file type]\[album artist]\[album]\[Disc number if >1]

And want exactly the same structure but flac instead of wav. My files are tagged, so I guess I could rename after converting to a hilding folder, but it would be nice to do it in one go, plus there may be the odd file thats not tagged in MC  according to its embedded data. I tried using [album artist] etc in location folder of the convert dialogue but this just created sub folders like "[album artist]"

Cheers
z
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Convert format and dynamic filing
« Reply #1 on: May 27, 2015, 07:30:13 pm »

I don't know if you can use expressions in Tools > Options > File Locations.  If so, this expression in place of the [Disc #] field should do the trick:

Code: [Select]
if(isempty([Disc #],1),,[Disc #])
That's what I use in my Rename, Move, and Copy Files Directories Template, and it works perfectly.

Like I said, though, I don't know if you can use them in File Locations.  If not, rip to a temp location and do Rename, Move, and Copy Files on them right afterwards.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Convert format and dynamic filing
« Reply #2 on: May 27, 2015, 07:32:51 pm »

It looks like you can. I have that in my Folder Rule for Audio Rips.  Mine is:
Code: [Select]
[Artist Letters]\[Artist]\[Album]\if(isempty([Disc #],1),,[Disc #])\
I think it works.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Convert format and dynamic filing
« Reply #3 on: May 27, 2015, 08:58:22 pm »

^ The OP is asking about conversion, as in Library Tools > Convert Format.  Not ripping CDs, which I believe is the only place that file location stuff is used.

I've tried what the OP has, with putting [Tag Name] into the directory field on conversion and it's not interpreted; it's taken literally.  There is an option for "create N levels of directory" with this.  What that does, is simply look at the existing file's directory structure and re-creates those same directories however deep you tell it to.  Useful-ish, but not what the OP is after.

I agree with Glynor's last suggestion:  Convert and then move with Rename, Move, and Copy tool.

Brian.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Convert format and dynamic filing
« Reply #4 on: May 27, 2015, 09:22:51 pm »

^ The OP is asking about conversion, as in Library Tools > Convert Format.

Doh. Reading comprehension failure.  Sorry, and thanks Brian.

Yes, the Convert Format tool doesn't allow this.  I typically convert-in-place (using the Convert to the same folder as original files option) which negates the need to do anything at all after the fact (as long as the files are in the right spot to begin with).  Or, use Rename, Move, and Copy Files afterwards, whichever works best for you!
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Z0001

  • Citizen of the Universe
  • *****
  • Posts: 541
Re: Convert format and dynamic filing
« Reply #5 on: May 29, 2015, 03:20:38 am »

Thanks guys. Rename, Copy ... It is then. Cool
Logged
Pages: [1]   Go Up