Hi,
Is there a way to use the amc script to update kodi but not show a update in the kodi GUI?
Thanks
Disable kodi library update notification.
Re: Disable kodi library update notification.
What does that mean exactly?update kodi but not show a update in the kodi GUI
Re: Disable kodi library update notification.
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 thisrednoah wrote:What does that mean exactly?
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)
}
}
}
Code: Select all
showNotification(host, 9090, getNotificationTitle(), getNotificationMessage(),
Thanks
Re: Disable kodi library update notification.
If you want your own scripts, then use git clone:
https://github.com/filebot/scripts#clone
https://github.com/filebot/scripts#clone
-
- Posts: 3
- Joined: 18 Dec 2020, 01:24
Re: Disable kodi library update notification.
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.
Remove --def kodi, no?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.
-
- Posts: 3
- Joined: 18 Dec 2020, 01:24
Re: Disable kodi library update notification.
No, I still want to trigger kodi to update just without filebots notification showing.
Re: Disable kodi library update notification.
You could use --def exec to run a custom post-process script and then refresh Kodi via curl from there:bnicholson wrote: ↑18 Dec 2020, 08:51 No, I still want to trigger kodi to update just without filebots notification showing.
https://kodi.wiki/view/HOW-TO:Remotely_update_library
-
- Posts: 3
- Joined: 18 Dec 2020, 01:24
Re: Disable kodi library update notification.
Thanks that works.rednoah wrote: ↑18 Dec 2020, 10:01 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