Added actor expand button to profile.

This commit is contained in:
2020-01-24 23:36:06 +01:00
parent 4dbb961059
commit c93116dee2
7 changed files with 233 additions and 128 deletions

View File

@@ -177,11 +177,6 @@ function curateSocialEntry(url, actorId) {
pattern: 'http(s)\\://(*)modelhub.com/:username(/)(?*)',
format: username => `https://www.modelhub.com/${username}`,
},
{
label: 'imdb',
pattern: 'http(s)\\://(*)imdb.com/name/:userId(/)(?*)',
format: userId => `https://www.imdb.com/name/${userId}/`,
},
];
const match = platforms.reduce((acc, platform) => {
@@ -398,7 +393,7 @@ async function scrapeActors(actorNames) {
}, newActorEntry.name);
}
} catch (error) {
logger.warn(actorName, error);
logger.warn(`${actorName}: ${error}`);
}
}, {
concurrency: 3,

View File

@@ -98,10 +98,16 @@ async function scrapeScene(html, url, site) {
duration,
poster,
photos,
trailer: {
src: trailer,
quality: parseInt(videoData.sizeOnLoad, 10),
},
trailer: [
{
src: trailer.replace('hd', '1080p'),
quality: 1080,
},
{
src: trailer,
quality: parseInt(videoData.sizeOnLoad, 10),
},
],
tags,
rating: {
stars,