pass the scraper's options to the corresponding function in the scraper module
This commit is contained in:
		
							parent
							
								
									2f1e033466
								
							
						
					
					
						commit
						a61c54269f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								scripts/external/processor.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								scripts/external/processor.js
									
										
									
									
										vendored
									
									
								
							|  | @ -11,8 +11,8 @@ import {URLs} from "/scripts/utils/URLs.js"; | |||
| export default class processor { | ||||
| 	#filter;  | ||||
| 	 | ||||
| 	async scrape (fields) { | ||||
| 		this.product.details = new scraper ((fields) ? fields : this.targets);  | ||||
| 	async scrape (fields, options) { | ||||
| 		this.product.details = new scraper (((fields) ? fields : this.targets), options);  | ||||
| 
 | ||||
| 		// Read product data and gather the SHA512 hash. 
 | ||||
| 		await this.product.read(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue