Page 1 of 1
Disable kodi library update notification.
Posted: 27 Mar 2016, 04:46
by snoeki
Hi,
Is there a way to use the amc script to update kodi but not show a update in the kodi GUI?
Thanks
Re: Disable kodi library update notification.
Posted: 27 Mar 2016, 12:37
by rednoah
update kodi but not show a update in the kodi GUI
What does that mean exactly?
Re: Disable kodi library update notification.
Posted: 27 Mar 2016, 21:49
by snoeki
rednoah wrote:What does that mean exactly?
When filebot finishes processing a file a notification is shown on the kodi host something like "FileBot finished processing tv.show.name.mkv" I would like to disable this notification. I've found the section in the amc.groovy script that controls this
Code: Select all
if (getRenameLog().size() > 0) {
// messages used for kodi / plex / emby pushover notifications
def getNotificationTitle = { "FileBot finished processing ${getRenameLog().values().findAll{ !it.isSubtitle() }.size()} files" }.memoize()
def getNotificationMessage = { prefix = '• ', postfix = '\n' -> tryQuietly{ ut_title } ?: (input.any{ !it.isSubtitle() } ? input.findAll{ !it.isSubtitle() } : input).collect{ relativeInputPath(it) as File }*.getRoot()*.getNameWithoutExtension().unique().sort{ it.toLowerCase() }.collect{ prefix + it }.join(postfix).trim() }.memoize()
// make Kodi scan for new content and display notification message
if (kodi) {
kodi.each{ host ->
log.info "Notify Kodi: $host"
tryLogCatch{
showNotification(host, 9090, getNotificationTitle(), getNotificationMessage(),
'http://app.filebot.net/icon.png')
scanVideoLibrary(host, 9090)
}
}
}
I think if I comment out
Code: Select all
showNotification(host, 9090, getNotificationTitle(), getNotificationMessage(),
it should do what I want but when I try and run the amc.groovy script locally I get errors I think a dependency problem. I was wondering if there was a option to turn this off using a argument when calling the script that I may have missed.
Thanks
Re: Disable kodi library update notification.
Posted: 27 Mar 2016, 22:19
by rednoah
If you want your own scripts, then use
git clone:
https://github.com/filebot/scripts#clone
Re: Disable kodi library update notification.
Posted: 18 Dec 2020, 01:29
by bnicholson
It would be really good to have the option to disable the kodi library notification with an argument when calling the amc script. Lately the notification seems to be staying visible for +1 minute.
Re: Disable kodi library update notification.
Posted: 18 Dec 2020, 03:19
by rednoah
bnicholson wrote: ↑18 Dec 2020, 01:29
It would be really good to have the option to disable the kodi library notification with an argument when calling the amc script. Lately the notification seems to be staying visible for +1 minute.
Remove
--def kodi, no?
Re: Disable kodi library update notification.
Posted: 18 Dec 2020, 08:51
by bnicholson
No, I still want to trigger kodi to update just without filebots notification showing.
Re: Disable kodi library update notification.
Posted: 18 Dec 2020, 10:01
by rednoah
bnicholson wrote: ↑18 Dec 2020, 08:51
No, I still want to trigger kodi to update just without filebots notification showing.
You could use
--def exec to run a custom post-process script and then refresh Kodi via curl from there:
https://kodi.wiki/view/HOW-TO:Remotely_update_library
Re: Disable kodi library update notification.
Posted: 26 Dec 2020, 22:03
by bnicholson