Compare commits

..

No commits in common. "f7708e07401b98357fc0d11213fa0ad6afaa7989" and "a99cee38a0468f9545e2ddbe0ba682b74fcf29cb" have entirely different histories.

4 changed files with 7 additions and 17 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.226.11", "version": "1.226.10",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "traxxx", "name": "traxxx",
"version": "1.226.11", "version": "1.226.10",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@casl/ability": "^5.2.2", "@casl/ability": "^5.2.2",

View File

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

@ -163,13 +163,6 @@ function toBaseSource(rawSource) {
return null; return null;
} }
if (rawSource.match(/.m3u8$/)) {
return {
src: rawSource,
stream: rawSource,
};
}
return { return {
src: rawSource, src: rawSource,
}; };

View File

@ -129,7 +129,7 @@ function scrapeScene(html, url, _site) {
const { query } = qu.ex(html, '.playerSection'); const { query } = qu.ex(html, '.playerSection');
const release = {}; const release = {};
const { pathname } = new URL(url); const { pathname, hostname } = new URL(url);
[release.shootId] = query.cnt('.vdoTags + .vdoCast')?.match(/\w+$/) || []; [release.shootId] = query.cnt('.vdoTags + .vdoCast')?.match(/\w+$/) || [];
release.entryId = pathname.match(/video(\d+)/)?.[1]; release.entryId = pathname.match(/video(\d+)/)?.[1];
@ -146,15 +146,12 @@ function scrapeScene(html, url, _site) {
if (poster) { if (poster) {
release.poster = [ release.poster = [
poster.replace('//big_trailer', '/big_trailer'), poster,
poster.replace(/\/?\/big_trailer/, '/members/450x340'), // load error fallback poster.replace('/big_trailer', '/members/450x340'), // load error fallback
]; ];
} }
release.trailer = [ release.trailer = query.trailer() || qu.prefixUrl(html.match(/'(\/\/trailers.*mp4)'/)?.[1], hostname);
query.video('video source[type="video/mp4"]'),
query.video('video source[type="application/x-mpegURL"]'),
];
// all scenes seem to have 12 album photos available, not always included on the page // all scenes seem to have 12 album photos available, not always included on the page
const firstPhotoUrl = qu.ex(html).query.img('img[data-slider-index="1"]'); const firstPhotoUrl = qu.ex(html).query.img('img[data-slider-index="1"]');