fix upload preprocessing for pixiv posts

fixes #3782
This commit is contained in:
Albert Yi
2018-07-23 16:24:21 -07:00
parent cc7a66438f
commit f6440ca70d
3 changed files with 21 additions and 10 deletions

View File

@@ -22,6 +22,11 @@ module Downloads
@data[:get_thumbnail] = options[:get_thumbnail]
end
def rewrite_url
url, _, _ = before_download(@source, @data)
return url
end
def size
url, headers, _ = before_download(@source, @data)
options = { timeout: 3, headers: headers }.deep_merge(Danbooru.config.httparty_options)