From 4e51843e9491e97a6473b293812ceb2b2e7acf0f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 30 Jan 2018 09:13:56 +0000 Subject: mlib: ignore files with nil times It happens with some video files, apparently. --- lib/dtas/mlib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dtas/mlib.rb') 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 -- cgit v1.2.3-24-ge0c7