1,633
edits
Fahrenheit (talk | contribs) No edit summary |
mNo edit summary |
||
(14 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 == | ||
Implemented, official page at: [[PAGE_PREFERENCES_ED2K]]. | |||
== Custom filters for files == | == Custom filters for files == | ||
Line 99: | Line 12: | ||
;Hidden : hides files based on user preferences | ;Hidden : hides files based on user preferences | ||
The default rules for each filter follow the [[Files:Deprecated_files|Deprecated files] rules currently implemented in AniDB. | The default rules for each filter follow the [[Files:Deprecated_files|Deprecated files]] rules currently implemented in AniDB except for the Hidden filter that also hides files based on user profile language preferences. | ||
---- | ---- | ||
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: | 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}; | "'''RULE NUMBER'''":{"'''RULE SUBJECT''' #1":"'''OPERATION''','''TEST'''";"'''RULE SUBJECT''' #2":"'''OPERATION''','''TEST'''"; etc};<br> | ||
<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 | ;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 | |||
;fgroupfiltered : Is group filtered | |||
<br> | |||
'''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: | |||
<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> | |||
'''Notes:''' | |||
* For each '''RULE NUMBER''' the '''RULE SUBJECTS''' are tested using '''AND''' | |||
* Will only test '''RULES''' until end or a failed test | |||
---- | ---- | ||
==== Default Unfiltered ==== | ==== Default Unfiltered ==== | ||
filterObj.defaultUnfiltered = {0:2, | <pre>filterObj.defaultUnfiltered = {0:2, | ||
1:{"fdate":"<,172800"}, | 1:{"fdate":"<,172800"}, | ||
2:{"ftype":"==,generic"}}; | 2:{"ftype":"==,generic"}};</pre> | ||
==== Default Deprecated ==== | ==== Default Deprecated ==== | ||
filterObj.defaultDeprecated = {0:5, | <pre>filterObj.defaultDeprecated = {0:5, | ||
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"}} | 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 ==== | ||
filterObj.defaultVisible = {0:5, | <pre>filterObj.defaultVisible = {0:5, | ||
1:{"fdeprecated":"==,true"}, | 1:{"fdeprecated":"==,true"}, | ||
2:{"finmylist":"==,true"}, | 2:{"finmylist":"==,true"}, | ||
3:{"fusers":">=,50"}, | 3:{"fusers":">=,50"}, | ||
4:{"fdate":"<,604800"}, | 4:{"fdate":"<,604800"}, | ||
5:{"efvisible":"<,1"}}; | 5:{"efvisible":"<,1"}};</pre> | ||
==== 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 176: | 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 195: | 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 ....... | File A .......<br> | ||
\- File B .... | \- File B ....<br> | ||
File B ....... | 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 ....... | File P .......<br> | ||
|- File A .... | |- File A ....<br> | ||
\- File B .... | \- File B .... | ||
edits