forked from DebaucheryLibrarian/traxxx
Fixed Vixen upcoming.
This commit is contained in:
parent
a8bdb7ab59
commit
1cf06a8b49
|
@ -75,30 +75,32 @@ function scrapeAll(scenes, channel) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function scrapeUpcoming(scene, site) {
|
function scrapeUpcoming(scenes, site) {
|
||||||
if (!scene || scene.isPreReleasePeriod) {
|
return scenes.map((scene) => {
|
||||||
return null;
|
if (!scene || scene.isPreReleasePeriod) {
|
||||||
}
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
const release = {};
|
const release = {};
|
||||||
|
|
||||||
release.entryId = scene.videoId;
|
release.entryId = scene.videoId;
|
||||||
release.url = `${site.url}/videos/${scene.slug}`;
|
release.url = `${site.url}/videos/${scene.slug}`;
|
||||||
|
|
||||||
release.title = scene.slug
|
release.title = scene.slug
|
||||||
.split('-')
|
.split('-')
|
||||||
.map((component) => `${component.charAt(0).toUpperCase()}${component.slice(1)}`)
|
.map((component) => `${component.charAt(0).toUpperCase()}${component.slice(1)}`)
|
||||||
.join(' ');
|
.join(' ');
|
||||||
|
|
||||||
release.date = moment.utc(scene.releaseDate).toDate();
|
release.date = moment.utc(scene.releaseDate).toDate();
|
||||||
release.datePrecision = 'minute';
|
release.datePrecision = 'minute';
|
||||||
|
|
||||||
release.actors = scene.models.map((model) => model.name);
|
release.actors = scene.models.map((model) => model.name);
|
||||||
|
|
||||||
release.poster = curateSources(scene.images.poster);
|
release.poster = curateSources(scene.images.poster);
|
||||||
release.teaser = curateSources(scene.previews.poster);
|
release.teaser = curateSources(scene.previews.poster);
|
||||||
|
|
||||||
return [release];
|
return release;
|
||||||
|
}).filter(Boolean);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getTrailer(videoId, channel, url) {
|
async function getTrailer(videoId, channel, url) {
|
||||||
|
|
Loading…
Reference in New Issue