Fixed scene tile detail word wrap. Fixed Score posters.

This commit is contained in:
DebaucheryLibrarian
2020-08-15 02:05:35 +02:00
parent 50c5f921f5
commit d7974f057f
2 changed files with 3 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ function scrapeAll(html, site) {
}
async function scrapeScene(html, url, site) {
const { qu } = ex(html, '#videos-page, #content');
const { qu } = ex(html, '#videos-page, #content section');
const release = {};
[release.entryId] = new URL(url).pathname.split('/').slice(-2);
@@ -95,7 +95,7 @@ async function scrapeScene(html, url, site) {
const durationEl = qu.all('value').find(el => /\d{1,3}:\d{2}/.test(el.textContent));
release.duration = qu.dur(durationEl);
release.poster = qu.poster('video') || qu.img('.flowplayer img') || qu.img('img'); // _800.jpg is larger than _xl.jpg in landscape
release.poster = qu.poster('video') || qu.img('.flowplayer img') || html.match(/posterImage: '(.*\.jpg)'/)?.[1] || null; // _800.jpg is larger than _xl.jpg in landscape
const photosUrl = qu.url('.stat a[href*=photos]');
if (photosUrl) {