moebooru: fetch tags (#3911).
This commit is contained in:
@@ -76,6 +76,12 @@ module Sources
|
||||
nil
|
||||
end
|
||||
|
||||
def tags
|
||||
api_response[:tags].to_s.split.map do |tag|
|
||||
[tag.tr("_", " "), "https://#{site_name}/post?tags=#{CGI.escape(tag)}"]
|
||||
end
|
||||
end
|
||||
|
||||
def headers
|
||||
{ "Referer" => "http://#{site_name}" }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user