Compare commits

..

No commits in common. "36d84fb98b17fd7a47697205c253806d2d903d64" and "1dc38ffaccbb0530d6bbc4a42d4f9100ad55aea2" have entirely different histories.

6 changed files with 6 additions and 18 deletions

View File

@ -110,8 +110,6 @@ function initReleasesActions(store, router) {
$query: String!
$limit:Int = 20
$offset:Int = 0
$hasAuth: Boolean!
$userId: Int
) {
connection: searchMoviesConnection(
query: $query
@ -128,8 +126,6 @@ function initReleasesActions(store, router) {
}
}
`, {
hasAuth: !!store.state.auth.user,
userId: store.state.auth.user?.id,
query,
limit,
offset: Math.max(0, (pageNumber - 1)) * limit,

4
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.206.0",
"version": "1.205.20",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {

View File

@ -174,11 +174,8 @@ async function init() {
const storedScenes = argv.save ? await storeScenes(deepScenes) : [];
const moviesFromFile = argv.moviesFile && await getFileEntries(argv.moviesFile);
const movieUrls = (argv.movie || []).concat(moviesFromFile || []);
const sceneMovies = deepScenes ? deepScenes.filter((scene) => scene.movie).map((scene) => ({ ...scene.movie, entity: scene.entity })) : [];
const deepMovies = argv.sceneMovies || argv.movie || movieUrls ? await fetchMovies([...movieUrls, ...(sceneMovies || []), ...[]]) : sceneMovies;
const deepMovies = argv.sceneMovies || argv.movie ? await fetchMovies([...(argv.movie || []), ...(sceneMovies || [])]) : sceneMovies;
const movieScenes = argv.movieScenes ? deepMovies.map((movie) => movie.scenes?.map((scene) => ({ ...scene, movie, entity: movie.entity }))).flat().filter(Boolean) : [];
const deepMovieScenes = argv.deep ? await fetchScenes(movieScenes) : movieScenes;

View File

@ -107,11 +107,6 @@ const { argv } = yargs
describe: 'Scrape movie info from URL',
type: 'array',
})
.option('movie-file', {
describe: 'Scrape movie info from URLs in a file',
type: 'string',
alias: 'movies-file',
})
.option('deep', {
describe: 'Fetch details for all releases',
type: 'boolean',

View File

@ -448,8 +448,8 @@ async function scrapeReleaseApi(data, site, options) {
if (data.cover_path) {
release.covers = [
getImageSources(`${data.cover_path}_front_400x625.jpg?width=450&height=636&format=webp`),
getImageSources(`${data.cover_path}_back_400x625.jpg?width=450&height=636&format=webp`),
getImageSources(`/${data.cover_path}_front_400x625.jpg?width=450&height=636&format=webp`),
getImageSources(`/${data.cover_path}_back_400x625.jpg?width=450&height=636&format=webp`),
];
}