Merge pull request #4641 from nonamethanks/weibo_previews

Weibo: use proxy for upload previews
This commit is contained in:
evazion
2021-01-04 01:20:50 -06:00
committed by GitHub

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"]