Fixed unnecessary property errors, updated unprint to address HTTP JSON response header issue.
This commit is contained in:
		
							parent
							
								
									022063ebd3
								
							
						
					
					
						commit
						f770960191
					
				|  | @ -89,7 +89,7 @@ | |||
|                 "tunnel": "0.0.6", | ||||
|                 "ua-parser-js": "^1.0.37", | ||||
|                 "undici": "^5.28.1", | ||||
|                 "unprint": "^0.15.5", | ||||
|                 "unprint": "^0.15.6", | ||||
|                 "url-pattern": "^1.0.3", | ||||
|                 "v-tooltip": "^2.1.3", | ||||
|                 "video.js": "^8.6.1", | ||||
|  | @ -18312,9 +18312,9 @@ | |||
|             } | ||||
|         }, | ||||
|         "node_modules/unprint": { | ||||
|             "version": "0.15.5", | ||||
|             "resolved": "https://registry.npmjs.org/unprint/-/unprint-0.15.5.tgz", | ||||
|             "integrity": "sha512-Zc3aZeQ26zvrOdvJ4RjuHdVHD8JsDfqMR626JtQWpsymljq6mWMgSQh6rdMBXLYfv3eGPzQdbo0NPnu5KAerRA==", | ||||
|             "version": "0.15.6", | ||||
|             "resolved": "https://registry.npmjs.org/unprint/-/unprint-0.15.6.tgz", | ||||
|             "integrity": "sha512-ky79GyBuOJNAmreb73ryEDmPJzM+d8jOp9Sx3KxsW3iNDNJFCYKAf9BmK4j32aXNpWeNtiHFuwxJlsaUeDP2wA==", | ||||
|             "dependencies": { | ||||
|                 "axios": "^0.27.2", | ||||
|                 "bottleneck": "^2.19.5", | ||||
|  |  | |||
|  | @ -148,7 +148,7 @@ | |||
|         "tunnel": "0.0.6", | ||||
|         "ua-parser-js": "^1.0.37", | ||||
|         "undici": "^5.28.1", | ||||
|         "unprint": "^0.15.5", | ||||
|         "unprint": "^0.15.6", | ||||
|         "url-pattern": "^1.0.3", | ||||
|         "v-tooltip": "^2.1.3", | ||||
|         "video.js": "^8.6.1", | ||||
|  |  | |||
|  | @ -86,7 +86,7 @@ function scrapeAll(scenes, channel) { | |||
| } | ||||
| 
 | ||||
| async function fetchLatest(channel, page = 1) { | ||||
| 	if (!channel.parameters.studioId) { | ||||
| 	if (!channel.parameters?.studioId) { | ||||
| 		return null; | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
|  | @ -123,7 +123,7 @@ async function scrapeReleases(scraper, entity, preData, isUpcoming) { | |||
| 			? await scraper.fetchUpcoming(entity, page, options, preData) | ||||
| 			: await scraper.fetchLatest(entity, page, options, preData); | ||||
| 
 | ||||
| 		const pageReleases = rawPageReleases.scenes || rawPageReleases; | ||||
| 		const pageReleases = rawPageReleases?.scenes || rawPageReleases; | ||||
| 
 | ||||
| 		if (!Array.isArray(pageReleases)) { | ||||
| 			// scraper is unable to fetch the releases and returned a HTTP code or null
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue