staff
2,096
edits
Epoximator (talk | contribs) mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{TOCright}} | {{TOCright}} | ||
'''Author:''' [[User:epoximator|epoximator]]<br> | |||
'''OS:''' Java VM<br> | |||
'''Main Features:''' | |||
:* ed2k, crc32, md5, sha1, tth hashing<br> | :* ed2k, crc32, md5, sha1, tth hashing<br> | ||
:* file add to [[mylist]]<br> | :* file add to [[mylist]]<br> | ||
:* custom file renaming and moving<br> | :* custom file renaming and moving<br> | ||
'''Current Version hosted by AniDB:''' | |||
:* WebAOM v1.08 (beta) [http://www.anidb.net/client/webaom.htm Applet] | [http://www.anidb.net/client/webaom.jar JAR] | [http://www.anidb.net/client/webaom.jnlp Webstart] | :* WebAOM v1.08 (beta) [http://www.anidb.net/client/webaom.htm Applet] | [http://www.anidb.net/client/webaom.jar JAR] | [http://www.anidb.net/client/webaom.jnlp Webstart] | ||
'''Current Version hosted by epoximator:''' | |||
:* WebAOM v1.13 (beta) [http://www.stud.ntnu.no/~jovetlea/webaom/index.htm Applet] | [http://www.stud.ntnu.no/~jovetlea/webaom/webaom.jar JAR] | [http://www.stud.ntnu.no/~jovetlea/webaom/webaom.jnlp Webstart] | :* WebAOM v1.13 (beta) [http://www.stud.ntnu.no/~jovetlea/webaom/index.htm Applet] | [http://www.stud.ntnu.no/~jovetlea/webaom/webaom.jar JAR] | [http://www.stud.ntnu.no/~jovetlea/webaom/webaom.jnlp Webstart] | ||
== Introduction == | == Introduction == | ||
Line 86: | Line 85: | ||
===Scripting=== | ===Scripting=== | ||
For renaming and moving files WebAOM needs schemas. A schema i just a string with tags, where each tag corresponds to file/anime data. Ex: "%ann - %enr [%crc]". (See tag chart below.) 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 i just a string with tags, where each tag corresponds to file/anime data. Ex: "%ann - %enr [%crc]". (See tag chart below.) 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: | ||
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) ADD '[%grp]' //Add group name if it is not unknown | IF G(!unknown) 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. | ||
Note that end-of-line comments "//" are not supported atm, but "#" at beginning is. >'< around parts is not required. Example on move schema: | Note that end-of-line comments "//" are not supported atm, but "#" at beginning is. >'< around parts is not required. Example on move schema: | ||
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 '%year\%ann [%eps]' | ELSE DO ADD '%year\%ann [%eps]' | ||
IF G(!unknown) DO ADD '[%grp]\' | IF G(!unknown) DO ADD '[%grp]\' | ||
ELSE DO ADD '\' | ELSE DO ADD '\' | ||
Syntax for each line in a script: | Syntax for each line in a script: |