User:Fahrenheit: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{TOCright}}
{{TOCright}}
== New Anime Page Patterns and Usage ==
== 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:
<tt>[%raw] %ann - %enr - %epn</tt>
But that would show for files that weren't raw some thing like this: <i>"[] Full Metal Panic! - 01 - The guy I kinda Like is a Sergeant"</i>.
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:
<tt><[%raw] >%ann - %enr - %epn</tt>
For non raw files it would simply output this: <i>"Full Metal Panic! - 01 - The guy I kinda Like is a Sergeant"</i>
----
==== Default formats ====
Currently anidb uses something like this format:
<tt>%ann - %enr%ver - %epn - <[%grp]><(%crc)><(%cen)><(%lang)><(%raw)></tt>
This format for file [http://anidb.info/perl-bin/animedb.pl?show=file&fid=182271&nonav=1 182271] returns the following ed2k links:
; anidb current page : <i>Full_Metal_Panic!_-_01_-_The_guy_I_kinda_Like_is_a_Sergeant_-_[aF](c154d33d)(dub.sub_jp+.de+)</i>
; new anime page : <i>Full_Metal_Panic!_-_01_-_The_guy_I_kinda_Like_is_a_Sergeant_-_[aF](c154d33d)(dub.sub_jp+.de+)</i>
<b>note</b>: the last link gets encoded to pass in browsers, the actual output is:
<tt>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|/</tt>


----
Implemented, official page at: [[PAGE_PREFERENCES_ED2K]].


== Custom filters for files ==
== Custom filters for files ==
Line 105: Line 18:
=== Syntax and some rules ===
=== Syntax and some rules ===


Filter Syntax:
Filter Syntax:<br>
Except for element "0", that states how many rules there are, elements follow this format:<br />
Except for element "0", that states how many rules there are, elements follow this format:<br>
"RULE NUMBER":{"RULE SUBJECT #1":"OPERATION,TEST";"RULE SUBJECT #2":"OPERATION,TEST"; etc};<br />
"'''RULE NUMBER'''":{"'''RULE SUBJECT''' #1":"'''OPERATION''','''TEST'''";"'''RULE SUBJECT''' #2":"'''OPERATION''','''TEST'''"; etc};<br>
where RULE SUBJECT can be one of the following:
<br>
 
Where '''RULE SUBJECT''' can be one of the following:
<br>
;fdate : File add date
;fdate : File add date
;eusers : Total number of users for this episode
;eusers : Total number of users for this episode
Line 117: Line 31:
;fgroup : File Group Id
;fgroup : File Group Id
;fversion : File version
;fversion : File version
;finmylist : File is in mylist
;finmylist : File is in MyList
;efvisible : Total number of files
;efvisible : Total number of files
;falang : Any of the file audio languages is one of the preferred langs (if using obj.filterAudLang) or given lang
;falang : Any of the file audio languages is one of the preferred langs (if using obj.filterAudLang) or given lang
;fslang : Any of the file audio languages is one of the preferred langs (if using obj.filterSubLang) or given lang
;fslang : Any of the file audio languages is one of the preferred langs (if using obj.filterSubLang) or given lang
;ftype : File type (generic)
;ftype : File type (generic)
;fsource : File source (HDTV, DTV, etc)
;fextension : File extension (mkv, avi, mov, etc)
;fdeprecated : Is file deprecated
;fdeprecated : Is file deprecated
 
;fraw : Is file RAW
NOTE0: When RULE SUBJECT is prefixed with "c_sf_", there will be test of comparison for all files of the episode and the results of this comparison will be stored in processing Files<br />
;fgroupfiltered : Is group filtered
NOTE1: When RULE SUBJECT is prefixed with "c_rf_", there will be test of comparison for all files stored in processing Files, and the list will be updated with the results<br />
<br>
NOTE2: No RULE SUBJECT prefixed with "c_" imply that you are testing an attribute, think of it as a SQL select where OPERATION can be one of the following:
'''Notes:'''
 
* When '''RULE SUBJECT''' is prefixed with "c_sf_", there will be test of comparison for all files of the episode and the results of this comparison will be stored in processing Files
* When '''RULE SUBJECT''' is prefixed with "c_rf_", there will be test of comparison for all files stored in processing Files, and the list will be updated with the results
* No '''RULE SUBJECT''' prefixed with "c_" imply that you are testing an attribute, think of it as a SQL select where  
<br>
'''OPERATION''' can be one of the following:
<br>
;> : greater than
;> : greater than
;< : lesser than
;< : lesser than
Line 134: Line 55:
;== : Equal to
;== : Equal to
;!= : Not equal to
;!= : Not equal to
 
<br>
where TEST is the value to test, there are special cases:
Where '''TEST''' is the value to test, there are special cases:
 
<br>
;this : will test against the same RULE SUBJECT (only used in "c" prefixed RULE SUBJECTS)
;this : will test against the same '''RULE SUBJECT''' (only used in "c" prefixed '''RULE SUBJECTS''')
 
<br>
NOTE1: for each RULE NUMBER the RULE SUBJECTS are tested using AND<br />
'''Notes:'''
NOTE2: Will only test RULES until end or a failed test
* For each '''RULE NUMBER''' the '''RULE SUBJECTS''' are tested using '''AND'''
* Will only test '''RULES''' until end or a failed test


----
----
Line 153: Line 75:
                             1:{"eusers":">=,50","fusers":"<=,3","fcrc":"!=,valid"},
                             1:{"eusers":">=,50","fusers":"<=,3","fcrc":"!=,valid"},
                             2:{"fcrc":"==,invalid"},
                             2:{"fcrc":"==,invalid"},
                             3:{"fqual":"<=,5"},
                             3:{"fqual":">,1","fqual":"<=,5"},
                             4:{"c_sf_fgroup":"==,this","c_rf_fversion":"==,this","c_rf_fcrc":"==,valid","fcrc":"!=,valid","fgroup":"!=,0"},
                             4:{"c_sf_fgroup":"==,this","c_rf_fsource":"==,this","c_rf_fversion":"==,this","c_rf_fextension":"==,this","c_rf_fcrc":"==,valid","fcrc":"!=,valid","fgroup":"!=,0"},
                             5:{"c_sf_fgroup":"==,this","c_rf_fversion":">,this","c_rf_fcrc":"==,valid","fgroup":"!=,0"}};</pre>
                             5:{"c_sf_fgroup":"==,this","c_rf_fsource":"==,this","c_rf_fversion":">,this","c_rf_fextension":"==,this","c_rf_fcrc":"==,valid","fgroup":"!=,0"}}
