Creation automatique des dossiers tmdbintegral/* au premier run
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { createWriteStream } from 'node:fs';
|
||||
import { rename } from 'node:fs/promises';
|
||||
import { rename, mkdir } from 'node:fs/promises';
|
||||
import { pipeline } from 'node:stream/promises';
|
||||
import { createGunzip } from 'node:zlib';
|
||||
import { Readable } from 'node:stream';
|
||||
@@ -44,6 +44,7 @@ async function downloadExport(prefix, outName) {
|
||||
}
|
||||
|
||||
export async function syncExports() {
|
||||
await mkdir(TMDBINTEGRAL_DIR, { recursive: true });
|
||||
await downloadExport('movie_ids', 'movie.json');
|
||||
await downloadExport('tv_series_ids', 'tv.json');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user