nicoseiga: fix uploads not working for certain direct image urls.
Fix Nicoseiga strategy to work with certain direct image urls that we can't otherwise extract any information from. Examples: * https://dic.nicovideo.jp/oekaki/52833.png
This commit is contained in:
@@ -73,8 +73,7 @@ module Sources
|
||||
end
|
||||
|
||||
def image_url
|
||||
return if image_urls.blank?
|
||||
return url if api_client.blank?
|
||||
return url if image_urls.blank? || api_client.blank?
|
||||
|
||||
img = case url
|
||||
when DIRECT || CDN_DIRECT then "https://seiga.nicovideo.jp/image/source/#{image_id_from_url(url)}"
|
||||
|
||||
Reference in New Issue
Block a user