- const resolutions = [
- VideoResolution.H_240P,
- VideoResolution.H_360P,
- VideoResolution.H_480P,
- VideoResolution.H_720P,
- VideoResolution.H_1080P
- ]
-
- for (const resolution of resolutions) {
- if (configResolutions[resolution + 'p'] === true && videoFileHeight > resolution) {
- resolutionsEnabled.push(resolution)
- }
- }
-
- return resolutionsEnabled
+ const hash = sha256(id)
+ return join(CONFIG.STORAGE.TMP_DIR, `${hash}-import${extension}`)