From 2f38c98409af940c8bcbe015e024317340a22a13 Mon Sep 17 00:00:00 2001 From: selios Date: Fri, 9 Sep 2016 12:23:20 +0200 Subject: [PATCH] Allow scan in kodi even if showNotification failed sometime, showNotification failed for some reason (e.g. fileName too long). If showNotification and scanVideo are in the same try/catch, and showNotification failed, scan is not started. --- amc.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/amc.groovy b/amc.groovy index 2b01247..ce44ac3 100755 --- a/amc.groovy +++ b/amc.groovy @@ -474,6 +474,8 @@ if (getRenameLog().size() > 0) { log.info "Notify Kodi: ${instance.host}:${instance.port}" tryLogCatch{ showNotification(instance.host, instance.port, getNotificationTitle(), getNotificationMessage(), 'http://app.filebot.net/icon.png') + } + tryLogCatch{ scanVideoLibrary(instance.host, instance.port) } }