[Logo] Jaikoz and SongKong Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
auto-correct year, with just year, not full date  XML
Forum Index -> General
Author Message
mano_lito

Enthusiast

Joined: 19/03/2011 18:29:20
Messages: 15
Offline

hello jaikoz users,

I was wondering if this is possible:

Everytime I use autocorrect, if modifies the year column with month and day, and I want jaikoz to always use only the year, so then when modifying the folders names according to tags, it uses only the year in format XXXX.

is it possible to set up autocorrect to change the year only and not use month and date?

thanks a lot
greengeek

Pro
[Avatar]

Joined: 18/09/2007 02:50:48
Messages: 435
Offline

i have mine set to only show the xxxx date. It does not include the month or day. I think it might be the setting in the preferences under the local correct tab, and then under the year correct tab. Make sure the year is set to store year and not store date.

My year section in my rename mask looks like this:

Code:
  (year.length>0  ? '(' + year + ') ' : '')
 


basically verifies there is a year, then if there is, adds it in parenthesis, like (2012)

KevinBluemel.com
Contemporary Instrumental Musician and Composer. Stop by to listen, watch videos, and get free downloads of songs and sheet music.
[WWW]
pschonmann

Pro
[Avatar]
Joined: 30/11/2008 14:02:22
Messages: 239
Offline

Yeah completly simple for normal users.
I hate this renaming since was introduced.

Support Jaikoz! I did it!
[Email] [WWW]
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7208
Offline

The trouble with the old syntax is that it was too simple, you couldn't specify if/else and other constraints and functions

Do you have any knowledge of another scripting language that could be used instead which might be easier to work with.

thanks Paul (Administrator)
pschonmann

Pro
[Avatar]
Joined: 30/11/2008 14:02:22
Messages: 239
Offline

I know the reason why this is usefull, but normal people doesnt understand syntax anymore. If youre lack of ideas to make it easier and/or user friendly add lots of presets which everybody can use or try to modify on the rename tab.

Support Jaikoz! I did it!
[Email] [WWW]
mano_lito

Enthusiast

Joined: 19/03/2011 18:29:20
Messages: 15
Offline

I still don't get it;

I don't want any parenthesys, I haven't got any problem with parenthesys so far, I just want Jaikoz not to write day nor month when autocorrecting:

- Is this possible?
- What should I do to solve this?


thanks a lot!!!
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7208
Offline

Code:
(year.length>0  ? year.substring(0,4)  : '')

thanks Paul (Administrator)
mano_lito

Enthusiast

Joined: 19/03/2011 18:29:20
Messages: 15
Offline

thank you so much Paul. It's awesome to have such a fast support.

Now, the questin is; where should I write that syntax? in what part of the preferences?

I think this should be default on the preferences when jaikoz is installed, as normally most people just want to have the year in their metadata, not month or day
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7208
Offline

Oh I might have misunderstood you, this was for only using the year part in the filename mask. If you only want to see the year in the field itelf then just set

Preferences:Local Correct:Year Correct:What should Year contain to Store Year

thanks Paul (Administrator)
mano_lito

Enthusiast

Joined: 19/03/2011 18:29:20
Messages: 15
Offline

I think I did not explained myself properly;

When I click autocorrect in Jaikoz, by default it corrects the release date, with a format YYYY-MM-XX on the metadata. I want it to be just YYYY, in both the metadata, and also later when correcting folders with the information from the metadata.

Right now i managed to be able to correct folders from metadata and it uses only the year when renaming the foldes, but in the metadata field, it still shows month and day too. Is it possible to fix this? thanks a lot again!!!!
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7208
Offline

Have you tried the option I posted, doesnt that do that ?

thanks Paul (Administrator)
mano_lito

Enthusiast

Joined: 19/03/2011 18:29:20
Messages: 15
Offline

paultaylor wrote:
Have you tried the option I posted, doesnt that do that ? 


i tried that and it works perfectly when renaming the file from the metadata; in the metadta it says for example 1972-03-24, and then when renaming file or folder it says only 1972. so that is great.

the problem is than in the metadata it still shows the large date XXXX-XX-XX, i'd like it to show just the year. this is specially necessary with autocorrect, becuase some times autocorrect is great to fix artwork or even the date too, but then i have to remove month and day and copy and paste. would be nice to do it automatically and i guess jaikoz has the functionality to do so without many problems.
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7208
Offline

I meant the Preferences:Local Correct:Year Correct:What should Year contain to Store Year option. However I tried this and unfortunately it has no effect when you do Autocorrect Metadata from Musicbrainz this will still put the full date in it if it has it,

However if you do set the option, and then run Action:Local Correct:Correct Years the year column will then be updated to only inclue the date

thanks Paul (Administrator)
mano_lito

Enthusiast

Joined: 19/03/2011 18:29:20
Messages: 15
Offline

paultaylor wrote:
I meant the Preferences:Local Correct:Year Correct:What should Year contain to Store Year option. However I tried this and unfortunately it has no effect when you do Autocorrect Metadata from Musicbrainz this will still put the full date in it if it has it,

However if you do set the option, and then run Action:Local Correct:Correct Years the year column will then be updated to only inclue the date  


that's awesome. now i understand. thanks a lot again, problem solved!!!
alicjanowakxd


[Avatar]

Joined: 30/01/2017 06:00:50
Messages: 1
Location: Poland
Offline

J'ai ce problème. C'est un excellent conseil pour moi Merci.

now or never
[Email] [ICQ]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.6 © JForum Team