Weibo: use proxy for upload previews
This commit is contained in:
@@ -90,6 +90,10 @@ module Sources
|
|||||||
image_urls.map { |img| img.gsub(%r{.cn/\w+/(\w+)}, '.cn/orj360/\1') }
|
image_urls.map { |img| img.gsub(%r{.cn/\w+/(\w+)}, '.cn/orj360/\1') }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def headers
|
||||||
|
{ "Referer" => "https://weibo.com" }
|
||||||
|
end
|
||||||
|
|
||||||
def page_url
|
def page_url
|
||||||
if api_response.present?
|
if api_response.present?
|
||||||
artist_id = api_response["user"]["id"]
|
artist_id = api_response["user"]["id"]
|
||||||
|
|||||||
Reference in New Issue
Block a user