dtas-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/4] mlib: ignore files with nil times


From: Eric Wong
Subject: [PATCH 4/4] mlib: ignore files with nil times
Date: Tue, 30 Jan 2018 09:17:12 +0000

It happens with some video files, apparently.
---
 lib/dtas/mlib.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 @@ def worker_work(job)
     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
-- 
EW




reply via email to

[Prev in Thread] Current Thread [Next in Thread]