add for new formats

This commit is contained in:
localhost 2025-10-18 13:23:54 +02:00
parent a4eac5b215
commit 26adf1a3d2
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ redis.on('ready', async function () {
setInterval(async () => {
const files = fs.readdirSync('videos')
const webmFiles = files.filter((file) => file.endsWith('.mp4'))
webmFiles.forEach(async (f) => {
const targetFiles = files.filter((file) => file.endsWith('.webm') || file.endsWith('.m4a'))
targetFiles.forEach(async (f) => {
const videoId = f.includes('_') ? f.split('_')[0] : f.replace('.mp4', '')
const isActive = await redis.get(videoId)
if (!isActive) {