lib/downloader/elog_bakufu.rb in ero_getter-1.6.3 vs lib/downloader/elog_bakufu.rb in ero_getter-1.7.0
- old
+ new
@@ -1,20 +1,12 @@
# -*- coding: utf-8 -*-
-class ElogBakufu < EroGetter::Base
+class ElogBakufu < EroGetter::Livedoor #EroGetter::Base
name 'エログ幕府'
- url %r{http://blog.livedoor.jp/samplems-bakufu/archives/\d+.html}
+ url %r{http://bakufu.jp/archives/\d+}
- target ".article-body-inner img" 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]
+ url.match(/(\d+)/)[1]
end
filename { |attr| "%04d%s" % [attr[:index], attr[:ext]] }
end