Weibo: use proxy for upload previews

This commit is contained in:
nonamethanks
2020-12-21 15:28:28 +01:00
parent be69778d25
commit 2423c8a447

View File

@@ -90,6 +90,10 @@ 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"]