Added Jay Rock network. Fixed site logo not showing up without URL.

This commit is contained in:
2020-01-11 05:31:04 +01:00
parent 1c0030b9f3
commit 8f72e61928
14 changed files with 61 additions and 33 deletions

View File

@@ -115,8 +115,8 @@ async function scrapeScene(html, url, site) {
const playerObject = videoScript.slice(videoScript.indexOf('{'), videoScript.indexOf('};') + 1);
const playerData = JSON.parse(playerObject);
const workName = data.isPartOf.name.split(' - ');
const shootId = workName.length > 1 ? workName[1] : null;
// const workName = data.isPartOf.name.split(' - ');
// const shootId = workName.length > 1 ? workName[1] : null;
const entryId = url.split('/').slice(-1)[0];
const title = data.title || $('meta[name="twitter:title"]').attr('content');
const description = data.description || $('meta[name="twitter:description"]').attr('content');
@@ -139,7 +139,7 @@ async function scrapeScene(html, url, site) {
return {
url,
shootId,
// shootId,
entryId,
title,
description,