Compare commits
3 Commits
b4f6373605
...
1ec2b3ac36
Author | SHA1 | Date |
---|---|---|
|
1ec2b3ac36 | |
|
6baa6b0802 | |
|
679e09f27e |
|
@ -48,12 +48,11 @@
|
||||||
<a
|
<a
|
||||||
v-else
|
v-else
|
||||||
:href="release.url"
|
:href="release.url"
|
||||||
:class="{ upcoming: isAfter(release.date, new Date()), new: release.isNew }"
|
|
||||||
title="Scene date N/A, showing date added"
|
title="Scene date N/A, showing date added"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
class="date"
|
class="date"
|
||||||
>{{ `(${formatDate(release.dateAdded, 'MMMM D, YYYY')})` }}</a>
|
>{{ `(${formatDate(release.createdAt, 'MMMM D, YYYY')})` }}</a>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -163,74 +163,12 @@ export default {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scroll-light {
|
.expand-dark {
|
||||||
background: var(--background-dim);
|
display: none;
|
||||||
|
|
||||||
.scroll-button {
|
|
||||||
.icon {
|
|
||||||
fill: var(--darken);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.scroll-start .icon,
|
|
||||||
&.scroll-end .icon {
|
|
||||||
fill: var(--darken-weak);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover:not(.scroll-start):not(.scroll-end) .icon {
|
|
||||||
fill: var(--text-dark);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.scroll-left {
|
|
||||||
background: linear-gradient(to right, var(--background-dim) 50%, transparent);
|
|
||||||
}
|
|
||||||
|
|
||||||
.scroll-right {
|
|
||||||
background: linear-gradient(to left, var(--background-dim) 50%, transparent);
|
|
||||||
}
|
|
||||||
|
|
||||||
.expand-dark {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.expand-light {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.scroll-dark {
|
.expand-light {
|
||||||
background: var(--profile);
|
display: block;
|
||||||
|
|
||||||
.scroll-button {
|
|
||||||
.icon {
|
|
||||||
fill: var(--lighten);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.scroll-start .icon,
|
|
||||||
&.scroll-end .icon {
|
|
||||||
fill: var(--darken-weak);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover:not(.scroll-start):not(.scroll-end) .icon {
|
|
||||||
fill: var(--text-light);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.scroll-left {
|
|
||||||
background: linear-gradient(to right, var(--profile) 50%, transparent);
|
|
||||||
}
|
|
||||||
|
|
||||||
.scroll-right {
|
|
||||||
background: linear-gradient(to left, var(--profile) 50%, transparent);
|
|
||||||
}
|
|
||||||
|
|
||||||
.expand-light {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.expand-dark {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.scroll-button {
|
.scroll-button {
|
||||||
|
@ -257,6 +195,21 @@ export default {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
width: 1.5rem;
|
||||||
|
height: 1.5rem;
|
||||||
|
fill: var(--lighten);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.scroll-start .icon,
|
||||||
|
&.scroll-end .icon {
|
||||||
|
fill: var(--lighten-weak);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover:not(.scroll-start):not(.scroll-end) .icon {
|
||||||
|
fill: var(--lighten-strong);
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
display: flex;
|
display: flex;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
@ -133,7 +133,6 @@ export default {
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index : 11;
|
|
||||||
top: -.5rem;
|
top: -.5rem;
|
||||||
left: calc(50% - .5rem);
|
left: calc(50% - .5rem);
|
||||||
border-left: .5rem solid transparent;
|
border-left: .5rem solid transparent;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.149.2",
|
"version": "1.149.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.149.2",
|
"version": "1.149.3",
|
||||||
"description": "All the latest porn releases in one place",
|
"description": "All the latest porn releases in one place",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
const qu = require('../utils/qu');
|
const qu = require('../utils/qu');
|
||||||
|
|
||||||
async function scrapeAll(scenes) {
|
function scrapeAll(scenes) {
|
||||||
return scenes.map(({ query }) => {
|
return scenes.map(({ query }) => {
|
||||||
const release = {
|
const release = {
|
||||||
director: 'Mike Adriano',
|
director: 'Mike Adriano',
|
||||||
|
@ -11,7 +11,8 @@ async function scrapeAll(scenes) {
|
||||||
release.title = query.cnt('h3.title a, .content-title-wrap a');
|
release.title = query.cnt('h3.title a, .content-title-wrap a');
|
||||||
release.url = query.url('h3.title a, .content-title-wrap a');
|
release.url = query.url('h3.title a, .content-title-wrap a');
|
||||||
|
|
||||||
release.entryId = new URL(release.url).pathname.match(/\/view\/(\d+)/)[1];
|
const pathname = new URL(release.url).pathname;
|
||||||
|
release.entryId = pathname.match(/\/view\/(\d+)/)?.[1] || pathname.match(/\/view\/([\w-]+)/)?.[1];
|
||||||
|
|
||||||
release.description = query.cnt('.desc, .content-description');
|
release.description = query.cnt('.desc, .content-description');
|
||||||
release.date = query.date('.date, time, .hide', 'Do MMM YYYY');
|
release.date = query.date('.date, time, .hide', 'Do MMM YYYY');
|
||||||
|
@ -29,14 +30,15 @@ async function scrapeAll(scenes) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function scrapeScene({ query }, url) {
|
async function scrapeScene({ query }, url) {
|
||||||
const release = { director: 'Mike Adriano' };
|
const release = { director: 'Mike Adriano' };
|
||||||
|
|
||||||
if (query.exists('a[href*="stackpath.com"]')) {
|
if (query.exists('a[href*="stackpath.com"]')) {
|
||||||
throw new Error('URL blocked by StackPath');
|
throw new Error('URL blocked by StackPath');
|
||||||
}
|
}
|
||||||
|
|
||||||
release.entryId = new URL(url).pathname.match(/\/view\/(\d+)/)[1];
|
const pathname = new URL(url).pathname;
|
||||||
|
release.entryId = pathname.match(/\/view\/(\d+)/)?.[1] || pathname.match(/\/view\/([\w-]+)/)?.[1];
|
||||||
|
|
||||||
release.title = query.cnt('.content-page-info .title');
|
release.title = query.cnt('.content-page-info .title');
|
||||||
release.description = query.cnt('.content-page-info .desc');
|
release.description = query.cnt('.content-page-info .desc');
|
||||||
|
@ -45,16 +47,8 @@ function scrapeScene({ query }, url) {
|
||||||
release.actors = query.cnts('.content-page-info .models a');
|
release.actors = query.cnts('.content-page-info .models a');
|
||||||
release.duration = query.dur('.content-page-info .total-time:last-child');
|
release.duration = query.dur('.content-page-info .total-time:last-child');
|
||||||
|
|
||||||
release.poster = query.poster('.content-page-header video, .content-page-header-inner video');
|
release.poster = query.poster('.content-page-header video, .content-page-header-inner video') || query.poster('#main-player', 'data-screenshot');
|
||||||
|
release.trailer = query.video('.content-page-header source, .content-page-header-inner source') || query.q('#main-player', 'data-url');
|
||||||
const trailerEl = query.q('.content-page-header source, .content-page-header-inner source');
|
|
||||||
|
|
||||||
if (trailerEl) {
|
|
||||||
release.trailer = {
|
|
||||||
src: trailerEl.src,
|
|
||||||
type: trailerEl.type,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
return release;
|
return release;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue