Added Snow Valley (Sperm Mania) scraper.

This commit is contained in:
DebaucheryLibrarian
2024-10-16 02:39:11 +02:00
parent 91e31e8ce7
commit 1950dd2e62
16 changed files with 1234 additions and 79 deletions

View File

@@ -132,6 +132,7 @@ function toBaseSource(rawSource) {
if (rawSource.extract) baseSource.extract = rawSource.extract;
if (rawSource.expectType) baseSource.expectType = rawSource.expectType;
if (typeof rawSource.followRedirects === 'boolean') baseSource.followRedirects = rawSource.followRedirects;
if (rawSource.stream) {
baseSource.src = rawSource.stream;
@@ -623,6 +624,7 @@ async function fetchHttpSource(source, tempFileTarget, hashStream) {
...(source.host && { host: source.host }),
},
stream: true, // sources are fetched in parallel, don't gobble up memory
followRedirects: source.followRedirects,
transforms: [hashStream],
destination: tempFileTarget,
...(source.interval && { interval: source.interval }),