Added Meiden van Holland and Vurig Vlaanderen.

This commit is contained in:
DebaucheryLibrarian
2023-07-01 21:46:44 +02:00
parent 01b3cc42af
commit 205102ff90
64 changed files with 508 additions and 19 deletions

View File

@@ -56,12 +56,15 @@ function toBaseReleases(baseReleasesOrUrls, entity = null) {
}
async function fetchUnprintScene(scraper, url, entity, baseRelease, options, type) {
const releaseScraper = scraper[type === 'movie' ? 'scrapeMovie' : 'scrapeScene'];
const res = await unprint.get(url, {
rejectUnauthorized: false,
...(releaseScraper.scraper && releaseScraper), // options object
});
if (res.ok) {
return scraper[type === 'movie' ? 'scrapeMovie' : 'scrapeScene'](res.context, {
return (releaseScraper.scraper || releaseScraper)(res.context, {
url,
entity,
baseRelease,
@@ -78,7 +81,7 @@ async function fetchScene(scraper, url, entity, baseRelease, options, type = 'sc
}
if ((type === 'scene' && scraper.scrapeScene) || (type === 'movie' && scraper.scrapeMovie)) {
if (scraper.useUnprint) {
if (scraper.useUnprint || scraper.scrapeScene?.unprint || scraper.scrapeMovie?.unprint) {
return fetchUnprintScene(scraper, url, entity, baseRelease, options, type);
}