Undo useless changes to music
The problem was in Items class, not the Music class.
This commit is contained in:
parent
f99efb2a83
commit
950ae74939
1 changed files with 8 additions and 9 deletions
|
@ -1879,7 +1879,6 @@ class Music(Items):
|
||||||
def __init__(self, embycursor, musiccursor):
|
def __init__(self, embycursor, musiccursor):
|
||||||
|
|
||||||
Items.__init__(self, embycursor, musiccursor)
|
Items.__init__(self, embycursor, musiccursor)
|
||||||
self.musiccursor = musiccursor
|
|
||||||
|
|
||||||
self.directstream = utils.settings('streamMusic') == "true"
|
self.directstream = utils.settings('streamMusic') == "true"
|
||||||
self.userid = utils.window('emby_currUser')
|
self.userid = utils.window('emby_currUser')
|
||||||
|
@ -1936,7 +1935,7 @@ class Music(Items):
|
||||||
def add_updateArtist(self, item, artisttype="MusicArtist"):
|
def add_updateArtist(self, item, artisttype="MusicArtist"):
|
||||||
# Process a single artist
|
# Process a single artist
|
||||||
kodiversion = self.kodiversion
|
kodiversion = self.kodiversion
|
||||||
kodicursor = self.musiccursor
|
kodicursor = self.kodicursor
|
||||||
emby_db = self.emby_db
|
emby_db = self.emby_db
|
||||||
kodi_db = self.kodi_db
|
kodi_db = self.kodi_db
|
||||||
artwork = self.artwork
|
artwork = self.artwork
|
||||||
|
@ -2019,7 +2018,7 @@ class Music(Items):
|
||||||
# Process a single artist
|
# Process a single artist
|
||||||
emby = self.emby
|
emby = self.emby
|
||||||
kodiversion = self.kodiversion
|
kodiversion = self.kodiversion
|
||||||
kodicursor = self.musiccursor
|
kodicursor = self.kodicursor
|
||||||
emby_db = self.emby_db
|
emby_db = self.emby_db
|
||||||
kodi_db = self.kodi_db
|
kodi_db = self.kodi_db
|
||||||
artwork = self.artwork
|
artwork = self.artwork
|
||||||
|
@ -2177,7 +2176,7 @@ class Music(Items):
|
||||||
def add_updateSong(self, item):
|
def add_updateSong(self, item):
|
||||||
# Process single song
|
# Process single song
|
||||||
kodiversion = self.kodiversion
|
kodiversion = self.kodiversion
|
||||||
kodicursor = self.musiccursor
|
kodicursor = self.kodicursor
|
||||||
emby_db = self.emby_db
|
emby_db = self.emby_db
|
||||||
kodi_db = self.kodi_db
|
kodi_db = self.kodi_db
|
||||||
artwork = self.artwork
|
artwork = self.artwork
|
||||||
|
@ -2426,7 +2425,7 @@ class Music(Items):
|
||||||
def updateUserdata(self, item):
|
def updateUserdata(self, item):
|
||||||
# This updates: Favorite, LastPlayedDate, Playcount, PlaybackPositionTicks
|
# This updates: Favorite, LastPlayedDate, Playcount, PlaybackPositionTicks
|
||||||
# Poster with progress bar
|
# Poster with progress bar
|
||||||
kodicursor = self.musiccursor
|
kodicursor = self.kodicursor
|
||||||
emby_db = self.emby_db
|
emby_db = self.emby_db
|
||||||
kodi_db = self.kodi_db
|
kodi_db = self.kodi_db
|
||||||
API = api.API(item)
|
API = api.API(item)
|
||||||
|
@ -2465,7 +2464,7 @@ class Music(Items):
|
||||||
def remove(self, itemid):
|
def remove(self, itemid):
|
||||||
# Remove kodiid, fileid, pathid, emby reference
|
# Remove kodiid, fileid, pathid, emby reference
|
||||||
emby_db = self.emby_db
|
emby_db = self.emby_db
|
||||||
kodicursor = self.musiccursor
|
kodicursor = self.kodicursor
|
||||||
artwork = self.artwork
|
artwork = self.artwork
|
||||||
|
|
||||||
emby_dbitem = emby_db.getItem_byId(itemid)
|
emby_dbitem = emby_db.getItem_byId(itemid)
|
||||||
|
@ -2530,7 +2529,7 @@ class Music(Items):
|
||||||
|
|
||||||
def removeSong(self, kodiid):
|
def removeSong(self, kodiid):
|
||||||
|
|
||||||
kodicursor = self.musiccursor
|
kodicursor = self.kodicursor
|
||||||
artwork = self.artwork
|
artwork = self.artwork
|
||||||
|
|
||||||
artwork.deleteArtwork(kodiid, "song", kodicursor)
|
artwork.deleteArtwork(kodiid, "song", kodicursor)
|
||||||
|
@ -2538,7 +2537,7 @@ class Music(Items):
|
||||||
|
|
||||||
def removeAlbum(self, kodiid):
|
def removeAlbum(self, kodiid):
|
||||||
|
|
||||||
kodicursor = self.musiccursor
|
kodicursor = self.kodicursor
|
||||||
artwork = self.artwork
|
artwork = self.artwork
|
||||||
|
|
||||||
artwork.deleteArtwork(kodiid, "album", kodicursor)
|
artwork.deleteArtwork(kodiid, "album", kodicursor)
|
||||||
|
@ -2546,7 +2545,7 @@ class Music(Items):
|
||||||
|
|
||||||
def removeArtist(self, kodiid):
|
def removeArtist(self, kodiid):
|
||||||
|
|
||||||
kodicursor = self.musiccursor
|
kodicursor = self.kodicursor
|
||||||
artwork = self.artwork
|
artwork = self.artwork
|
||||||
|
|
||||||
artwork.deleteArtwork(kodiid, "artist", kodicursor)
|
artwork.deleteArtwork(kodiid, "artist", kodicursor)
|
||||||
|
|
Loading…
Reference in a new issue