Music: replace album's year with release date
This commit is contained in:
parent
09b2c54675
commit
b5093eb6be
2 changed files with 22 additions and 9 deletions
|
@ -290,7 +290,10 @@ class Album(MusicMixin, ItemBase):
|
|||
musicBrainzId,
|
||||
api.artist_name(),
|
||||
genre,
|
||||
api.year(),
|
||||
api.premiere_date(),
|
||||
# TODO: as soon as Plex supports the original
|
||||
# release date (Kodi: strOrigReleaseDate)
|
||||
api.premiere_date(),
|
||||
compilation,
|
||||
api.plot(),
|
||||
thumb,
|
||||
|
@ -308,7 +311,10 @@ class Album(MusicMixin, ItemBase):
|
|||
musicBrainzId,
|
||||
api.artist_name(),
|
||||
genre,
|
||||
api.year(),
|
||||
api.premiere_date(),
|
||||
# TODO: as soon as Plex supports the original
|
||||
# release date (Kodi: strOrigReleaseDate)
|
||||
api.premiere_date(),
|
||||
compilation,
|
||||
api.plot(),
|
||||
thumb,
|
||||
|
@ -402,7 +408,10 @@ class Song(MusicMixin, ItemBase):
|
|||
None,
|
||||
None,
|
||||
genre,
|
||||
api.year(),
|
||||
api.premiere_date(),
|
||||
# TODO: as soon as Plex supports the original
|
||||
# release date (Kodi: strOrigReleaseDate)
|
||||
api.premiere_date(),
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
|
|
|
@ -192,7 +192,8 @@ class KodiMusicDB(common.KodiDBBase):
|
|||
strMusicBrainzAlbumID,
|
||||
strArtistDisp,
|
||||
strGenres,
|
||||
iYear,
|
||||
strReleaseDate,
|
||||
strOrigReleaseDate,
|
||||
bCompilation,
|
||||
strReview,
|
||||
strImage,
|
||||
|
@ -200,7 +201,7 @@ class KodiMusicDB(common.KodiDBBase):
|
|||
iUserrating,
|
||||
lastScraped,
|
||||
strReleaseType)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
''', (args))
|
||||
else:
|
||||
args = list(args)
|
||||
|
@ -212,14 +213,15 @@ class KodiMusicDB(common.KodiDBBase):
|
|||
strMusicBrainzAlbumID,
|
||||
strArtistDisp,
|
||||
strGenres,
|
||||
iYear,
|
||||
strReleaseDate,
|
||||
strOrigReleaseDate,
|
||||
bCompilation,
|
||||
strReview,
|
||||
strLabel,
|
||||
iUserrating,
|
||||
lastScraped,
|
||||
strReleaseType)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
''', (args))
|
||||
|
||||
@db.catch_operationalerrors
|
||||
|
@ -231,7 +233,8 @@ class KodiMusicDB(common.KodiDBBase):
|
|||
strMusicBrainzAlbumID = ?,
|
||||
strArtistDisp = ?,
|
||||
strGenres = ?,
|
||||
iYear = ?,
|
||||
strReleaseDate = ?,
|
||||
strOrigReleaseDate = ?,
|
||||
bCompilation = ?,
|
||||
strReview = ?,
|
||||
strImage = ?,
|
||||
|
@ -250,7 +253,8 @@ class KodiMusicDB(common.KodiDBBase):
|
|||
strMusicBrainzAlbumID = ?,
|
||||
strArtistDisp = ?,
|
||||
strGenres = ?,
|
||||
iYear = ?,
|
||||
strReleaseDate = ?,
|
||||
strOrigReleaseDate = ?,
|
||||
bCompilation = ?,
|
||||
strReview = ?,
|
||||
strLabel = ?,
|
||||
|
|
Loading…
Reference in a new issue