User:Fahrenheit: Difference between revisions

From AniDB
Jump to navigation Jump to search
Line 27: Line 27:
==== Patterns available ====
==== Patterns available ====


; %ann : Anime Title (uses default language definitions)
; %ant : Anime Title (uses default language definitions)
; %anja : Anime Title japkanji (defaults to %ann)
; %anat : Anime Alternative Title
; %anro : Anime Title romaji (default fallback language)
; %ept : Episode Title (uses default language definitions)
; %anen : Anime title english (defaults to %ann)
; %epat : Episode Alternative title
; %epn : Episode Title (uses default language definitions)
; %epja : Episode title japkanji (defaults to %epn)
; %epro : Episode title romaji (defaults to %epn)
; %epen : Episode title english (default fallback language)
; %enr : Episode number
; %enr : Episode number
; %pn : Part name ("EP" if anime.type != 4 || "PA" otherwise)
; %pn : Part name ("EP" if anime.type != 4 || "PA" otherwise)
; %pnf : Full part name ("Episode" if anime.type != 4 || "Part" otherwise)
; %fpn : Full part name ("Episode" if anime.type != 4 || "Part" otherwise)
; %raw : if file is raw (no subtitles outputs RAW)
; %raw : if file is raw (no subtitles outputs RAW)
; %crc : Crc sum or INVALID if crc invalid
; %crc : Crc sum or INVALID if crc invalid
; %CRC : Crc sum (in caps) or INVALID if crc invalid
; %CRC : Crc sum (in caps) or INVALID if crc invalid
; %ver : Version string (only if version > 1)
; %ver : Version string (only if version > 1)
; %cen : Censored string
; %cen : Censored string (cen)
; %uncen : Uncensored string (cen)
; %dub : Dub languages (ALL OF THEM, comma separated)
; %dub : Dub languages (ALL OF THEM, comma separated)
; %sub : Sub languages (ALL OF THEM, comma separated)
; %sub : Sub languages (ALL OF THEM, comma separated)
; %lang : dub.sub_jp+.de+ (current db format)
; %lang : dub.sub_jp+.de+ (current db format)
; %langs : dub.sub_jp,de,en.de,en (extended format)
; %flang : dub.sub_jp,de,en.de,en (extended format)
; %grp : Group short name
; %grp : Group short name
; %grn : Group full name
; %grn : Group full name
Line 52: Line 49:
; %src : Source
; %src : Source
; %res : Resolution
; %res : Resolution
; %vid : Video codec
; %vcodec : Video codec (first video stream)
; %acodec : Audio codec (first audio stream)
; %achans : Audio channels (first audio stream)
; %eps : Total number of episodes
; %eps : Total number of episodes
; %type : [unknown, TV, OVA, Movie, Other, web]
; %atype : [unknown, TV, OVA, Movie, Other, web]
; %fid : File ID
; %fid : File ID
; %aid : Anime ID
; %aid : Anime ID
; %eid : Episode ID
; %eid : Episode ID
; %gid : Group ID
; %gid : Group ID
; %dlen : file size (bytes, dot separated)
; %hlen : file size (auto)
; %flen : file size
; %ext : file extension
; %ed2k : ed2k hash
----
----
==== *If* like cases ====
==== *If* like cases ====



Revision as of 00:23, 13 April 2007

New Anime Page Patterns and Usage

The new anime page can use patterns to format your ed2k link praticaly any way you like, just use the 30 odd currently available formats to that end.


Preferences for ed2k links

Some settings to control general aspect of ed2k links.


Episode number style

Convert episode number to maximum number of digits of the anime padding with 0's or leave as is.

Replace spaces in file name

Convert spaces in file name.

Replace character

If you choose to replace spaces in file name, you can enter the replace character here.


Preferences for ed2k Custom Link

If you want you can specify your own ed2k link format for links.


Patterns available

%ant
Anime Title (uses default language definitions)
%anat
Anime Alternative Title
%ept
Episode Title (uses default language definitions)
%epat
Episode Alternative title
%enr
Episode number
%pn
Part name ("EP" if anime.type != 4 || "PA" otherwise)
%fpn
Full part name ("Episode" if anime.type != 4 || "Part" otherwise)
%raw
if file is raw (no subtitles outputs RAW)
%crc
Crc sum or INVALID if crc invalid
%CRC
Crc sum (in caps) or INVALID if crc invalid
%ver
Version string (only if version > 1)
%cen
Censored string (cen)
%uncen
Uncensored string (cen)
%dub
Dub languages (ALL OF THEM, comma separated)
%sub
Sub languages (ALL OF THEM, comma separated)
%lang
dub.sub_jp+.de+ (current db format)
%flang
dub.sub_jp,de,en.de,en (extended format)
%grp
Group short name
%grn
Group full name
%qual
Quality
%src
Source
%res
Resolution
%vcodec
Video codec (first video stream)
%acodec
Audio codec (first audio stream)
%achans
Audio channels (first audio stream)
%eps
Total number of episodes
%atype
[unknown, TV, OVA, Movie, Other, web]
%fid
File ID
%aid
Anime ID
%eid
Episode ID
%gid
Group ID
%dlen
file size (bytes, dot separated)
%hlen
file size (auto)
%flen
file size
%ext
file extension
%ed2k
ed2k hash

*If* like cases

Currently there's a way to make something like if cases, imagine that you want to show that a file is raw you could do something like this:

[%raw] %ann - %enr - %epn

But that would show for files that weren't raw some thing like this: "[] Full Metal Panic! - 01 - The guy I kinda Like is a Sergeant".

What you can use is '<' and '>' pairs, if a pattern inside of '<' and '>' returns "" the entire text inside of the '<' and '>' would simply not be shown, so if you changed your tag to be something like this:

<[%raw] >%ann - %enr - %epn

For non raw files it would simply output this: "Full Metal Panic! - 01 - The guy I kinda Like is a Sergeant"


Default formats

Currently anidb uses something like this format:

%ann - %enr%ver - %epn - <[%grp]><(%crc)><(%cen)><(%lang)><(%raw)>

This format for file 182271 returns the following ed2k links:

anidb current page
Full_Metal_Panic!_-_01_-_The_guy_I_kinda_Like_is_a_Sergeant_-_[aF](c154d33d)(dub.sub_jp+.de+)
new anime page
Full_Metal_Panic!_-_01_-_The_guy_I_kinda_Like_is_a_Sergeant_-_[aF](c154d33d)(dub.sub_jp+.de+)

note: the last link gets encoded to pass in browsers, the actual output is:

ed2k://|file|Full%20Metal%20Panic!%20-%2001%20-%20The%20guy%20I%20kinda%20Like%20is%20a%20Sergeant%20-%20%5BaF%5D(c154d33d)(dub.sub_jp+.de+).avi|238990934|62c078dc6c78597e7a6c81734cc0ee27|/