forked from MapComplete/MapComplete
		
	Fix #1863
This commit is contained in:
		
							parent
							
								
									a79675c879
								
							
						
					
					
						commit
						940f187041
					
				
					 8 changed files with 37 additions and 22 deletions
				
			
		|  | @ -95,7 +95,7 @@ export default class GenerateImageAnalysis extends Script { | |||
|         if (fs.existsSync(targetPath)) { | ||||
|             return false | ||||
|         } | ||||
|         const attribution = await Imgur.singleton.DownloadAttribution(image) | ||||
|         const attribution = await Imgur.singleton.DownloadAttribution({ url: image,  }) | ||||
| 
 | ||||
|         if ((attribution.artist ?? "") === "") { | ||||
|             // This is an invalid attribution. We save the raw response as well
 | ||||
|  | @ -215,7 +215,7 @@ export default class GenerateImageAnalysis extends Script { | |||
|                 skipped++ | ||||
|             } else { | ||||
|                 try { | ||||
|                     attribution = await Imgur.singleton.DownloadAttribution(image) | ||||
|                     attribution = await Imgur.singleton.DownloadAttribution({ url: image }) | ||||
|                     await ScriptUtils.sleep(500) | ||||
|                     writeFileSync(cachedView, JSON.stringify(attribution)) | ||||
|                     dloaded++ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue