Fixed poster query for old New Sensations scenes.
This commit is contained in:
parent
58175dce21
commit
bae51dd59c
|
@ -100,10 +100,7 @@
|
||||||
>{{ release.entity.name }}</h3>
|
>{{ release.entity.name }}</h3>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<span
|
<span class="row">
|
||||||
v-if="release.actors?.length > 0"
|
|
||||||
class="row"
|
|
||||||
>
|
|
||||||
<ul
|
<ul
|
||||||
class="actors nolist"
|
class="actors nolist"
|
||||||
:title="release.actors.map(actor => actor.name).join(', ')"
|
:title="release.actors.map(actor => actor.name).join(', ')"
|
||||||
|
@ -357,9 +354,9 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.actors {
|
.actors {
|
||||||
|
height: 1.5rem;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
max-height: 1.5rem;
|
|
||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
margin: 0 0 .25rem 0;
|
margin: 0 0 .25rem 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,6 +65,10 @@ module.exports = {
|
||||||
'lowartfilms',
|
'lowartfilms',
|
||||||
// freeones
|
// freeones
|
||||||
'freeones',
|
'freeones',
|
||||||
|
// new sesations
|
||||||
|
'tabutales',
|
||||||
|
'talesfromtheedge',
|
||||||
|
'shanedieselsbangingbabes',
|
||||||
// pornpros
|
// pornpros
|
||||||
'milfhumiliation',
|
'milfhumiliation',
|
||||||
'humiliated',
|
'humiliated',
|
||||||
|
|
|
@ -14,7 +14,7 @@ function scrapeLatestBlock(scenes) {
|
||||||
release.actors = query.contents('.tour_update_models a');
|
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
|
// 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.poster = query.dataset('.video_placeholder', 'src');
|
||||||
release.teaser = query.video();
|
release.teaser = query.video();
|
||||||
|
@ -43,7 +43,7 @@ function scrapeLatestClassic(scenes) {
|
||||||
: actors;
|
: actors;
|
||||||
|
|
||||||
// native videothumb entry ID does not occur on scene page, date is not available on all sites
|
// 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' });
|
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.tags = query.contents('.update_tags a');
|
||||||
release.stars = query.number('.gallery_info', { match: /average\s+rating:\s+(\d+\.\d+)/i, matchIndex: 1 });
|
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');
|
release.trailer = query.video('#vidplayer source');
|
||||||
|
|
||||||
const gallery = query.url('//a[img[contains(@src, "gallery.gif")]]');
|
const gallery = query.url('//a[img[contains(@src, "gallery.gif")]]');
|
||||||
|
|
Loading…
Reference in New Issue