Removed video folder, Fixed cachePath variable
This commit is contained in:
parent
b6b6e44992
commit
d0fdc8a05f
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -13,7 +13,7 @@ const cssPath = path.join(staticPath, 'mainStyle.css')
|
|||
|
||||
const resources = path.join(__dirname, 'resources')
|
||||
|
||||
const cachePath = path.join(__dirname, 'cache/videos')
|
||||
const cachePath = path.join(__dirname, 'cache')
|
||||
const searchCacheDur = (process.env.SEARCH_DUR || 24) * 3600000
|
||||
|
||||
const playerPath = path.join(resources, 'player.html')
|
||||
|
@ -44,7 +44,7 @@ app.listen(PORT, () => {
|
|||
})
|
||||
|
||||
async function cacher(id, ready) {
|
||||
vidpath = path.join(__dirname, `cache/${id}.mp4`)
|
||||
vidpath = path.join(cachePath, `${id}.mp4`)
|
||||
|
||||
var debounce = true
|
||||
|
||||
|
|
Loading…
Reference in a new issue