Sha256: 384d568ee527718ff5f3e7883c6de116497c3a608e88cfe9aaf700e25e988f7c
Contents?: true
Size: 464 Bytes
Versions: 8
Compression:
Stored size: 464 Bytes
Contents
class EroGetter::Livedoor < EroGetter::Base class << self def blog_id(id) self.url Regexp.new("http://blog.livedoor.jp/#{id}/archives/\\d+.html") end end target "img.pict" do |path| if path.parent.name == "a" && path.parent[:href] =~ /jpe?g|gif|png$/ path.parent[:href] else path[:src] end end sub_directory do url.match(/(\d+).html/)[1] end filename { |attr| "%04d%s" % [attr[:index], attr[:ext]] } end
Version data entries
8 entries across 8 versions & 1 rubygems