Fixed Vixen upcoming.
This commit is contained in:
parent
a8bdb7ab59
commit
1cf06a8b49
|
@ -75,7 +75,8 @@ function scrapeAll(scenes, channel) {
|
|||
});
|
||||
}
|
||||
|
||||
function scrapeUpcoming(scene, site) {
|
||||
function scrapeUpcoming(scenes, site) {
|
||||
return scenes.map((scene) => {
|
||||
if (!scene || scene.isPreReleasePeriod) {
|
||||
return null;
|
||||
}
|
||||
|
@ -98,7 +99,8 @@ function scrapeUpcoming(scene, site) {
|
|||
release.poster = curateSources(scene.images.poster);
|
||||
release.teaser = curateSources(scene.previews.poster);
|
||||
|
||||
return [release];
|
||||
return release;
|
||||
}).filter(Boolean);
|
||||
}
|
||||
|
||||
async function getTrailer(videoId, channel, url) {
|
||||
|
|
Loading…
Reference in New Issue