diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-16 14:22:16 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-16 14:31:40 +0200 |
commit | f4001cf408a99049d01a356bfb20a62342de06ea (patch) | |
tree | 421776dfe64335dca2725ac3ac5f3b3e6b7564c6 /server/initializers/installer.ts | |
parent | 16f7022b06fb76c0b00c23c970bc8df605b0ec63 (diff) | |
download | PeerTube-f4001cf408a99049d01a356bfb20a62342de06ea.tar.gz PeerTube-f4001cf408a99049d01a356bfb20a62342de06ea.tar.zst PeerTube-f4001cf408a99049d01a356bfb20a62342de06ea.zip |
Handle .srt subtitles
Diffstat (limited to 'server/initializers/installer.ts')
-rw-r--r-- | server/initializers/installer.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts index b0084b368..1f513a9c3 100644 --- a/server/initializers/installer.ts +++ b/server/initializers/installer.ts | |||
@@ -33,7 +33,8 @@ export { | |||
33 | // --------------------------------------------------------------------------- | 33 | // --------------------------------------------------------------------------- |
34 | 34 | ||
35 | function removeCacheDirectories () { | 35 | function removeCacheDirectories () { |
36 | const cacheDirectories = CACHE.DIRECTORIES | 36 | const cacheDirectories = Object.keys(CACHE) |
37 | .map(k => CACHE[k].DIRECTORY) | ||
37 | 38 | ||
38 | const tasks: Promise<any>[] = [] | 39 | const tasks: Promise<any>[] = [] |
39 | 40 | ||
@@ -48,7 +49,8 @@ function removeCacheDirectories () { | |||
48 | 49 | ||
49 | function createDirectoriesIfNotExist () { | 50 | function createDirectoriesIfNotExist () { |
50 | const storage = CONFIG.STORAGE | 51 | const storage = CONFIG.STORAGE |
51 | const cacheDirectories = CACHE.DIRECTORIES | 52 | const cacheDirectories = Object.keys(CACHE) |
53 | .map(k => CACHE[k].DIRECTORY) | ||
52 | 54 | ||
53 | const tasks = [] | 55 | const tasks = [] |
54 | for (const key of Object.keys(storage)) { | 56 | for (const key of Object.keys(storage)) { |