about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-01-30 09:13:56 +0000
committerEric Wong <e@80x24.org>2018-01-30 09:13:56 +0000
commit4e51843e9491e97a6473b293812ceb2b2e7acf0f (patch)
treee4822f5bb46736718eaa1b7d761b4d615d2ceb59
parent8fcf170dcc71dfe9e3dbaffc0b4330391bc0f8da (diff)
downloaddtas-4e51843e9491e97a6473b293812ceb2b2e7acf0f.tar.gz
It happens with some video files, apparently.
-rw-r--r--lib/dtas/mlib.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/mlib.rb b/lib/dtas/mlib.rb
index 3f5763f..5395fa1 100644
--- a/lib/dtas/mlib.rb
+++ b/lib/dtas/mlib.rb
@@ -113,7 +113,7 @@ class DTAS::Mlib # :nodoc:
     end
     return ignore(job) unless found
     tlen = found.duration
-    return ignore(job) if tlen < 0
+    return ignore(job) if tlen.nil? || tlen < 0
     tlen = tlen.round
     tmp = {}
     if comments = found.comments