Compare commits
2 Commits
1dc38ffacc
...
36d84fb98b
Author | SHA1 | Date |
---|---|---|
|
36d84fb98b | |
|
3d80e9d77b |
|
@ -110,6 +110,8 @@ function initReleasesActions(store, router) {
|
|||
$query: String!
|
||||
$limit:Int = 20
|
||||
$offset:Int = 0
|
||||
$hasAuth: Boolean!
|
||||
$userId: Int
|
||||
) {
|
||||
connection: searchMoviesConnection(
|
||||
query: $query
|
||||
|
@ -126,6 +128,8 @@ function initReleasesActions(store, router) {
|
|||
}
|
||||
}
|
||||
`, {
|
||||
hasAuth: !!store.state.auth.user,
|
||||
userId: store.state.auth.user?.id,
|
||||
query,
|
||||
limit,
|
||||
offset: Math.max(0, (pageNumber - 1)) * limit,
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.205.20",
|
||||
"version": "1.206.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "traxxx",
|
||||
"version": "1.205.20",
|
||||
"version": "1.206.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@casl/ability": "^5.2.2",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.205.20",
|
||||
"version": "1.206.0",
|
||||
"description": "All the latest porn releases in one place",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -174,8 +174,11 @@ 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 ? await fetchMovies([...(argv.movie || []), ...(sceneMovies || [])]) : sceneMovies;
|
||||
const deepMovies = argv.sceneMovies || argv.movie || movieUrls ? await fetchMovies([...movieUrls, ...(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;
|
||||
|
|
|
@ -107,6 +107,11 @@ 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',
|
||||
|
|
|
@ -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`),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue