Add dateAdded for songs
This commit is contained in:
parent
59af1d09a3
commit
a55c0c6ecb
2 changed files with 16 additions and 8 deletions
|
@ -550,6 +550,7 @@ class Song(MusicMixin, ItemBase):
|
||||||
userdata['UserRating'],
|
userdata['UserRating'],
|
||||||
comment,
|
comment,
|
||||||
mood,
|
mood,
|
||||||
|
api.date_created(),
|
||||||
kodi_id)
|
kodi_id)
|
||||||
else:
|
else:
|
||||||
self.kodidb.update_song_17(parent_id,
|
self.kodidb.update_song_17(parent_id,
|
||||||
|
@ -565,6 +566,7 @@ class Song(MusicMixin, ItemBase):
|
||||||
userdata['UserRating'],
|
userdata['UserRating'],
|
||||||
comment,
|
comment,
|
||||||
mood,
|
mood,
|
||||||
|
api.date_created(),
|
||||||
kodi_id)
|
kodi_id)
|
||||||
# OR ADD THE SONG #####
|
# OR ADD THE SONG #####
|
||||||
else:
|
else:
|
||||||
|
@ -590,7 +592,8 @@ class Song(MusicMixin, ItemBase):
|
||||||
userdata['UserRating'],
|
userdata['UserRating'],
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
mood)
|
mood,
|
||||||
|
api.date_created())
|
||||||
else:
|
else:
|
||||||
self.kodidb.add_song_17(kodi_id,
|
self.kodidb.add_song_17(kodi_id,
|
||||||
parent_id,
|
parent_id,
|
||||||
|
@ -608,7 +611,8 @@ class Song(MusicMixin, ItemBase):
|
||||||
userdata['UserRating'],
|
userdata['UserRating'],
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
mood)
|
mood,
|
||||||
|
api.date_created())
|
||||||
if v.KODIVERSION < 18:
|
if v.KODIVERSION < 18:
|
||||||
# Link song to album
|
# Link song to album
|
||||||
self.kodidb.add_albuminfosong(kodi_id,
|
self.kodidb.add_albuminfosong(kodi_id,
|
||||||
|
|
|
@ -316,8 +316,9 @@ class KodiMusicDB(common.KodiDBBase):
|
||||||
rating,
|
rating,
|
||||||
iStartOffset,
|
iStartOffset,
|
||||||
iEndOffset,
|
iEndOffset,
|
||||||
mood)
|
mood,
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
dateAdded)
|
||||||
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
''', (args))
|
''', (args))
|
||||||
|
|
||||||
def add_song_17(self, *args):
|
def add_song_17(self, *args):
|
||||||
|
@ -339,8 +340,9 @@ class KodiMusicDB(common.KodiDBBase):
|
||||||
rating,
|
rating,
|
||||||
iStartOffset,
|
iStartOffset,
|
||||||
iEndOffset,
|
iEndOffset,
|
||||||
mood)
|
mood,
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
dateAdded)
|
||||||
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
''', (args))
|
''', (args))
|
||||||
|
|
||||||
def update_song(self, *args):
|
def update_song(self, *args):
|
||||||
|
@ -358,7 +360,8 @@ class KodiMusicDB(common.KodiDBBase):
|
||||||
lastplayed = ?,
|
lastplayed = ?,
|
||||||
rating = ?,
|
rating = ?,
|
||||||
comment = ?,
|
comment = ?,
|
||||||
mood = ?
|
mood = ?,
|
||||||
|
dateAdded = ?
|
||||||
WHERE idSong = ?
|
WHERE idSong = ?
|
||||||
''', (args))
|
''', (args))
|
||||||
|
|
||||||
|
@ -377,7 +380,8 @@ class KodiMusicDB(common.KodiDBBase):
|
||||||
lastplayed = ?,
|
lastplayed = ?,
|
||||||
rating = ?,
|
rating = ?,
|
||||||
comment = ?,
|
comment = ?,
|
||||||
mood = ?
|
mood = ?,
|
||||||
|
dateAdded = ?
|
||||||
WHERE idSong = ?
|
WHERE idSong = ?
|
||||||
''', (args))
|
''', (args))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue