From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.0.0.0/16 X-Spam-Status: No, score=-3.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B81D41F576 for ; Tue, 30 Jan 2018 09:17:31 +0000 (UTC) Received: from localhost ([::1]:51717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egS2k-0002mx-Ve for e@80x24.org; Tue, 30 Jan 2018 04:17:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egS2i-0002m4-U1 for dtas-all@nongnu.org; Tue, 30 Jan 2018 04:17:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egS2i-0003Uy-5P for dtas-all@nongnu.org; Tue, 30 Jan 2018 04:17:28 -0500 Received: from dcvr.yhbt.net ([2600:3c01::f03c:91ff:fe96:f5d6]:53364) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1egS2h-0003UX-V8 for dtas-all@nongnu.org; Tue, 30 Jan 2018 04:17:28 -0500 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A0DF21FAE5 for ; Tue, 30 Jan 2018 09:17:14 +0000 (UTC) From: Eric Wong To: dtas-all@nongnu.org Subject: [PATCH 4/4] mlib: ignore files with nil times Date: Tue, 30 Jan 2018 09:17:12 +0000 Message-Id: <20180130091712.21755-5-e@80x24.org> In-Reply-To: <20180130091712.21755-1-e@80x24.org> References: <20180130091712.21755-1-e@80x24.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fe96:f5d6 X-BeenThere: dtas-all@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: duct tape audio suite List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dtas-all-bounces+e=80x24.org@nongnu.org Sender: "dtas-all" 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