Usage:
Filter, check the release that are raced on your glftpd site.
You can post check racer's rules, or simplify racer's work.
Siteops are exempted.
If you use pzs-ng sitebot, this will echo on your chan with TURGEN. (disable this in config.h)
-Unpack .rar
-Edit config.h and set variables
-Compile source
cd src/
gcc -o mkd_filter *.c
-Edit whitelist.conf and blacklist.conf, with standards regexp ( case insensitive )
whitelist.conf:
a set of regular expressions per section, each release must fit the regexp.
SERiES-US_HD:^(Dexter.S03).*720P.*x264.*$ (this one will allow Dexter only in section)
blacklist.conf:
a set of regular expressions per section, each release must not fit the regexp.
SERiES-US_HD:(PDTV|SDTV) (this one will deny PDTV and SDTV, if you got some problems with racers :p)
GLOBAL:^.*-(CRAPTEAM1|CRAPTEAM2|CRAPTEAM3)$
You need to let the GLOBAL entry (GLOBAL:^$, if there's no global ban on your site).
-Edit glftpd.conf
Add this line in glftpd.conf: cscript MKD pre /bin/mkd_filter
##############################################################################
# SECTION # KEYWORD DIRECTORY SEPARATE CREDITS #
##############################################################################
Add a line for each section:
stat_section SERiES-FR /site/SERiES-FR/ yes
stat_section SERiES-US /site/SERiES-US/ yes
stat_section SERiES-US_HD /site/SERiES-US_HD/ yes
Note: glftpd seems to be limited to 10 sections.
It's useful for second case. Most Auto script use first one.
1) MKD /SECTION/RLZ
-> MKD from root directory
2) CD /SECTION
MKD RLZ
-> MKD from directory (using env. vars)
chmod +x /glftpd/bin/mkd_filter
Qt TEAM