Disable kodi library update notification.

Any questions? Need some help?
Post Reply
snoeki
Posts: 2
Joined: 27 Mar 2016, 04:41

Disable kodi library update notification.

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Disable kodi library update notification.

Post by rednoah »

update kodi but not show a update in the kodi GUI
What does that mean exactly?
:idea: Please read the FAQ and How to Request Help.
snoeki
Posts: 2
Joined: 27 Mar 2016, 04:41

Re: Disable kodi library update notification.

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Disable kodi library update notification.

Post by rednoah »

If you want your own scripts, then use git clone:
https://github.com/filebot/scripts#clone
:idea: Please read the FAQ and How to Request Help.
bnicholson
Posts: 3
Joined: 18 Dec 2020, 01:24

Re: Disable kodi library update notification.

Post 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.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Disable kodi library update notification.

Post 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?
:idea: Please read the FAQ and How to Request Help.
bnicholson
Posts: 3
Joined: 18 Dec 2020, 01:24

Re: Disable kodi library update notification.

Post by bnicholson »

No, I still want to trigger kodi to update just without filebots notification showing.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Disable kodi library update notification.

Post 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
:idea: Please read the FAQ and How to Request Help.
bnicholson
Posts: 3
Joined: 18 Dec 2020, 01:24

Re: Disable kodi library update notification.

Post by bnicholson »

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
Thanks that works.
Post Reply