duration criteria better
This commit is contained in:
parent
c6f2b8feed
commit
790516e385
@ -93,6 +93,8 @@ async function getInfos (file) {
|
|||||||
duration: parseFloat(parsed.duration)
|
duration: parseFloat(parsed.duration)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Math.floor(data.duration) === 0) throw new Error('Invalid file type!')
|
||||||
|
|
||||||
if (parsed.tags) {
|
if (parsed.tags) {
|
||||||
for (let k in parsed.tags) {
|
for (let k in parsed.tags) {
|
||||||
let tagtype = k.toLowerCase()
|
let tagtype = k.toLowerCase()
|
||||||
|
Loading…
Reference in New Issue
Block a user