From 7c1f04b4e1c95710f1ca20a36bae267ad3b1af33 Mon Sep 17 00:00:00 2001
From: angelblue05 <tamara.angel05@gmail.com>
Date: Fri, 22 Jun 2018 17:13:46 -0500
Subject: [PATCH] Modify notification

Ensure notification does not appear during video playback.
---
 resources/lib/objects/_common.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resources/lib/objects/_common.py b/resources/lib/objects/_common.py
index 47e95f43..122aa88b 100644
--- a/resources/lib/objects/_common.py
+++ b/resources/lib/objects/_common.py
@@ -84,7 +84,7 @@ class Items(object):
 
     def content_pop(self, name):
         # It's possible for the time to be 0. It should be considered disabled in this case.
-        if not self.pdialog and self.content_msg and self.new_time:
+        if not self.pdialog and self.content_msg and self.new_time and (not xbmc.Player().isPlayingVideo() or xbmc.getCondVisibility('VideoPlayer.Content(livetv)')):
             dialog(type_="notification",
                    heading="{emby}",
                    message="%s %s" % (lang(33049), name),