Create scripts/tmp directory

This commit is contained in:
Aleksandr Statciuk 2023-05-15 19:11:07 +03:00
parent 691ba44d0c
commit 8a448a981a
8 changed files with 437 additions and 7 deletions

View file

@ -1,7 +1,7 @@
#!/bin/bash
mkdir -p scripts/data
curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json
curl -L -o scripts/data/countries.json https://iptv-org.github.io/api/countries.json
curl -L -o scripts/data/regions.json https://iptv-org.github.io/api/regions.json
curl -L -o scripts/data/subdivisions.json https://iptv-org.github.io/api/subdivisions.json
mkdir -p scripts/tmp/data
curl -L -o scripts/tmp/data/channels.json https://iptv-org.github.io/api/channels.json
curl -L -o scripts/tmp/data/countries.json https://iptv-org.github.io/api/countries.json
curl -L -o scripts/tmp/data/regions.json https://iptv-org.github.io/api/regions.json
curl -L -o scripts/tmp/data/subdivisions.json https://iptv-org.github.io/api/subdivisions.json

View file

@ -1,7 +1,7 @@
const _ = require('lodash')
const file = require('./file')
const DATA_DIR = process.env.DATA_DIR || './scripts/data'
const DATA_DIR = process.env.DATA_DIR || './scripts/tmp/data'
class API {
constructor(filepath) {

View file

@ -1,7 +1,7 @@
const nedb = require('nedb-promises')
const file = require('./file')
const DB_DIR = process.env.DB_DIR || './scripts/database'
const DB_DIR = process.env.DB_DIR || './scripts/tmp/database'
class Database {
constructor(filepath) {

2
scripts/tmp/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore