145
144
return downloader_.get();
148
typedef std::vector<core::PersistentStringCache*> CacheVec;
147
typedef std::vector<PersistentCacheHelper*> CacheVec;
149
148
CacheVec select_caches(CacheSelector selector) const;
151
core::PersistentStringCache::UPtr full_size_cache_; // Small cache of full (original) size images.
152
core::PersistentStringCache::UPtr thumbnail_cache_; // Large cache of scaled images.
153
core::PersistentStringCache::UPtr failure_cache_; // Cache for failed attempts (value is always empty).
154
int max_size_; // Max thumbnail size in pixels.
155
int retry_not_found_hours_; // Retry wait time for authoritative "no artwork" answer.
156
int retry_error_hours_; // Retry wait time for unexpected server errors.
157
std::chrono::milliseconds extraction_timeout_; // How long to wait before giving up during extraction.
150
PersistentCacheHelper::UPtr full_size_cache_; // Small cache of full (original) size images.
151
PersistentCacheHelper::UPtr thumbnail_cache_; // Large cache of scaled images.
152
PersistentCacheHelper::UPtr failure_cache_; // Cache for failed attempts (value is always empty).
153
int max_size_; // Max thumbnail size in pixels.
154
int retry_not_found_hours_; // Retry wait time for authoritative "no artwork" answer.
155
int retry_error_hours_; // Retry wait time for unexpected server errors.
156
std::chrono::milliseconds extraction_timeout_; // How long to wait before giving up during extraction.
157
std::chrono::system_clock::time_point nw_fail_time_; // Last time we had transient network error.
158
158
std::unique_ptr<ArtDownloader> downloader_;
160
160
friend class RequestBase;