Compare commits

..

No commits in common. "b45bb0cfbcd5e012c158d7308df5d912ba727c34" and "d6fb9da176706fafad9577d87215b476270b6d49" have entirely different histories.

5 changed files with 17 additions and 10 deletions

View File

@ -18,7 +18,9 @@
:href="href" :href="href"
:class="{ active: isActive }" :class="{ active: isActive }"
@click="navigate" @click="navigate"
>Actors</a> >
<Icon icon="stars" /><span class="nav-label">Actors</span>
</a>
</router-link> </router-link>
</li> </li>
@ -32,7 +34,9 @@
:href="href" :href="href"
:class="{ active: isActive }" :class="{ active: isActive }"
@click="navigate" @click="navigate"
>Networks</a> >
<Icon icon="earth2" /><span class="nav-label">Networks</span>
</a>
</router-link> </router-link>
</li> </li>
@ -46,7 +50,9 @@
:href="href" :href="href"
:class="{ active: isActive }" :class="{ active: isActive }"
@click="navigate" @click="navigate"
>Tags</a> >
<Icon icon="price-tags" /><span class="nav-label">Tags</span>
</a>
</router-link> </router-link>
</li> </li>
</ul> </ul>
@ -114,8 +120,9 @@ export default {
.logo { .logo {
display: inline-block; display: inline-block;
padding: 0 0 0 1rem; padding: .5rem 1rem;
margin: 0 .5rem 0 0; margin: 0 1rem 0 0;
font-size: 2rem;
.icon { .icon {
width: 6rem; width: 6rem;

View File

@ -31,7 +31,7 @@ const routes = [
name: 'scene', name: 'scene',
}, },
{ {
path: '/movie/:releaseId/:releaseSlug?', path: '/movie/:releaseId',
component: Release, component: Release,
name: 'movie', name: 'movie',
}, },

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.107.10", "version": "1.107.9",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.107.10", "version": "1.107.9",
"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": {

View File

@ -187,7 +187,7 @@ function scrapeAll(html, site, networkUrl, hasTeaser = true) {
}); });
} }
async function scrapeScene(html, url, site, baseRelease, mobileHtml) { async function scrapeScene(html, url, site, scrapedRelease, mobileHtml) {
const $ = cheerio.load(html, { normalizeWhitespace: true }); const $ = cheerio.load(html, { normalizeWhitespace: true });
const m$ = mobileHtml && cheerio.load(mobileHtml, { normalizeWhitespace: true }); const m$ = mobileHtml && cheerio.load(mobileHtml, { normalizeWhitespace: true });
const release = { $, url }; const release = { $, url };
@ -198,7 +198,7 @@ async function scrapeScene(html, url, site, baseRelease, mobileHtml) {
const [data, data2] = json ? JSON.parse(json) : []; const [data, data2] = json ? JSON.parse(json) : [];
const videoData = videoJson && JSON.parse(videoJson.slice(videoJson.indexOf('{'), videoJson.indexOf('};') + 1)); const videoData = videoJson && JSON.parse(videoJson.slice(videoJson.indexOf('{'), videoJson.indexOf('};') + 1));
release.entryId = (baseRelease?.path || new URL(url).pathname).match(/\/(\d{2,})\//)[1]; [release.entryId] = (scrapedRelease?.path || new URL(url).pathname).split('/').slice(-1);
release.title = videoData?.playerOptions?.sceneInfos.sceneTitle || data?.name; release.title = videoData?.playerOptions?.sceneInfos.sceneTitle || data?.name;
// date in data object is not the release date of the scene, but the date the entry was added; only use as fallback // date in data object is not the release date of the scene, but the date the entry was added; only use as fallback