Fix content pop typo

This commit is contained in:
angelblue05 2016-10-10 04:01:13 -05:00
parent e1c2a04571
commit 6eb8cdfa30
5 changed files with 9 additions and 9 deletions

View file

@ -5,7 +5,6 @@
import logging
import xbmc
import xbmcgui
import xbmcvfs
import artwork
@ -39,7 +38,8 @@ class Items(object):
self.direct_path = settings('useDirectPaths') == "1"
self.content_msg = settings('newContent') == "true"
def path_validation(self, path):
@classmethod
def path_validation(cls, path):
# Verify if direct path is accessible or not
if window('emby_pathverified') != "true" and not xbmcvfs.exists(path):
if dialog(type_="yesno",
@ -51,14 +51,14 @@ class Items(object):
return True
def content_pop(self):
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:
dialog(type_="notification",
heading="{emby}",
message="%s %s" % (lang(33049), name),
icon="{emby}",
time=time,
time=self.new_time,
sound=False)
def update_pdialog(self):

View file

@ -174,7 +174,7 @@ class Movies(common.Items):
for item in super(Movies, self).added(items, total):
if self.add_update(item, view):
self.content_pop()
self.content_pop(item.get('Name', "unknown"))
@catch_except()
def add_update(self, item, view=None):

View file

@ -195,7 +195,7 @@ class Music(common.Items):
self.title = "%s - %s" % (item.get('AlbumArtist', "unknown"), self.title)
if self.add_updateSong(item):
self.content_pop()
self.content_pop(self.title)
@catch_except()
def add_updateArtist(self, item, artisttype="MusicArtist"):

View file

@ -125,7 +125,7 @@ class MusicVideos(common.Items):
def added(self, items, total=None, view=None):
for item in super(MusicVideos, self).added(items, total, True):
if self.add_update(item, view):
self.content_pop()
self.content_pop(item.get('Name', "unknown"))
@catch_except
def add_update(self, item, view=None):

View file

@ -226,7 +226,7 @@ class TVShows(common.Items):
self.title = "%s - %s" % (item.get('SeriesName', "Unknown"), self.title)
if self.add_updateEpisode(item):
self.content_pop()
self.content_pop(self.title)
@catch_except()
def add_update(self, item, view=None):