mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix content pop typo
This commit is contained in:
parent
e1c2a04571
commit
6eb8cdfa30
5 changed files with 9 additions and 9 deletions
|
@ -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:
|
||||
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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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"):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue