diff --git a/resources/lib/itemtypes/music.py b/resources/lib/itemtypes/music.py index df45508e..7ca99401 100644 --- a/resources/lib/itemtypes/music.py +++ b/resources/lib/itemtypes/music.py @@ -172,16 +172,6 @@ class Artist(MusicMixin, ItemBase): if app.SYNC.artwork: artworks = api.artwork() - if 'poster' in artworks: - thumb = "%s" % artworks['poster'] - else: - thumb = None - if 'fanart' in artworks: - fanart = "%s" % artworks['fanart'] - else: - fanart = None - else: - thumb, fanart = None, None # UPDATE THE ARTIST ##### if update_item: @@ -196,7 +186,6 @@ class Artist(MusicMixin, ItemBase): kodi_id = self.kodidb.add_artist(api.title(), musicBrainzId) self.kodidb.update_artist(api.list_to_string(api.genres()), api.plot(), - thumb, timing.unix_date_to_kodi(self.last_sync), kodi_id) if app.SYNC.artwork: @@ -276,12 +265,6 @@ class Album(MusicMixin, ItemBase): genre = api.list_to_string(api.genres()) if app.SYNC.artwork: artworks = api.artwork() - if 'poster' in artworks: - thumb = "%s" % artworks['poster'] - else: - thumb = None - else: - thumb = None # UPDATE THE ALBUM ##### if update_item: @@ -296,7 +279,6 @@ class Album(MusicMixin, ItemBase): api.premiere_date(), compilation, api.plot(), - thumb, api.list_to_string(api.studios()), api.userrating(), timing.unix_date_to_kodi(self.last_sync), @@ -317,7 +299,6 @@ class Album(MusicMixin, ItemBase): api.premiere_date(), compilation, api.plot(), - thumb, api.list_to_string(api.studios()), api.userrating(), timing.unix_date_to_kodi(self.last_sync), diff --git a/resources/lib/kodi_db/music.py b/resources/lib/kodi_db/music.py index 5024a3bc..cd2d7c6e 100644 --- a/resources/lib/kodi_db/music.py +++ b/resources/lib/kodi_db/music.py @@ -196,12 +196,11 @@ class KodiMusicDB(common.KodiDBBase): strOrigReleaseDate, bCompilation, strReview, - strImage, strLabel, iUserrating, lastScraped, strReleaseType) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ''', (args)) else: args = list(args) @@ -237,7 +236,6 @@ class KodiMusicDB(common.KodiDBBase): strOrigReleaseDate = ?, bCompilation = ?, strReview = ?, - strImage = ?, strLabel = ?, iUserrating = ?, lastScraped = ?, @@ -425,25 +423,13 @@ class KodiMusicDB(common.KodiDBBase): @db.catch_operationalerrors def update_artist(self, *args): - if app.SYNC.artwork: - self.cursor.execute(''' - UPDATE artist - SET strGenres = ?, - strBiography = ?, - strImage = ?, - lastScraped = ? - WHERE idArtist = ? - ''', (args)) - else: - args = list(args) - del args[3], args[2] - self.cursor.execute(''' - UPDATE artist - SET strGenres = ?, - strBiography = ?, - lastScraped = ? - WHERE idArtist = ? - ''', (args)) + self.cursor.execute(''' + UPDATE artist + SET strGenres = ?, + strBiography = ?, + lastScraped = ? + WHERE idArtist = ? + ''', (args)) @db.catch_operationalerrors def remove_song(self, kodi_id):