WebAOM: Difference between revisions

2,296 bytes added ,  1 July 2011
m
mNo edit summary
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{TOCright}}
{{TOCright}}


WebAOM is a simple Java applet/application that hash files and add them to your [[MyList]] at AniDB. It is made for those who don't want to or cannot install [[AOM|AniDB O'Matic]]. The name may be inaccurate/misleading since it does not replace AOM in any way. It is based on the [[UDP API Definition|UDP API]] and is therefore limited.
'''WebAOM''' is a simple Java applet/application that hash files and add them to your [[MyList]] at AniDB. It is made for those who don't want to or cannot install [[AOM|AniDB O'Matic]]. The name may be inaccurate/misleading since it does not replace AOM in any way. It is based on the [[UDP API Definition|UDP API]] and is therefore limited.


All questions, feature requests and bug reports can be post in the [[http://anidb.net/perl-bin/animedb.pl?show=threads&id=17 AniDB Forum > Other Clients]] forum.
All questions, feature requests and bug reports can be post in the [[http://anidb.net/perl-bin/animedb.pl?show=threads&id=17 AniDB Forum > Other Clients]] forum.
Line 26: Line 26:
:* By clicking ''Folders...''
:* By clicking ''Folders...''
:* By writing the path to a directory in the ''Options/Other/Hash Dirs'' field.
:* By writing the path to a directory in the ''Options/Other/Hash Dirs'' field.
:* By dragging and dropping files into the ''Job'' tab.
: You will see the files you selected in the ''Job'' tab.
: You will see the files you selected in the ''Job'' tab.


Line 75: Line 76:
** Add files to MyList.
** Add files to MyList.
** [[Filestates]]
** [[Filestates]]
** [[Mylist:source]]
** [[mylist:source]]
** [[Mylist:storage]]
** [[mylist:storage]]
** [[Mylist:comment]]
** [[mylist:comment]]
** [[Mylist:watched]]
** [[mylist:watched]]
* Other
* Other
** Hash Dirs : Default directories to hash. Checked every time the hasher thread starts. Directories are separated with ";". It's not recommended to edit this string when the Hasher is running.
** Hash Dirs : Default directories to hash. Checked every time the hasher thread starts. Directories are separated with ";". It's not recommended to edit this string when the Hasher is running.
Line 87: Line 88:
** Load DB on startup : Connect and load the database on startup.
** Load DB on startup : Connect and load the database on startup.
** Auto log : Start logging to disk automatically.
** Auto log : Start logging to disk automatically.
** [http://en.wikipedia.org/wiki/Hash_function Hash functions] : [http://en.wikipedia.org/wiki/Ed2k_(hash) ED2K] [http://en.wikipedia.org/wiki/CRC32 CRC32] [http://en.wikipedia.org/wiki/MD5 MD5] [http://en.wikipedia.org/wiki/SHA1 SHA1] [http://en.wikipedia.org/wiki/Tiger-Tree_Hash TTH]
** [[Wikipedia:Hash function|Hash functions]] : [[Wikipedia:Ed2k (hash)|ED2K]] [[Wikipedia:CRC32|CRC32]] [[Wikipedia:MD5|MD5]] [[Wikipedia:SHA1|SHA1]] [[Wikipedia:Tiger-Tree Hash|TTH]]
* Wanted File Extensions : Default are avi, ogm, mkv, mp4.
* Wanted File Extensions : Default are avi, ogm, mkv, mp4.
* Rules (in own tab)
* Rules (in own tab)
Line 102: Line 103:
* Explore Folder : Open parent folder with Explorer. Windows only.
* Explore Folder : Open parent folder with Explorer. Windows only.
* Rehash : Use this if you want rehash and include other hash types. (Must be selected in 'Other' options.)
* Rehash : Use this if you want rehash and include other hash types. (Must be selected in 'Other' options.)
* Identify : Re-identify the file. Can be used on 'Unknown' files to check if they are added to anidb.
* Identify : Re-identify the file. Can be used on 'Unknown' files to check if they are added to AniDB.
* Add to MyList : Add file manually if you forgot to check 'Add files to MyList'.
* Add to MyList : Add file manually if you forgot to check 'Add files to MyList'.
* Remove from MyList : Remove file from MyList.
* Remove from MyList : Remove file from MyList.
Line 199: Line 200:
For renaming and moving files WebAOM needs schemas. A schema is just a string with tags, where each tag corresponds to file/anime data. Ex: <tt>"%ann - %enr [%crc]"</tt>. (See [[WebAOM#Tags]]) The point with the rule system is that you can customize these schemas so different types of files can be renamed different ways, and moved to different locations. To build the schemas you have to write two simple scripts; one for renaming and one for moving. Example on rename schema:
For renaming and moving files WebAOM needs schemas. A schema is just a string with tags, where each tag corresponds to file/anime data. Ex: <tt>"%ann - %enr [%crc]"</tt>. (See [[WebAOM#Tags]]) The point with the rule system is that you can customize these schemas so different types of files can be renamed different ways, and moved to different locations. To build the schemas you have to write two simple scripts; one for renaming and one for moving. Example on rename schema:


<pre>
IF A(Naruto) DO FAIL //Do not rename file if it is Naruto
IF A(Naruto) DO FAIL //Do not rename file if it is Naruto
DO ADD '%eng (%ann) - %enr - %epn ' //Add the base, same for all files
DO ADD '%eng (%ann) - %enr - %epn ' //Add the base, same for all files
IF D(japanese);S(english) DO ADD '(SUB)' //Add (SUB) if the file is subbed in english
IF D(japanese);S(english) DO ADD '(SUB)' //Add (SUB) if the file is subbed in english
IF D(japanese);S(none) DO ADD '(RAW)' //Add (RAW) if the file is not subbed.
IF D(japanese);S(none) DO ADD '(RAW)' //Add (RAW) if the file is not subbed.
IF G(!unknown) DO ADD '[%grp]' //Add group name if it is not unknown
IF G(!unknown) DO ADD '[%grp]' //Add group name if it is not unknown
DO ADD '(%CRC)' //Always add crc
DO ADD '(%CRC)' //Always add crc
#this would create the schema "%eng (%ann) - %enr - %epn (SUB)[%grp](%CRC)" for a normal subbed file.
#this would create the schema "%eng (%ann) - %enr - %epn (SUB)[%grp](%CRC)" for a normal subbed file.
</pre>


' around parts is not required. Example on move schema:
' around parts is not required. Example on move schema:


<pre>
IF R(DVD,HKDVD) DO ADD 'M:\dvd\'
IF R(DVD,HKDVD) DO ADD 'M:\dvd\'
ELSE DO ADD 'N:\tv\'
ELSE DO ADD 'N:\tv\'
IF Y(0-1999) DO ADD '199X\%year - %ann [%eps]'
IF Y(0-1999) DO ADD '199X\%year - %ann [%eps]'
ELSE DO ADD '%yea\%ann [%eps]'
ELSE DO ADD '%yea\%ann [%eps]'
IF G(!unknown) DO ADD '[%grp]\'
IF G(!unknown) DO ADD '[%grp]\'
ELSE DO ADD '\'
ELSE DO ADD '\'
</pre>


'''Syntax for each line in a script:'''<br>
'''Syntax for each line in a script:'''


<tt>[[ELSE] IF {test}/ELSE] DO ADD {part}/SET {part}/FAIL/FINISH [{last part}]/RETURN {complete schema}</tt>
<tt>[[ELSE] IF {test}/ELSE] DO ADD {part}/SET {part}/FAIL/FINISH [{last part}]/RETURN {complete schema}</tt>
Line 267: Line 264:
|text
|text
|Episode number
|Episode number
|-
|X
|text
|Total number of episodes
|-
|-
|Q
|Q
Line 298: Line 299:
|N
|N
|text
|text
|[http://anidb.info/perl-bin/animedb.pl?show=genren Category] (one of)
|{{AniDBLink|genren|Category}} (one of)
|-
|-
|I
|I
|text
|text
|Tag is defined. Do not use %, ie. I(eng) [eng, kan, rom, ...]
|Tag is defined. Do not use %, i.e. I(eng) [eng, kan, rom, ...]
|-
|-
|C
|C
Line 311: Line 312:
|text
|text
|Unequal tags. <tt>U(eng:ann)</tt> checks that both <tt>%eng</tt> and <tt>%ann</tt> are defined and unequal.
|Unequal tags. <tt>U(eng:ann)</tt> checks that both <tt>%eng</tt> and <tt>%ann</tt> are defined and unequal.
|-
|L
|text
|Equal tags. <tt>L(eng:ann)</tt> checks that both <tt>%eng</tt> and <tt>%ann</tt> are defined and equal.
|-
|Z
|text
|Equal tags with [http://www.regular-expressions.info/reference.html regexp]. Z(tag:[http://www.regular-expressions.info/reference.html regexp])
|}
|}


Line 368: Line 377:
|%eps || Total number of episodes
|%eps || Total number of episodes
|-
|-
|%typ || Type [unknown, TV, OVA, Movie, Other, web]
|%typ || Type [unknown, TV, OVA, Movie, TV Special, Other, web]
|-
|-
|%gen || Category string
|%gen || Category string
Line 405: Line 414:


== Changelog ==
== Changelog ==
<div style="font-size: 75%;">
<div style="height: 280px; overflow: auto; padding: 3px; border:1px solid #AAAAAA; font-size: smaller">
1.19n 2009.10.12
*Fix of username length & character restrictions
 
1.19m 2009.09.29:
*Fixed the %yen tag (Was returning yea at a part).
 
1.19m 2009.09.10:
*WebAOM could only handle 999 files before it started doing bad things; updated limit to 99,999 files.
 
1.19m 2009.09.02:
*Temp Fix for Incorrect renames during dropped requests [ommina].
*Fixed Export/Import Function so they are now actually able to import data.
*Added test L(tag:tag) which returns true if both tags are defined and equal.
*Added test Z(tag:regexp) which returns true if tag is defined and regular expression is true.
*Added tag %yen which is set to end year of anime.
*Made it so if Extension List is empty, all files are processed.
*Undocumented "X(text)", "ASSUME [SPECIAL] num", "TRUNCATE<num, tag>", %lep tests/tags added to xml help.
 
1.19l 02.11.2007:
*Changed A() from exact match to regexp.
*Fixed %cen tag.
*Fixed links.
 
1.19k 27.10.2007:
*Fixed I() so it works for %cen too.
 
1.19j 29.09.2007:
*Fixed jtb.size @ db (int->bigint).
*anidb.info -> anidb.net
 
1.19i 04.07.2007:
*Added test X for number of episodes. "IF X(1)" -> true if total num = 1.
*Added possibility to use relative path in move rules -> DO ADD '.\' (on windows)
 
1.19h 16.07.2007:
*Fixed applet version.
 
1.19g 15.07.2007:
*Fixed NullPointerException @ RecDir (introduced in d) thx to s2d4theworld.
*Added support for 64 bit file sizes.
*Added LookAndFeel switch.
*Removed rules dropdown. Controlled in the rules tab.
 
1.19f 19.05.2007:
*Fixed ArrayIndexOutOfBoundsException when anime has only special eps.
*Fixed file moving issue with absolute path on Linux systems.
*Added correction of file extension.
 
1.19e 17.05.2007:
*Added test U(tag:tag) which returns true if both tags are defined and unequal.
 
1.19d 21.04.2007:
*Fixed ArrayIndexOutOfBoundsException when epno is 0.
*Improved/fixed applet behavior.
*Ignore widows network paths.
 
1.19c 24.03.2007:
*Added rule help menu. Right click in text editor.
 
1.19b 10.02.2007:
*Fixed default job columns.
 
1.19 20.11.2006:
1.19 20.11.2006:
*Fixed 'year' parsing exception.
*Fixed 'year' parsing exception.
Line 551: Line 622:
*Added support for NOT (!) in tests.
*Added support for NOT (!) in tests.
*Added tags %kan = Jap. Kanji Title and %eng = English Title. (If null then %ann is used.)
*Added tags %kan = Jap. Kanji Title and %eng = English Title. (If null then %ann is used.)
*Added support for hentai (needs to be enabled in profile: http://anidb.info/perl-bin/animedb.pl?show=profile).
*Added support for hentai (needs to be enabled in profile: {{AniDBLink|profile}}).
*Fixed some minor bugs.
*Fixed some minor bugs.
   
   
Line 581: Line 652:
   
   
1.08 05.07.2005
1.08 05.07.2005
*Updated mylist file states.
*Updated MyList file states.
*Updated file info parser (renamer was broken).
*Updated file info parser (renamer was broken).
   
   
MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.