| Author |
Message |
|
|
paultaylor wrote:
TinCanFury wrote:
I'll just use Picard to move/name the files until I can do the same in Jaikoz. Do either Jaikoz or Picard store the disc subtitle anywhere in the music tags?
Jaikoz doesnt apart from in the release title if desired (as explained above), I think Picard can store in a seperate field.
is there any intent to have Jaikoz support the discsubtitle field?
|
 |
|
|
lately it's been sending me this link:
http://www.jaikoz.com/jaikozforum/posts/list/624512.page#11492
for the thread at
http://www.jaikoz.com/jaikozforum/posts/list/4512.page
|
 |
|
|
paultaylor wrote:
Heh I only picked U2 because it short and we have limited space.
yes, fair, but it does make the example mask less useful for all but the most simple cases.
paultaylor wrote:
Sounds like good ideas, if only I had unlimited resources ......
just a proposal ;-) if using different sample metadata is possible, having is would make the example mask much more useful.
paultaylor wrote:
Understood, it will get added. In the meantime I suppose you could forgo disc subtitle without loss of function, but you would lose that disc subtitle information as I can see from your example you can't put it into the main title.
I'll just use Picard to move/name the files until I can do the same in Jaikoz. Do either Jaikoz or Picard store the disc subtitle anywhere in the music tags?
thanks!
|
 |
