546
edits
Epoximator (talk | contribs) m (1.12) |
Epoximator (talk | contribs) (1.13) |
||
Line 9: | Line 9: | ||
:* 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] | ||
<b>Current Version hosted by epoximator:</b> | <b>Current Version hosted by epoximator:</b> | ||
:* WebAOM v1. | :* 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] | ||
<br> | <br> | ||
Line 35: | Line 35: | ||
===Tabs=== | ===Tabs=== | ||
:* Rules: | :* Rules: Rule system. See Move/Rename system. | ||
:* Options : All options. | :* Options : All options. | ||
:* Jobs: Table of files/work. | :* Jobs: Table of files/work. | ||
Line 49: | Line 49: | ||
::*Remote Port : Remote Port can be set here. | ::*Remote Port : Remote Port can be set here. | ||
::*Local Port : Local Port can be set here. Necessary if the default port is used by another application on your system. | ::*Local Port : Local Port can be set here. Necessary if the default port is used by another application on your system. | ||
::*Delay (sec) : Delay between each datagram sent to server. 3 | ::*Delay (sec) : Delay between each datagram sent to server. 3 seconds is minimum. Should be set higher if connection is poor or if much work is queued. | ||
::*Timeout (sec) : Timeout on receiving reply from AniDB. | ::*Timeout (sec) : Timeout on receiving reply from AniDB. | ||
:* File Options | :* File Options | ||
Line 82: | Line 82: | ||
A new feature in 1.09 is moving and renaming of files based on rules. This is implemented to ease administration of your anime files. The system may seem confusing at first, but it is actually pretty simple. Since the system performs virtually no error checking on the input you provide, it is recommended that you understand the system fully before using it. | A new feature in 1.09 is moving and renaming of files based on rules. This is implemented to ease administration of your anime files. The system may seem confusing at first, but it is actually pretty simple. Since the system performs virtually no error checking on the input you provide, it is recommended that you understand the system fully before using it. | ||
Notice that the system is under development. Expect radical changes. Feel free to request changes / comment. | |||
=== | ===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: | |||
<pre> | <pre> | ||
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 | |||
IF D(japanese);L(english) DO ADD '(SUB)' //Add (SUB) if the file is subbed in english | |||
IF D(japanese);L(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 | |||
DO ADD '(%CRC)' //Always add crc | |||
//this would create the schema "%eng (%ann) - %enr - %epn (SUB)[%grp](%CRC)" for a normal subbed file. | |||
</pre> | </pre> | ||
Note that end-of-line comments "//" are not supported atm, but "#" at beginning is. >'< around parts is not required. Example on move schema: | |||
<pre> | <pre> | ||
IF R(DVD,HKDVD) DO ADD 'M:\dvd\' | |||
ELSE DO ADD 'N:\tv\' | |||
IF Y(0-1999) DO ADD '199X\%year - %ann [%eps]' | |||
ELSE DO ADD '%year\%ann [%eps]' | |||
IF G(!unknown) DO ADD '[%grp]\' | |||
ELSE DO ADD '\' | |||
</pre> | |||
Syntax for each line in a script: | |||
:* [IF {test}/ELSE] DO ADD {part}/SET {part}/FAIL/FINISH | |||
::* ADD means += | |||
::* SET means = | |||
::* FAIL means return null; | |||
::* FINISH means return result; (Not needed as last line.) | |||
::* DO is always required. | |||
::* !!! CASE SENSITIVE !!! | |||
<b>Possible tests</b><br> | |||
:* A = Anime (text/number) [*/#] Anime Name/Title (Jap. Romaji) or aid. (E = English Title will probably be added in next version.) | |||
:* G = Group (text/number) [unknown, */#] Short name or gid. | |||
:* Q = Quality (text) [unknown, very high, high, med, low, very low, corrupted, eyecancer] | |||
:* R = ripSource (text) [unknown, camcorder, TV, DTV, VHS, VCD, SVCD, LD, DVD, HKDVD, www] | |||
:* T = Type (text) [unknown, TV, OVA, Movie, Other, web] | |||
:* Y = Year (number) [#] | |||
:* D = Dub Language (text) (Note: 'dual (jap/[lang2])' is replaced with 'jap&[lang2]') | |||
:* S = Sub Language (text) | |||
There is atm no support for wildcards, but lists (A,B,C,D), for strings and numbers, and ranges (0-1999,2001-3000), on numbers, is supported. ',' means OR. '!' means NOT. | |||
===Tags=== | ===Tags=== | ||
Line 158: | Line 148: | ||
%year | %year | ||
%eps Total number of episodes | %eps Total number of episodes | ||
%type | %type [unknown, TV, OVA, Movie, Other, web] | ||
%fid | %fid File ID | ||
%aid | %aid Anime ID | ||
%eid | %eid Episode ID | ||
%gid | %gid Group ID | ||
</pre> | </pre> | ||
== Changelog == | == Changelog == | ||
<pre> | <pre> | ||
1.13 26.09.2005 | |||
-Change in Rule system. Scripting. Textfield instead of table. | |||
-Fixed two bugs in parsing code thx to egg. | |||
-Fixed padding for specials thx to egg. | |||
1.12 24.09.2005 | 1.12 24.09.2005 | ||
-Added extra '0' padding in epnr when an anime serie got more than 99 episodes. Will only work when total num of eps is known. | -Added extra '0' padding in epnr when an anime serie got more than 99 episodes. | ||
Will only work when total num of eps is known. | |||
-Added support for dub language (D) and sub language (L) in tests. | -Added support for dub language (D) and sub language (L) in tests. | ||
-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 | -Added support for hentai (needs to be enabled in profile: http://anidb.info/perl-bin/animedb.pl?show=profile). | ||
-Fixed minor bugs. | -Fixed some minor bugs. | ||
1.11 22.09.2005 | 1.11 22.09.2005 |
edits