1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-07 16:15:32 +02:00

make image downloader public

This commit is contained in:
Jan Lukas Gernert 2019-09-24 02:40:43 +02:00
parent efd36dff66
commit f1be8a2608

View file

@ -42,7 +42,7 @@ use self::error::{
pub struct ArticleScraper { pub struct ArticleScraper {
image_downloader: ImageDownloader, pub image_downloader: ImageDownloader,
config_files: ConfigCollection, config_files: ConfigCollection,
client: reqwest::Client, client: reqwest::Client,
pub download_images: bool, pub download_images: bool,
@ -54,7 +54,7 @@ impl ArticleScraper {
let config_files = GrabberConfig::parse_directory(&config_path).context(ScraperErrorKind::Config)?; let config_files = GrabberConfig::parse_directory(&config_path).context(ScraperErrorKind::Config)?;
Ok(ArticleScraper { Ok(ArticleScraper {
image_downloader: ImageDownloader::new((2000, 2000)), image_downloader: ImageDownloader::new((2048, 2048)),
config_files: config_files, config_files: config_files,
client: reqwest::Client::new(), client: reqwest::Client::new(),
download_images: download_images, download_images: download_images,