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

@ -73,6 +73,7 @@ export default {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
white-space: nowrap;
background: var(--profile); background: var(--profile);
font-size: 0; font-size: 0;
font-weight: bold; font-weight: bold;

View File

@ -65,7 +65,7 @@ function scrapeAll(html, site) {
} }
async function scrapeScene(html, url, site) { async function scrapeScene(html, url, site) {
const { qu } = ex(html, '#videos-page, #content'); const { qu } = ex(html, '#videos-page, #content section');
const release = {}; const release = {};
[release.entryId] = new URL(url).pathname.split('/').slice(-2); [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)); const durationEl = qu.all('value').find(el => /\d{1,3}:\d{2}/.test(el.textContent));
release.duration = qu.dur(durationEl); 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]'); const photosUrl = qu.url('.stat a[href*=photos]');
if (photosUrl) { if (photosUrl) {