Help - Search - Members - Calendar
Full Version: foobar filerenamer bug
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
stampgevaar
I'm using this code and most of the time it works perfectly

%album%\$if(%disc%,cd$num(%disc%,1),)\['['$if2(%vinyltrack%,%tracknumber%)']' ]%title% - %artist%

problem is when I have a dubble cd in the same directory and I choose move entire parent directories, preserve structure and file names that it keeps making the folder cd1 without stopping => which is quite f*** up cause I can't delete this anymore

So is this my code or is this a bug cause now I have to reformat my disk cause renaming the folders doesn't help.
wraithdu
Could you explain in a little more detail your directory structure, where you're moving files, and why you have to reformat your drive? What can't you delete? Some more information would be helpful.
stampgevaar
I move files from my my documents to a external harddisk and I do this to a folder that's called compilations. but when I have a single disk album and I do this with "move entire parent directories, preserve structure and file names " then everything goes alright. but when I have the mp3 files of a multiple disk in the same directory. and I choose to "move entire parent directories, preserve structure and file names " then there's a bug thats making my path look like this:
F:\compilations\albumname\cd1\cd1\cd1\cd1\cd1\cd1\cd1\cd1\cd1\cd1\cd1\cd1\cd1\cd1\cd1\cd1\cd1... etc etc and I can't delete this in windows (because the path is to long, I tried to rename al the folders but they keep coming and coming and at a certain point I can't go further and I can't delete them either) so I reformatted my external disk. Not that it's such a disaster because I have a backup but it's very annoying.

Also when the double cd its path is album\cd1 and album\cd2 and I then select those tracks to move them to my external disk then this problem doesn't seem to occur but the album art that's located in album\ isn't moved.

Sorry for being so incomplete and sorry for my lack of good English but I hope I have made myself understandable
wraithdu
I understand perfectly what you're describing. As far as why....I'll have to think on it.
stampgevaar
Do you maybe know who's the creator of this plugin maybe I should tell al of this to him... cause I have no idea where I should look
wraithdu
I had this whole thing typed out, then my brain hurt, then I realized I was crazy.

So here's try #2 -

I don't know exactly why or how, but I think you're confusing the masstagger since you are basically telling it to move the files from cd1 into a new directory and take everything else with it. However 'everything else' includes the files from cd2. And vice versa, not to mention both times it would want to take the common jpg files. You'd have to ask a developer exactly how this would confuse things, but you can see it's bad.

Solution? From my perspective you should separate the discs into 2 folders (cd1 and cd2) and copy your albumart to each. This is if you want to use the masstagger to move mp3s and other associated files. It should be ok to just move the files without parent directories and others. You could use xcopy after the fact to move other files if you want.

I would also slightly change your code (which may solve the whole thing, again I don't know and I'm sorry to say I'm not willing to test it out) -

CODE
%album%\$if(%disc%,cd$num(%disc%,1)\,)['['$if2(%vinyltrack%,%tracknumber%)']' ]%title% - %artist%


I moved the \ after $if(%disc%...) inside the $if() statement. That way, if there is no disc number, masstagger isn't trying to create another directory level. IE something that would look like this -

albumname\\[01]title - artist
stampgevaar
You fixed the whole cd1\ map making thing but all the files are put in cd1 but you were right about the cd1 cd2 thing before moving the files, I only had the problem when the mp3 of cd1 and cd2 are in the same directory. but it doesn't matter that much I'm just going to manually move these albums. I have my music back so I'm happy.

and thanks for helping me btw
wraithdu
Is it moving everything into a directory called 'cd1' if you just move the files and not 'move with parents, etc'? Your string seems good to separate files by disc#, so that would be strange.
stampgevaar
aah there's the problem will try it out when I'm at home
stampgevaar
hehe it's working only the covers and nfo's of double cds are not automatically moved but that's not that of a big deal cause I download them with the discogs plugin so it can be done everytime thanks mate biggrin.gif

Ooh and btw what's the real difference when just moving files or when you move the entire parent directory?
wraithdu
Operationally (in other words how the program actually determines what it's going to do) I don't really know. But as you've seen, moving parent directories and files will take anything that is not an mp3/flac/etc with the music files to the new location.

So without it, any images, cuesheets, etc. will be left behind.
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.