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,
|
||||
api.plot(),
|
||||
api.list_to_string(api.studios()),
|
||||
api.kodi_type,
|
||||
api.userrating(),
|
||||
timing.unix_date_to_kodi(self.last_sync),
|
||||
'album',
|
||||
api.kodi_type,
|
||||
kodi_id)
|
||||
# OR ADD THE ALBUM #####
|
||||
else:
|
||||
|
@ -300,9 +301,10 @@ class Album(MusicMixin, ItemBase):
|
|||
compilation,
|
||||
api.plot(),
|
||||
api.list_to_string(api.studios()),
|
||||
api.kodi_type,
|
||||
api.userrating(),
|
||||
timing.unix_date_to_kodi(self.last_sync),
|
||||
'album')
|
||||
api.kodi_type)
|
||||
self.kodidb.add_albumartist(artist_id, kodi_id, api.artist_name())
|
||||
if app.SYNC.artwork:
|
||||
self.kodidb.modify_artwork(artworks,
|
||||
|
@ -396,6 +398,7 @@ class Song(MusicMixin, ItemBase):
|
|||
None,
|
||||
None,
|
||||
None,
|
||||
'single',
|
||||
None,
|
||||
None,
|
||||
timing.unix_date_to_kodi(self.last_sync),
|
||||
|
|
|
@ -197,10 +197,11 @@ class KodiMusicDB(common.KodiDBBase):
|
|||
bCompilation,
|
||||
strReview,
|
||||
strLabel,
|
||||
strType,
|
||||
iUserrating,
|
||||
lastScraped,
|
||||
strReleaseType)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
''', (args))
|
||||
else:
|
||||
args = list(args)
|
||||
|
@ -217,10 +218,11 @@ class KodiMusicDB(common.KodiDBBase):
|
|||
bCompilation,
|
||||
strReview,
|
||||
strLabel,
|
||||
strType,
|
||||
iUserrating,
|
||||
lastScraped,
|
||||
strReleaseType)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
''', (args))
|
||||
|
||||
@db.catch_operationalerrors
|
||||
|
@ -237,6 +239,7 @@ class KodiMusicDB(common.KodiDBBase):
|
|||
bCompilation = ?,
|
||||
strReview = ?,
|
||||
strLabel = ?,
|
||||
strType = ?,
|
||||
iUserrating = ?,
|
||||
lastScraped = ?,
|
||||
strReleaseType = ?
|
||||
|
|
Loading…
Reference in a new issue