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 57e30c0..e680448 100644
--- a/db.py
+++ b/db.py
@@ -196,7 +196,10 @@ class Track(Base):
if self.artist:
metadata['artist'] = self.artist.name
if self.album:
- metadata['album'] = self.album.name
+ metadata.update({
+ 'album': self.album.name,
+ 'album_id': self.album.id,
+ })
return metadata
def dict(self):