deviantart: avoid download api call if not downloadable

because it's included in api_response which is part of /source.json
This commit is contained in:
lllusion3469
2020-05-11 12:09:44 +02:00
parent 70beb7288d
commit 0c180b521c

View File

@@ -297,7 +297,7 @@ module Sources
memoize :api_metadata
def api_download
return {} if uuid.nil?
return {} unless uuid.present? && api_deviation[:is_downloadable]
api_client.download(uuid)
end
memoize :api_download