duration criteria better

This commit is contained in:
Evert Prants 2018-11-07 18:54:31 +02:00
parent c6f2b8feed
commit 790516e385
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 3 additions and 1 deletions

View File

@ -93,6 +93,8 @@ async function getInfos (file) {
duration: parseFloat(parsed.duration)
}
if (Math.floor(data.duration) === 0) throw new Error('Invalid file type!')
if (parsed.tags) {
for (let k in parsed.tags) {
let tagtype = k.toLowerCase()