|
|
paultaylor wrote:
TinCanFury wrote:
Ah, but I still haven't figured out how to "extract" information from variables, I'd like to be able to do the same with the date to extract the year.
I think there is an example for this somewhere. Alterntaively if you are happy for the only the year to be displayed in the metadata as well as the filename you can just set Preferences:Local Correct:Year Correct:What Should the Year Contain to Store Year
ah, yes, sorry, the
string.substring(from, to)
command. so I'd assume, year.substring(0,4)
it looks to work in the editor example mask, but I don't trust it for a few reasons, I don't believe that entry has enough data to really test some "obscure" things in the tags, and I really do not like U2.
But ignoring my second reason, I'd like to propose an improvement to this tab, A) use an entry with more "full" metadata like:
http://musicbrainz.org/release/e4c0a2dc-49cb-382b-9bb3-a40d09669583
which has multiple discs, a full date, and disc subtitles.
for compilations, something like:
http://musicbrainz.org/release/42de9718-7009-4008-b4b5-d95b0973023d
which has all the above and is a various artist release.
OR, better yet but possibly more difficult to implement, put a field just above the example masks where the user can insert the musicbrainz or discogs release identifier and the mask will operate on the metadata for that specific release.
paultaylor wrote:
[
is there a chance that disc subtitles could get it's own variable?
Actually why do you want to extract it out, if it has been put into the title why don't you use that. For me to give it its own variable there would have to be a Jaikoz field for that data to be stored in, and at the moment that information either gets added to release title or just gets thrown away after a match to Musicbrainz.
I suppose I could add it as it appears to be one of the few fields that can be stored seperately in Picard but not Jaikoz.
https://docs.google.com/spreadsheet/ccc?key=0AoYQhIuWC-gcdHZwUDM3RGhneGMxSXpEX3pONXd6MWc&hl=en_US#gid=0
Here's the format I'd like for my releases:
Album Artist/[year] Album Name/disc 1: disc subtitle/
so for instance:
The Smashing Pumpkins/[1995] Mellon Collie and the Infinite Sadness/disc 1: Dawn to Dusk/
The Smashing Pumpkins/[1995] Mellon Collie and the Infinite Sadness/disc 2: Twilight to Starlight/
I also don't like my filenames to be too long, preferring track number and track title as being the only info "left" to be stored in the overall path+filename.
This partly has to due with how my HTPC system's music player organizes itself, but also how I like to be able to browse through my music folders on a PC. If I want to listen to the entirety of a multi-disc album I need to select the main directory for that album and have the discs organized by directory under it to have it play through all in order. BUT I also want to be able to play one disc only for albums where the second disc is things like outtakes, interviews, etc.
So, I could add the disc number to the filename, ie
disc-tr
1-01, 1-02, etc
2-01, 2-02, etc
3-01, 3-02, etc
which would let me play them in order without each disc having a sub-album, but it would not make it easy to not play one disc without the other(s).
From there, I figure, if I have each disc as a separate directory, it would be nice to be able to also have the disc's subtitle as part of the directory name too. Since I can do this in Picard right now I use it for my final moving and renaming, but I would, of course, prefer to use Jaikoz.
thanks!
|
 |
|
|
paultaylor wrote:
Hi, no there isn't, but the disc subtitle is added to the release title if set in
Preferences/Remote Correct/Format/Multi Disc Releases
so you could extract it from the title if you wanted.
Ah, but I still haven't figured out how to "extract" information from variables, I'd like to be able to do the same with the date to extract the year.
is there a chance that disc subtitles could get it's own variable?
thanks!
|
 |
|
|
is there a variable for the disc subtitle name? (%discsubtitle% in picard)? I don't see it in the overall list.
thanks!
|
 |
|
|
rpm4fsu wrote:
year.length>0 is checking to see if there are one or more characters in the year field. Are you sure there is a year value?
no, that's part of the problem, I don't know, but if it does exist I'd like to use it.
rpm4fsu wrote:
To test the syntax of the if statement try
Code:
(year.length>0 ? '[' + 'TRUE' + ']' : 'FALSE')
If this works then you know the syntax is OK. Now you can replace 'TRUE' with year and 'FALSE' with ''.
If you want to test the TRUE and FALSE sides of the if statement you can just change > to <.
Your second request is not so easy. There are so many formats of the year data it would not be an easy task to just pull out the year.
from what I've seen, and I believe it's how the musicbrainz data is stored, the year format is always just the 4 digit year or the 4 digit year followed by the month/day. in Picard I use this:
$if(%date%,[$left(%date%,4)]
which basically says if there is date information, thake the left hand 4 digits only. I'd like this, but, of course, in javascript.
thanks!
|
 |
|
|
rpm4fsu wrote:
Are you familiar with the "Example Mask" and "Example Compilation Mask" in the Preference/File and Folder Correct/Rename Folder from Metadata?
Jaikox has some built-in data that you can test your script with.
yes, I've been using it, the problem is when you start doing nested IF statements it's not as useful to figure out where it's "broken" and not working.
rpm4fsu wrote:
I was not sure if the sample data had a disctotal value greater than one, so I used disctotal>0 assuming that the sample data had a value of 1.
I just wanted to do get the "if" statement working. This is how I found the missing "+" sign.
Once I got it working with disctotal>0 the I know the syntax is OK and I can then change it to disctotal>1 knowing that it works.
gotcha! makes sense, wasn't sure if the >0 was for another reason.
thanks!
|
 |
|
|
Code:
(year.length>0 ? '[' + year + '] ' : '')
doesn't seem to work. I'd like to have it so it places the year without the month/day if it exists in the metadata.
thanks!
|
 |
|
|
rpm4fsu wrote:
Your code is rather complicated so what I would suggest break it down to simple parts and try some test. The "Example Mask" is your friend and can save you time with simple tests.
So try the following
( disctotal>0 ? folderseparator : ' ') Example Mask shows "/"
We will assume that disctotal is greater than 0. See if you get a folderseparator in the Example Mask.
NOTE: To get the changes to take affect click in the compilation mask box if you are working in the rename mask box.
Just keep adding to the javascript until it stops working.
( disctotal>0 ? folderseparator + 'disc ' : '') Example mask shows "/disc"
( disctotal>0 ? folderseparator + 'disc ' discno : '') Example mask shows nothing. So added discno caused the problem
the "+" is missing between 'disc ' and discno.
( disctotal>0 ? folderseparator + 'disc ' + discno : '') Example mask shows "/disc 1"
Hope this helps.
a little, why disctotal>0? I don't want a disc folder if there is only one disc.
my problem with the "example" thing is it completely won't work if one of the "if" statements is "broken".
thanks!
|
 |
|
|
ok, so to see if a field has information we use
trackno.length>0
or
album.length>0
etc?
also, is there a way to include relationship information (like "featuring" artists, or "cover of" artists)?
how do I insert the disc sub title?
also, I'm trying this, but it's saying it's invalid:
Code:
(albumartistsort.length>0 ? albumartistsort +folderseparator :
(artistsort.length>0 ? artistsort + folderseparator :
(albumartist.length>0 ? albumartist + folderseparator :
(artist.length>0 ? artist + folderseparator : ''))))
+ (year.length>0 ? '[' + year + '] ' : '') + album ( disctotal>1 ? folderseparator + 'disc ' discno + folderseparator :'')
I assume it's from disctotal>1, but how do I get it to see if the value of disctotal is a number greater than 1?
|
 |
|
|
Robert: Thanks for that excellent explanation!
For Jaikoz, is there a way to do regexp or similar replacements? So, for instance, renaming bands whose names start with "The ..." to move the "The" part to the end, "..., The"?
|
 |
|
|
I'm not really sure what I'm looking for as far as "javascript reference" for this.
would you mind sharing a link or two that I can read over?
thanks!
|
 |
|
|
Is there a writeup somewhere of how the, now new, rename mask scheme works?
I have a "highly customized" one I use in MusicBrainz' Picard app and I've been using that to move/rename my files because of that, but if I can get Jaikoz to perform the same way it would make my life that much easier.
thanks!
|
 |
|
|
|
trying to figure it out some more, it seems like it may be due to the track length causing compilations to be chosen above original albums.
|
 |
|
|