[gnome-music: 2/4] query: Sort album tracks by their album disc number
- From: Arnel A. Borja <arnelborja src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music: 2/4] query: Sort album tracks by their album disc number
- Date: Sun, 18 Aug 2013 17:16:18 +0000 (UTC)
commit 8373ebcc69502ec3bac257cf8d425d2fad2a4d32
Author: Arnel A. Borja <arnelborja src gnome org>
Date: Sun Aug 18 20:04:52 2013 +0800
query: Sort album tracks by their album disc number
https://bugzilla.gnome.org/show_bug.cgi?id=705038
gnomemusic/query.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index 24bf212..2949ed9 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -212,7 +212,10 @@ class Query():
tracker:id(?album) = %(album_id)s
)
}
- ORDER BY nmm:trackNumber(?song) tracker:added(?song)
+ ORDER BY
+ nmm:setNumber(nmm:musicAlbumDisc(?song))
+ nmm:trackNumber(?song)
+ tracker:added(?song)
'''.replace('\n', ' ').strip() % {'album_id': album_id}
return query
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]