Sha256: 427889aeb2482a7eab2069df94dfbecf350e5b092762353b27ccfdf29a646c20
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
# -*- coding: utf-8 -*- class ShimoSoku < EroGetter::Base name '下速' url %r{http://blog.livedoor.jp/pramo/archives/\d+.html} 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ero_getter-1.3.9 | lib/downloader/shimo_soku.rb |