… | |
… | |
16 | $_[0]=straction($action); |
16 | $_[0]=straction($action); |
17 | print "busy_callback(", (join ",",@_), ")\n"; |
17 | print "busy_callback(", (join ",",@_), ")\n"; |
18 | 0; |
18 | 0; |
19 | } |
19 | } |
20 | |
20 | |
|
|
21 | SetOption OPT_RBUF, 128*1024; |
|
|
22 | SetOption OPT_WBUF, 1024*1024; |
|
|
23 | SetOption OPT_IGNMODE, 1; |
21 | SetOption OPT_IGNMODE, 1; |
24 | SetOption OPT_IGNMODE, 1; |
22 | SetOption OPT_VERBOSE, 1; |
25 | SetOption OPT_VERBOSE, 1; |
23 | |
26 | |
24 | # show the three ways you can set callback functions. I normally |
27 | # show the three ways you can set callback functions. I normally |
25 | # prefer the one with the sub inplace. |
28 | # prefer the one with the sub inplace. |
… | |
… | |
52 | return $1 if /- "?(\S{3,}\.\S+?)"? (?:yenc )?\(\d+\/\d+\)/i; |
55 | return $1 if /- "?(\S{3,}\.\S+?)"? (?:yenc )?\(\d+\/\d+\)/i; |
53 | |
56 | |
54 | # - (xxx) No. 1 sayuri81.jpg 756565 bytes |
57 | # - (xxx) No. 1 sayuri81.jpg 756565 bytes |
55 | # - (20 files) No.17 Roseanne.jpg [2/2] |
58 | # - (20 files) No.17 Roseanne.jpg [2/2] |
56 | return $1 if /No\.[ 0-9]+ (\S+\....) (?:\d+ bytes )?\[/; |
59 | return $1 if /No\.[ 0-9]+ (\S+\....) (?:\d+ bytes )?\[/; |
|
|
60 | |
|
|
61 | # try to detetc some common forms of filenames |
|
|
62 | return $1 if /([a-z0-9_\-+.]{3,}\.[a-z]{3,4}(?:.\d+))/i; |
57 | |
63 | |
58 | # otherwise just pass what we have |
64 | # otherwise just pass what we have |
59 | return (); |
65 | return (); |
60 | }; |
66 | }; |
61 | |
67 | |