WebAOM: Difference between revisions

20 bytes removed ,  8 October 2005
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{TOCright}}
{{TOCright}}
<b>Author:</b> [[User:epoximator|epoximator]]<br>
'''Author:''' [[User:epoximator|epoximator]]<br>
<b>OS:</b> Java VM<br>
'''OS:''' Java VM<br>
<b>Main Features:</b>
'''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>
<b>Current Version hosted by AniDB:</b>
'''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]
<b>Current Version hosted by epoximator:</b>
'''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]
<br>


== 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:
<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) 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.
</pre>
 
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:
<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 '%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 '\'
</pre>


Syntax for each line in a script:
Syntax for each line in a script:
staff
2,096

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.