From f1be8a2608e2a2fc386e997567175b34c766dfbd Mon Sep 17 00:00:00 2001 From: Jan Lukas Gernert Date: Tue, 24 Sep 2019 02:40:43 +0200 Subject: [PATCH] make image downloader public --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 19b8730..c06512a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,7 +42,7 @@ use self::error::{ pub struct ArticleScraper { - image_downloader: ImageDownloader, + pub image_downloader: ImageDownloader, config_files: ConfigCollection, client: reqwest::Client, pub download_images: bool, @@ -54,7 +54,7 @@ impl ArticleScraper { let config_files = GrabberConfig::parse_directory(&config_path).context(ScraperErrorKind::Config)?; Ok(ArticleScraper { - image_downloader: ImageDownloader::new((2000, 2000)), + image_downloader: ImageDownloader::new((2048, 2048)), config_files: config_files, client: reqwest::Client::new(), download_images: download_images,