Page 1 of 2
WebAOM: renaming question
Posted: Wed May 16, 2007 11:01 am
by yusenda1
This is the rule for renaming that I currently use:
Code: Select all
IF G(!unknown) DO ADD '[%grp]-'
DO ADD '%ann' #alway add romaji the romaji
IF I(eng) DO ADD '-[%eng]' #add English title if exist
IF T(!Movie) DO ADD '-%enr' #Use the ep number if it is not a movie
IF T(Movie) DO ADD '-%epn'
DO ADD '-[%CRC]' //Always add crc
Sometime it resulted in something like this:
Final_Fantasy_Unlimited_[Final_Fantasy_Unlimited]_02_[Soldats]_[99f526f3].avi
if %eng and %ann has same value.
How do I make a rule to prevent this, say to add the english name only if %eng exist AND %eng and %ann is not the same value.
Any help apreciated!
Posted: Wed May 16, 2007 12:56 pm
by epoximator
that's not possible, but i can add support for it. what syntax do you suggest? how should it handle undefined values?
Posted: Wed May 16, 2007 11:16 pm
by yusenda1
I would suggest this kind of syntax:
Code: Select all
IF I(eng);!((eng)=(ann)) DO ADD '-[%eng]
sort of direct comparison of values.
I don't have any knowledge on Java, so I cannot suggest how it should be done practically.
Thanks for the great support epoximator, you've done a great job!
On the side note, there's also a bug that crashed WebAOM whenever it fails 3 times ("Retry #3 failed") to check file identities on anidb. After that failure, the only upper side button that left clickable are the "HELP" button, which is no help at all. I usually have to restart WebAOM and begin hashing again from very beginning. Is it a known bug or do I have to report it at a bug thread?
Posted: Wed May 16, 2007 11:27 pm
by Rar
yusenda1 wrote:I would suggest this kind of syntax:
Wait, is aiming for the worst possible combination of basic and perl some kind of in-joke I'm missing?
Rar
Posted: Thu May 17, 2007 7:53 am
by epoximator
ah, beautiful..
it's supposed to "lock down" after three timeouts. it really shouldn't happen too often, though. you could try to set the timout higher
Posted: Thu May 17, 2007 10:23 am
by yusenda1
Rar wrote:
Wait, is aiming for the worst possible combination of basic and perl some kind of in-joke I'm missing?
No joke here Rar, just my (totally) rusted coding ability.
Anyway, what does "U" in
means? ValUe comparison? So I want to say "value NOT the same" the syntax will be:
since I only want to add the english name when %eng exist and it is not the same with %ann .
Err, does it even work that way?
Posted: Thu May 17, 2007 10:34 am
by epoximator
Posted: Thu May 17, 2007 1:51 pm
by yusenda1
Wow,
that was fast!
Big thanks epoximator!
So this U thing is implemented as 1.19d or what?
I just need to download the latest ver isn't it?
Posted: Thu May 17, 2007 2:11 pm
by epoximator
yeah, 1.19e
Posted: Thu May 17, 2007 3:02 pm
by yusenda1
hmmmm strange...
Each time I empty the cache and re-download the app from Java Web Start (ver 6 update 1) I got ver 1.19c.
How do I get to 1.19e ?
Do I use the jar ?
Posted: Thu May 17, 2007 3:14 pm
by yusenda1
Ok, I've got the 1.19e via the jar.
But there's something at the info window:
1.19e 17.05.2007:
*Added test O(tag:tag) which returns true if both tags are defined and unequal.
So is it "U" or "O" ?
Posted: Thu May 17, 2007 3:14 pm
by epoximator
ok, the jnlp pointed to wrong file. fixed now
Posted: Thu May 17, 2007 4:36 pm
by yusenda1
The JNLP still mis-linked, I keep on getting 1.19c even after emptying my browser cache.
Also, is it "O" or "U" ?
Posted: Thu May 17, 2007 5:26 pm
by epoximator
it's U
Posted: Thu May 17, 2007 11:48 pm
by Rar
NO, U!
Rar