uploads: remove batch upload page.
* Make /uploads/batch redirect to /uploads/new. * Remove /uploads/image_proxy.
This commit is contained in:
@@ -211,12 +211,6 @@ module Sources
|
||||
nil
|
||||
end
|
||||
|
||||
# Subclasses should merge in any required headers needed to access resources
|
||||
# on the site.
|
||||
def headers
|
||||
{}
|
||||
end
|
||||
|
||||
# Download the file at the given url, or at the main image url by default.
|
||||
def download_file!(download_url = image_url)
|
||||
response, file = http_downloader.download_media(download_url)
|
||||
|
||||
@@ -100,10 +100,6 @@ module Sources
|
||||
tags.map(&:first).flat_map(&method(:translate_tag)).uniq.sort
|
||||
end
|
||||
|
||||
def headers
|
||||
{ "Referer" => "http://#{site_name}" }
|
||||
end
|
||||
|
||||
# Moebooru returns an empty array when doing an md5:<hash> search for a
|
||||
# deleted post. Because of this, api_response may be empty in some cases.
|
||||
def api_response
|
||||
|
||||
@@ -177,10 +177,6 @@ module Sources
|
||||
api_illust[:description]
|
||||
end
|
||||
|
||||
def headers
|
||||
{ "Referer" => "https://www.pixiv.net" }
|
||||
end
|
||||
|
||||
def normalize_for_source
|
||||
return nil if illust_id.blank?
|
||||
"https://www.pixiv.net/artworks/#{illust_id}"
|
||||
|
||||
@@ -93,10 +93,6 @@ module Sources
|
||||
image_urls.map { |img| img.gsub(%r{.cn/\w+/(\w+)}, '.cn/orj360/\1') }
|
||||
end
|
||||
|
||||
def headers
|
||||
{ "Referer" => "https://weibo.com" }
|
||||
end
|
||||
|
||||
def page_url
|
||||
if api_response.present?
|
||||
artist_id = api_response["user"]["id"]
|
||||
|
||||
Reference in New Issue
Block a user