summaryrefslogtreecommitdiff
path: root/db.py
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2012-12-19 23:20:21 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2012-12-19 23:20:21 +0100
commit1134dc1efa6a4326424cf7b1271cb4465afb712d (patch)
treed2b7133c3b241a0428cb563d722d2ee4980eb146 /db.py
parent3ceac273c13435e39cfd84b990e5c4ae728fcfbf (diff)
Allow double clicking on selectable items.
Track items can still be selected by single clicking, this is now done manually. Double clicking will add the track to the playlist. Single clicking on album names will open an album view for that album.
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):