WebAOM: Difference between revisions

Jump to navigation Jump to search
175 bytes removed ,  12 May 2009
m
no edit summary
mNo edit summary
mNo edit summary
Line 87: Line 87:
** 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 199: Line 199:
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:'''<br>
Line 298: Line 294:
|N
|N
|text
|text
|[http://anidb.info/perl-bin/animedb.pl?show=genren Category] (one of)
|{{AniDBLink|genren|Category}} (one of)
|-
|-
|I
|I
Line 551: Line 547:
*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.
   
   
1,633

edits

Navigation menu

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