Added Snow Valley (Sperm Mania) scraper.
This commit is contained in:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user