Music: replace songs's year with release date
This commit is contained in:
parent
71d0cccdaa
commit
4b9fda9e81
2 changed files with 13 additions and 5 deletions
|
@ -485,7 +485,10 @@ class Song(MusicMixin, ItemBase):
|
||||||
title,
|
title,
|
||||||
track,
|
track,
|
||||||
api.runtime(),
|
api.runtime(),
|
||||||
year,
|
api.premiere_date(),
|
||||||
|
# TODO: as soon as Plex supports the original
|
||||||
|
# release date (Kodi: strOrigReleaseDate)
|
||||||
|
api.premiere_date(),
|
||||||
filename,
|
filename,
|
||||||
api.viewcount(),
|
api.viewcount(),
|
||||||
api.lastplayed(),
|
api.lastplayed(),
|
||||||
|
@ -507,7 +510,10 @@ class Song(MusicMixin, ItemBase):
|
||||||
title,
|
title,
|
||||||
track,
|
track,
|
||||||
api.runtime(),
|
api.runtime(),
|
||||||
year,
|
api.premiere_date(),
|
||||||
|
# TODO: as soon as Plex supports the original
|
||||||
|
# release date (Kodi: strOrigReleaseDate)
|
||||||
|
api.premiere_date(),
|
||||||
filename,
|
filename,
|
||||||
musicBrainzId,
|
musicBrainzId,
|
||||||
api.viewcount(),
|
api.viewcount(),
|
||||||
|
|
|
@ -337,7 +337,8 @@ class KodiMusicDB(common.KodiDBBase):
|
||||||
strTitle,
|
strTitle,
|
||||||
iTrack,
|
iTrack,
|
||||||
iDuration,
|
iDuration,
|
||||||
iYear,
|
strReleaseDate,
|
||||||
|
strOrigReleaseDate,
|
||||||
strFileName,
|
strFileName,
|
||||||
strMusicBrainzTrackID,
|
strMusicBrainzTrackID,
|
||||||
iTimesPlayed,
|
iTimesPlayed,
|
||||||
|
@ -347,7 +348,7 @@ class KodiMusicDB(common.KodiDBBase):
|
||||||
iEndOffset,
|
iEndOffset,
|
||||||
mood,
|
mood,
|
||||||
dateAdded)
|
dateAdded)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
''', (args))
|
''', (args))
|
||||||
|
|
||||||
@db.catch_operationalerrors
|
@db.catch_operationalerrors
|
||||||
|
@ -360,7 +361,8 @@ class KodiMusicDB(common.KodiDBBase):
|
||||||
strTitle = ?,
|
strTitle = ?,
|
||||||
iTrack = ?,
|
iTrack = ?,
|
||||||
iDuration = ?,
|
iDuration = ?,
|
||||||
iYear = ?,
|
strReleaseDate = ?,
|
||||||
|
strOrigReleaseDate = ?,
|
||||||
strFilename = ?,
|
strFilename = ?,
|
||||||
iTimesPlayed = ?,
|
iTimesPlayed = ?,
|
||||||
lastplayed = ?,
|
lastplayed = ?,
|
||||||
|
|
Loading…
Reference in a new issue