Music: replace album's year with release date

This commit is contained in:
croneter 2020-12-20 16:02:54 +01:00
parent 09b2c54675
commit b5093eb6be
2 changed files with 22 additions and 9 deletions

View file

@ -290,7 +290,10 @@ class Album(MusicMixin, ItemBase):
musicBrainzId, musicBrainzId,
api.artist_name(), api.artist_name(),
genre, genre,
api.year(), api.premiere_date(),
# TODO: as soon as Plex supports the original
# release date (Kodi: strOrigReleaseDate)
api.premiere_date(),
compilation, compilation,
api.plot(), api.plot(),
thumb, thumb,
@ -308,7 +311,10 @@ class Album(MusicMixin, ItemBase):
musicBrainzId, musicBrainzId,
api.artist_name(), api.artist_name(),
genre, genre,
api.year(), api.premiere_date(),
# TODO: as soon as Plex supports the original
# release date (Kodi: strOrigReleaseDate)
api.premiere_date(),
compilation, compilation,
api.plot(), api.plot(),
thumb, thumb,
@ -402,7 +408,10 @@ class Song(MusicMixin, ItemBase):
None, None,
None, None,
genre, genre,
api.year(), api.premiere_date(),
# TODO: as soon as Plex supports the original
# release date (Kodi: strOrigReleaseDate)
api.premiere_date(),
None, None,
None, None,
None, None,

View file

@ -192,7 +192,8 @@ class KodiMusicDB(common.KodiDBBase):
strMusicBrainzAlbumID, strMusicBrainzAlbumID,
strArtistDisp, strArtistDisp,
strGenres, strGenres,
iYear, strReleaseDate,
strOrigReleaseDate,
bCompilation, bCompilation,
strReview, strReview,
strImage, strImage,
@ -200,7 +201,7 @@ class KodiMusicDB(common.KodiDBBase):
iUserrating, iUserrating,
lastScraped, lastScraped,
strReleaseType) strReleaseType)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
''', (args)) ''', (args))
else: else:
args = list(args) args = list(args)
@ -212,14 +213,15 @@ class KodiMusicDB(common.KodiDBBase):
strMusicBrainzAlbumID, strMusicBrainzAlbumID,
strArtistDisp, strArtistDisp,
strGenres, strGenres,
iYear, strReleaseDate,
strOrigReleaseDate,
bCompilation, bCompilation,
strReview, strReview,
strLabel, strLabel,
iUserrating, iUserrating,
lastScraped, lastScraped,
strReleaseType) strReleaseType)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
''', (args)) ''', (args))
@db.catch_operationalerrors @db.catch_operationalerrors
@ -231,7 +233,8 @@ class KodiMusicDB(common.KodiDBBase):
strMusicBrainzAlbumID = ?, strMusicBrainzAlbumID = ?,
strArtistDisp = ?, strArtistDisp = ?,
strGenres = ?, strGenres = ?,
iYear = ?, strReleaseDate = ?,
strOrigReleaseDate = ?,
bCompilation = ?, bCompilation = ?,
strReview = ?, strReview = ?,
strImage = ?, strImage = ?,
@ -250,7 +253,8 @@ class KodiMusicDB(common.KodiDBBase):
strMusicBrainzAlbumID = ?, strMusicBrainzAlbumID = ?,
strArtistDisp = ?, strArtistDisp = ?,
strGenres = ?, strGenres = ?,
iYear = ?, strReleaseDate = ?,
strOrigReleaseDate = ?,
bCompilation = ?, bCompilation = ?,
strReview = ?, strReview = ?,
strLabel = ?, strLabel = ?,