Commit 3400f606 authored by Guillaume Lebigot's avatar Guillaume Lebigot

Ne plus tenter d'extraire des subs d'un .mp4 (génère parfois des fausses erreurs)

parent 217669aa
......@@ -138,7 +138,7 @@ export function verifyRequiredInfos(karaData,karafile) {
async function findSubFile(videoFile, kara) {
const videoExt = extname(videoFile);
if (kara.subfile === 'dummy.ass') {
if (videoExt === '.mkv' || videoExt === '.mp4') {
if (videoExt === '.mkv') {
const extractFile = resolve(resolvedPathTemp(), `kara_extract.${kara.KID}.ass`);
try {
return await extractSubtitles(videoFile, extractFile);
......
......@@ -51,7 +51,7 @@ module.exports = {
proc.on('close', (code) => {
if (code !== 0) {
logger.error('Video '+videofile+' gain calculation error : '+code);
logger.debug('ffmpeg output : '+output)
logger.debug('ffmpeg output : '+output);
resolve(0);
} else {
var outputArray = output.split(' ');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment