+class Scrap_mmd3dcu < Scrap
+ def initialize
+ @row_re = %r(</td><td><a href="(.+?)">(.+?)</a></td><td>(.+?)</td><td>(.+?)</td><td>(.+?)</td><td>(.+?)</td><td>(.+?)</td></tr>)
+ @key_re = Regexp.new(Regexp.escape("<font color=\"#FF0000\">[DLKey] </font>"))
+ @tag_list_re = Regexp.new("<span class=\"tag_list\">(.+?)</span>")
+ end
+
+ def row
+ _, href, name, comment, size, date, mime, orig = @md.to_a
+ locked = !!comment.sub!(@key_re, '')
+ comment.sub!(@tag_list_re, '\\1')
+ [ name, encode(comment), size, date, encode(orig), locked ]
+ end
+end
+