IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

tag 'script' to print out DISC 1, DISC 2.. etc
diypig
post Nov 17 2012, 16:24
Post #1





Group: Members
Posts: 95
Joined: 3-February 08
Member No.: 51013



hi, i had a look through the wiki at conditional tagging, and i tried looking on google, but i'm still stuck.
i make a lot of use out of foobar's 'file operations' menu, i use the 'move to' option, and use it to organize my music into folders that makes everything more managable.

at the moment i have something like this:

CODE
%album artist%/%album%[ '('%date%')']/%tracknumber% - %title%


i'm not sure why the date in enclosed in the square brackets, but it has been like that for months and it works smile.gif
could anyone explain what the square brackets do?

i have a problem when i come across a release with multiple disks, it wants to put all of the tracks in the one release directory.

i want something like this:

album artist
-album (date)
--DISC 1
---01 - etc etc etc.flac
---02 - etc etc etc.flac
--DISC 2
---01 - etc etc etc.flac
---02 - etc etc etc.flac

i was hoping that someone could help me with the syntax/code to make this possible smile.gif
is it possible to ignore the disc folder if there is only 1 disc? as in, if the disk total tag, or whatever it is called, is 1, or empty, then to simply ignore making the disc subfolders?

thank you very much for this, i appreciate it!

p.s. also, what is the difference between using $meta(something..) and %something%? are they interchangeable?
thanks again smile.gif
Go to the top of the page
+Quote Post
 
Start new topic
Replies
diypig
post Nov 17 2012, 18:45
Post #2





Group: Members
Posts: 95
Joined: 3-February 08
Member No.: 51013



oh wow! thank you so much!
ah, ok, i had a feeling it was something like that (the [ ] thing), thanks.
and ah, thanks for the $meta explanation!
so when it is not a special case like artist, or some thing else maybe (you said %artist% will check some tags in order, but $meta(artist) will only use artist), but if i were to use $meta(customtag) and %customtag%, there is no difference right? that is what i assume smile.gif


hmm, things get a bit tricky, people say it is your own preference etc, but, of course, some people do not know all of the options available to them, so, in what other ways could i do it? you say it can be done with more complicated code, but, what would be the point, if that what you gave me does it?
don't get me wrong, i am not trying to be critical at all, i just want to understand how else it could be done smile.gif
thank you for offering to help/adjust things!

so, my files are tagged quite simply i think, nothing rally out of the ordinary.
by that i mean, i use the artist, album artist, track, date, track/total track, disc/total disc tags, an extra custom tag or two but that is not in the file names at all.
i avoid genre, i personally really hate it, that is just me smile.gif i don't find that i can apply a 'genre' to some bands, some albums, .. etc.
i have about 250GB of flac files, i store them on my computer, and for use on my iPod (240gb hard drive)

the way you have me will work perfectly for my tags and for the layout i want!
i suppose i could change it to [DISC %discnumber% - %discsubtitle%/] or something, some discs have a 'name', but sure, i didn't realise it was as simple as that.

ah, wait, hmm... ok, so if i have this: [DISC %discnumber%/] it will only show, and insert that folder if there is an entry in discnumber, but what if i have two tags, like that example i put above, with the subtitle. what if one existed, but one did not? would i have to change it to this?:
[DISC %discnumber%[ - %discsubtitle%]/]
thank you for all of your help!

-edit. and yeah, i store my files how i showed in the first post, firstly i have the album artist as a folder, then release with the year in brackets as a folder, then the file like 01 - title.flac. i doubt that is so different to most people smile.gif

This post has been edited by joshuatm: Nov 17 2012, 18:50
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th August 2014 - 02:36