WebAOM: renaming question

misc client related stuff

Moderators: AniDB, AniDB API

yusenda1
Posts: 7
Joined: Wed May 16, 2007 10:33 am
Location: NERV HQ
Contact:

WebAOM: renaming question

Post 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!
epoximator
AniDB Staff
Posts: 379
Joined: Sun Nov 07, 2004 11:05 am

Post by epoximator »

that's not possible, but i can add support for it. what syntax do you suggest? how should it handle undefined values?
yusenda1
Posts: 7
Joined: Wed May 16, 2007 10:33 am
Location: NERV HQ
Contact:

Post 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?
Rar
AniDB Staff
Posts: 1471
Joined: Fri Mar 12, 2004 2:41 pm
Location: UK
Contact:

Post 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
epoximator
AniDB Staff
Posts: 379
Joined: Sun Nov 07, 2004 11:05 am

Post by epoximator »

Code: Select all

IF U(eng:ann) DO ADD '-[%eng]'
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
yusenda1
Posts: 7
Joined: Wed May 16, 2007 10:33 am
Location: NERV HQ
Contact:

Post 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

Code: Select all

IF U(eng:ann) DO ADD '-[%eng]'
means? ValUe comparison? So I want to say "value NOT the same" the syntax will be:

Code: Select all

IF U(!eng:ann) DO ADD '-[%eng]'
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?
epoximator
AniDB Staff
Posts: 379
Joined: Sun Nov 07, 2004 11:05 am

Post by epoximator »

yusenda1
Posts: 7
Joined: Wed May 16, 2007 10:33 am
Location: NERV HQ
Contact:

Post 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?
epoximator
AniDB Staff
Posts: 379
Joined: Sun Nov 07, 2004 11:05 am

Post by epoximator »

yeah, 1.19e
yusenda1
Posts: 7
Joined: Wed May 16, 2007 10:33 am
Location: NERV HQ
Contact:

Post 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 ?
yusenda1
Posts: 7
Joined: Wed May 16, 2007 10:33 am
Location: NERV HQ
Contact:

Post 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" ?
epoximator
AniDB Staff
Posts: 379
Joined: Sun Nov 07, 2004 11:05 am

Post by epoximator »

ok, the jnlp pointed to wrong file. fixed now
yusenda1
Posts: 7
Joined: Wed May 16, 2007 10:33 am
Location: NERV HQ
Contact:

Post 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" ?
epoximator
AniDB Staff
Posts: 379
Joined: Sun Nov 07, 2004 11:05 am

Post by epoximator »

it's U
Rar
AniDB Staff
Posts: 1471
Joined: Fri Mar 12, 2004 2:41 pm
Location: UK
Contact:

Post by Rar »

NO, U!

Rar
Locked