mirror of
https://github.com/qwertyforce/scenery.git
synced 2025-05-29 10:43:31 +00:00
change paths
This commit is contained in:
parent
8f38225ef2
commit
8f5244769c
@ -7,11 +7,11 @@ const { COPYFILE_EXCL } = fs.constants;
|
|||||||
|
|
||||||
const imghash: any = require('imghash');
|
const imghash: any = require('imghash');
|
||||||
|
|
||||||
|
import config from "../../config/config"
|
||||||
|
|
||||||
|
const PATH_TO_IMAGES = path.join(config.root_path, 'import_from_derpi', 'images')
|
||||||
const PATH_TO_IMAGES = path.join("..", "..", "..", 'import_from_derpi', 'images')
|
const PATH_TO_JSONS = path.join(config.root_path, 'import_from_derpi', 'jsons')
|
||||||
const PATH_TO_JSONS = path.join("..", "..", "..", 'import_from_derpi', 'jsons')
|
const PATH_TO_IMPORTED_IMAGES = path.join(config.root_path, 'public', 'images')
|
||||||
const PATH_TO_IMPORTED_IMAGES = path.join("..", "..", "..", 'public', 'images')
|
|
||||||
const IMAGES = fs.readdirSync(PATH_TO_IMAGES)
|
const IMAGES = fs.readdirSync(PATH_TO_IMAGES)
|
||||||
|
|
||||||
const JSONS = fs.readdirSync(PATH_TO_JSONS).map(json_file_name => path.parse(json_file_name).name)
|
const JSONS = fs.readdirSync(PATH_TO_JSONS).map(json_file_name => path.parse(json_file_name).name)
|
||||||
|
@ -9,7 +9,7 @@ import sharp from 'sharp'
|
|||||||
import image_ops from './../helpers/image_ops'
|
import image_ops from './../helpers/image_ops'
|
||||||
const imghash: any = require('imghash');
|
const imghash: any = require('imghash');
|
||||||
const PATH_TO_IMAGES = path.join(process.cwd(), 'public', 'images')
|
const PATH_TO_IMAGES = path.join(process.cwd(), 'public', 'images')
|
||||||
const PATH_TO_WEBP = path.join(process.cwd(),'webp_images')
|
const PATH_TO_WEBP = path.join(process.cwd(),'public','webp_images')
|
||||||
async function parse_author(tags: any) {
|
async function parse_author(tags: any) {
|
||||||
for (const tag of tags) {
|
for (const tag of tags) {
|
||||||
const idx = tag.indexOf("artist:")
|
const idx = tag.indexOf("artist:")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user