diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml
index 61624c4e..59ae3caf 100644
--- a/resources/language/English/strings.xml
+++ b/resources/language/English/strings.xml
@@ -233,11 +233,7 @@
DB Sync Indication:
Play Count Sync Indication:
Enable HTTPS
- Force Transcoding Codecs
- Enable Netflix style next up notification
- - The number of seconds before the end to show the notification
- Show Emby Info dialog on play/select action
Enable server connection message on startup
Recently added Home Videos
@@ -309,6 +305,8 @@
Startup delay (in seconds)
Enable server restart message
Enable new content notification
+ For the video library (in seconds)
+ For the music library (in seconds)
Welcome
diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py
index 3f022273..71d81d5f 100644
--- a/resources/lib/itemtypes.py
+++ b/resources/lib/itemtypes.py
@@ -39,6 +39,8 @@ class Items(object):
self.directpath = utils.settings('useDirectPaths') == "1"
self.music_enabled = utils.settings('enableMusic') == "true"
self.contentmsg = utils.settings('newContent') == "true"
+ self.newvideo_time = int(utils.settings('newvideotime'))*1000
+ self.newmusic_time = int(utils.settings('newmusictime'))*1000
self.artwork = artwork.Artwork()
self.emby = embyserver.Read_EmbyServer()
@@ -205,11 +207,12 @@ class Items(object):
return True
- def contentPop(self, name):
+ def contentPop(self, name, time=5000):
xbmcgui.Dialog().notification(
heading="Emby for Kodi",
message="Added: %s" % name,
icon="special://home/addons/plugin.video.emby/icon.png",
+ time=time,
sound=False)
@@ -232,7 +235,7 @@ class Movies(Items):
count += 1
self.add_update(movie)
if not pdialog and self.contentmsg:
- self.contentPop(title)
+ self.contentPop(title, self.newvideo_time)
def added_boxset(self, items, pdialog):
@@ -627,7 +630,7 @@ class MusicVideos(Items):
count += 1
self.add_update(mvideo)
if not pdialog and self.contentmsg:
- self.contentPop(title)
+ self.contentPop(title, self.newvideo_time)
def add_update(self, item, viewtag=None, viewid=None):
@@ -964,7 +967,7 @@ class TVShows(Items):
count += 1
self.add_updateEpisode(episode)
if not pdialog and self.contentmsg:
- self.contentPop(title)
+ self.contentPop(title, self.newvideo_time)
def add_update(self, item, viewtag=None, viewid=None):
@@ -1665,7 +1668,7 @@ class Music(Items):
count += 1
self.add_updateSong(song)
if not pdialog and self.contentmsg:
- self.contentPop(title)
+ self.contentPop(title, self.newmusic_time)
def add_updateArtist(self, item, artisttype="MusicArtist"):
# Process a single artist
diff --git a/resources/settings.xml b/resources/settings.xml
index a2ee222e..be8a72c1 100644
--- a/resources/settings.xml
+++ b/resources/settings.xml
@@ -68,6 +68,8 @@
+
+