summaryrefslogtreecommitdiff
path: root/db.py
diff options
context:
space:
mode:
Diffstat (limited to 'db.py')
-rw-r--r--db.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/db.py b/db.py
index ed53fdb..81e5e86 100644
--- a/db.py
+++ b/db.py
@@ -199,7 +199,10 @@ class Track(Base):
if self.name:
metadata['title'] = self.name
if self.artist:
- metadata['artist'] = self.artist.name
+ metadata.update({
+ 'artist': self.artist.name,
+ 'artist_id': self.artist.id,
+ })
if self.album:
metadata.update({
'album': self.album.name,