</pre>


==== Default Visible ====
==== Default Visible ====
Line 166: Line 89:


==== Default Hidden ====
==== Default Hidden ====
filterObj.defaultHidden = {0:2,
<pre>filterObj.defaultHidden = {0:2,
                           1:{"falang":"==,obj.filterAudLang"},
                           1:{"falang":"==,obj.filterAudLang"},
                           2:{"fslang":"==,obj.filterSubLang"}};
                           2:{"fslang":"==,obj.filterSubLang"}};</pre>


=== Example of usage ===
=== Example of usage ===
Line 175: Line 98:
Having this if you wanted to hide all censored files for a +18 anime and only leave uncensored or not marked files you would add this to the hidden filter.
Having this if you wanted to hide all censored files for a +18 anime and only leave uncensored or not marked files you would add this to the hidden filter.


filterObj.hidden = {0:1,
<pre>filterObj.hidden = {0:1,
                     1:{"acen":"==,true","fcen":"==,true"}};
                     1:{"acen":"==,true","fcen":"==,true"}};</pre>


This filter would mark as hidden all censored files for a +18 anime.
This filter would mark as hidden all censored files for a +18 anime.
Line 194: Line 117:
Currently i gave users the option to expand files which have file<->file relations, so the file table for the Episode that holds File A and File B would look like this with all files expanded:
Currently i gave users the option to expand files which have file<->file relations, so the file table for the Episode that holds File A and File B would look like this with all files expanded:


File A .......<br />
File A .......<br>
\- File B ....<br />
\- File B ....<br>
File B .......<br />
File B .......<br>
\- File A
\- File A


With pseudo-files i create a new super-file that would have the following attributes ja audio, en and de subtitles, and it's representation is something like this, where File P is the Pseudo-File:
With pseudo-files i create a new super-file that would have the following attributes ja audio, en and de subtitles, and it's representation is something like this, where File P is the Pseudo-File:


File P .......<br />
File P .......<br>
|- File A ....<br />
|- File A ....<br>
\- File B ....
\- File B ....


1,633

edits

Navigation menu

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