self kodi

This commit is contained in:
SpootDev 2016-03-31 10:28:50 -05:00
parent 7e41f8b051
commit 98bee106cb

View file

@ -544,11 +544,9 @@ class Kodidb_Functions():
def addStudios(self, kodiid, studios, mediatype): def addStudios(self, kodiid, studios, mediatype):
kodiversion = self.kodiversion
for studio in studios: for studio in studios:
if kodiversion in (15, 16, 17): if self.kodiversion in (15, 16, 17):
# Kodi Isengard, Jarvis, Krypton # Kodi Isengard, Jarvis, Krypton
query = ' '.join(( query = ' '.join((
@ -1052,8 +1050,6 @@ class Kodidb_Functions():
def addAlbum(self, name, musicbrainz): def addAlbum(self, name, musicbrainz):
kodiversion = self.kodiversion
query = ' '.join(( query = ' '.join((
"SELECT idAlbum", "SELECT idAlbum",
@ -1067,7 +1063,7 @@ class Kodidb_Functions():
# Create the album # Create the album
self.cursor.execute("select coalesce(max(idAlbum),0) from album") self.cursor.execute("select coalesce(max(idAlbum),0) from album")
albumid = self.cursor.fetchone()[0] + 1 albumid = self.cursor.fetchone()[0] + 1
if kodiversion in (15, 16, 17): if self.kodiversion in (15, 16, 17):
query = ( query = (
''' '''
INSERT INTO album(idAlbum, strAlbum, strMusicBrainzAlbumID, strReleaseType) INSERT INTO album(idAlbum, strAlbum, strMusicBrainzAlbumID, strReleaseType)