Music: sync kodi_type for albums additionally
This commit is contained in:
parent
4da58d72dd
commit
f4923eda22
2 changed files with 10 additions and 4 deletions
|
@ -280,9 +280,10 @@ class Album(MusicMixin, ItemBase):
|
||||||
compilation,
|
compilation,
|
||||||
api.plot(),
|
api.plot(),
|
||||||
api.list_to_string(api.studios()),
|
api.list_to_string(api.studios()),
|
||||||
|
api.kodi_type,
|
||||||
api.userrating(),
|
api.userrating(),
|
||||||
timing.unix_date_to_kodi(self.last_sync),
|
timing.unix_date_to_kodi(self.last_sync),
|
||||||
'album',
|
api.kodi_type,
|
||||||
kodi_id)
|
kodi_id)
|
||||||
# OR ADD THE ALBUM #####
|
# OR ADD THE ALBUM #####
|
||||||
else:
|
else:
|
||||||
|
@ -300,9 +301,10 @@ class Album(MusicMixin, ItemBase):
|
||||||
compilation,
|
compilation,
|
||||||
api.plot(),
|
api.plot(),
|
||||||
api.list_to_string(api.studios()),
|
api.list_to_string(api.studios()),
|
||||||
|
api.kodi_type,
|
||||||
api.userrating(),
|
api.userrating(),
|
||||||
timing.unix_date_to_kodi(self.last_sync),
|
timing.unix_date_to_kodi(self.last_sync),
|
||||||
'album')
|
api.kodi_type)
|
||||||
self.kodidb.add_albumartist(artist_id, kodi_id, api.artist_name())
|
self.kodidb.add_albumartist(artist_id, kodi_id, api.artist_name())
|
||||||
if app.SYNC.artwork:
|
if app.SYNC.artwork:
|
||||||
self.kodidb.modify_artwork(artworks,
|
self.kodidb.modify_artwork(artworks,
|
||||||
|
@ -396,6 +398,7 @@ class Song(MusicMixin, ItemBase):
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
|
'single',
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
timing.unix_date_to_kodi(self.last_sync),
|
timing.unix_date_to_kodi(self.last_sync),
|
||||||
|
|
|
@ -197,10 +197,11 @@ class KodiMusicDB(common.KodiDBBase):
|
||||||
bCompilation,
|
bCompilation,
|
||||||
strReview,
|
strReview,
|
||||||
strLabel,
|
strLabel,
|
||||||
|
strType,
|
||||||
iUserrating,
|
iUserrating,
|
||||||
lastScraped,
|
lastScraped,
|
||||||
strReleaseType)
|
strReleaseType)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
''', (args))
|
''', (args))
|
||||||
else:
|
else:
|
||||||
args = list(args)
|
args = list(args)
|
||||||
|
@ -217,10 +218,11 @@ class KodiMusicDB(common.KodiDBBase):
|
||||||
bCompilation,
|
bCompilation,
|
||||||
strReview,
|
strReview,
|
||||||
strLabel,
|
strLabel,
|
||||||
|
strType,
|
||||||
iUserrating,
|
iUserrating,
|
||||||
lastScraped,
|
lastScraped,
|
||||||
strReleaseType)
|
strReleaseType)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
''', (args))
|
''', (args))
|
||||||
|
|
||||||
@db.catch_operationalerrors
|
@db.catch_operationalerrors
|
||||||
|
@ -237,6 +239,7 @@ class KodiMusicDB(common.KodiDBBase):
|
||||||
bCompilation = ?,
|
bCompilation = ?,
|
||||||
strReview = ?,
|
strReview = ?,
|
||||||
strLabel = ?,
|
strLabel = ?,
|
||||||
|
strType = ?,
|
||||||
iUserrating = ?,
|
iUserrating = ?,
|
||||||
lastScraped = ?,
|
lastScraped = ?,
|
||||||
strReleaseType = ?
|
strReleaseType = ?
|
||||||
|
|
Loading…
Reference in a new issue