Fixed poster query for old New Sensations scenes.

This commit is contained in:
DebaucheryLibrarian 2023-06-10 00:46:38 +02:00
parent 58175dce21
commit bae51dd59c
3 changed files with 9 additions and 8 deletions

View File

@ -100,10 +100,7 @@
>{{ release.entity.name }}</h3>
</a>
<span
v-if="release.actors?.length > 0"
class="row"
>
<span class="row">
<ul
class="actors nolist"
:title="release.actors.map(actor => actor.name).join(', ')"
@ -357,9 +354,9 @@ export default {
}
.actors {
height: 1.5rem;
word-wrap: break-word;
overflow: hidden;
max-height: 1.5rem;
line-height: 1.5rem;
margin: 0 0 .25rem 0;
}

View File

@ -65,6 +65,10 @@ module.exports = {
'lowartfilms',
// freeones
'freeones',
// new sesations
'tabutales',
'talesfromtheedge',
'shanedieselsbangingbabes',
// pornpros
'milfhumiliation',
'humiliated',

View File

@ -14,7 +14,7 @@ function scrapeLatestBlock(scenes) {
release.actors = query.contents('.tour_update_models a');
// native videothumb entry ID does not occur on scene page, date is not available on all sites
release.entryId = slugify([...release.actors.sort(), release.title]);
release.entryId = slugify([...[].concat(release.actors || []).sort(), release.title]);
release.poster = query.dataset('.video_placeholder', 'src');
release.teaser = query.video();
@ -43,7 +43,7 @@ function scrapeLatestClassic(scenes) {
: actors;
// native videothumb entry ID does not occur on scene page, date is not available on all sites
release.entryId = slugify([...(release.actors?.sort() || []), release.title]);
release.entryId = slugify([...[].concat(release.actors || []).sort(), release.title]);
const photoCount = query.number('.update_thumb', { attribute: 'cnt' });
@ -108,7 +108,7 @@ async function scrapeSceneClassic({ query }, context, options) {
release.tags = query.contents('.update_tags a');
release.stars = query.number('.gallery_info', { match: /average\s+rating:\s+(\d+\.\d+)/i, matchIndex: 1 });
release.poster = query.img('#vidplayer', { attribute: 'poster' });
release.poster = query.img('#vidplayer', { attribute: 'poster' }) || query.img('#postroll_url img');
release.trailer = query.video('#vidplayer source');
const gallery = query.url('//a[img[contains(@src, "gallery.gif")]]');