[tracker] tracker-search: Fix duration calculation for album listing
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-search: Fix duration calculation for album listing
- Date: Fri, 29 Jan 2010 09:18:29 +0000 (UTC)
commit ee2d02dcc725bb006ffb91dcc2c4f13df873ee5c
Author: Jürg Billeter <j bitron ch>
Date: Fri Jan 29 10:13:40 2010 +0100
tracker-search: Fix duration calculation for album listing
src/tracker-utils/tracker-search.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-utils/tracker-search.c b/src/tracker-utils/tracker-search.c
index 5ad68f8..01478ca 100644
--- a/src/tracker-utils/tracker-search.c
+++ b/src/tracker-utils/tracker-search.c
@@ -520,7 +520,7 @@ get_music_albums (TrackerClient *client,
if (fts) {
query = g_strdup_printf ("SELECT ?album nie:title (?album) COUNT(?song) "
"AS songs "
- "SUM(nmm:length (?length)) AS totallength "
+ "SUM(nmm:length (?song)) AS totallength "
"WHERE {"
" ?album a nmm:MusicAlbum ."
" ?song nmm:musicAlbum ?album ."
@@ -535,7 +535,7 @@ get_music_albums (TrackerClient *client,
} else {
query = g_strdup_printf ("SELECT ?album nie:title (?album) COUNT(?song) "
"AS songs "
- "SUM(nmm:length (?length)) AS totallength "
+ "SUM(nmm:length (?song)) AS totallength "
"WHERE {"
" ?album a nmm:MusicAlbum ."
" ?song nmm:musicAlbum ?album ."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]