forgot about mp4

This commit is contained in:
localhost 2026-04-22 18:16:17 +02:00
parent 2cd9f7e5b4
commit d06a0e212a
1 changed files with 1 additions and 1 deletions

View File

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