From 4374a467255c3d58bb03fd0f79c0c51550fbe3df Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Tue, 17 Jul 2018 16:39:06 -0400 Subject: [PATCH] Handle when duration is nil (ex. with playlist gallery script) --- src/thumbnailer_shared.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thumbnailer_shared.lua b/src/thumbnailer_shared.lua index 509bda1..ee03200 100644 --- a/src/thumbnailer_shared.lua +++ b/src/thumbnailer_shared.lua @@ -282,7 +282,7 @@ function Thumbnailer:register_client() if self.state.available and thumbnailer_options.autogenerate then -- Notify if autogenerate is on and video is not too long - if duration < max_duration or max_duration == 0 then + if not duration == nil and duration < max_duration or max_duration == 0 then self:start_worker_jobs() end end