[grilo-plugins/fremantle] jamendo: Fixed the page number when building the url request
- From: Xabier Rodriguez Calvar <xrcalvar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/fremantle] jamendo: Fixed the page number when building the url request
- Date: Thu, 24 Jun 2010 11:29:20 +0000 (UTC)
commit fb1977e38e45702043a4c9384823a1f5d55550a0
Author: Xabier Rodriguez Calvar <xrcalvar igalia com>
Date: Tue Jun 15 11:54:59 2010 +0200
jamendo: Fixed the page number when building the url request
src/jamendo/grl-jamendo.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/jamendo/grl-jamendo.c b/src/jamendo/grl-jamendo.c
index 0316143..5c242fc 100644
--- a/src/jamendo/grl-jamendo.c
+++ b/src/jamendo/grl-jamendo.c
@@ -950,7 +950,7 @@ grl_jamendo_source_browse (GrlMediaSource *source,
g_strdup_printf (JAMENDO_GET_ALBUMS_FROM_ARTIST,
jamendo_keys,
bs->count,
- bs->skip + 1,
+ bs->skip / bs->count + 1,
container_split[1]);
} else {
/* Browsing through artists */
@@ -958,7 +958,7 @@ grl_jamendo_source_browse (GrlMediaSource *source,
url = g_strdup_printf (JAMENDO_GET_ARTISTS,
jamendo_keys,
bs->count,
- bs->skip + 1);
+ bs->skip / bs->count + 1);
}
g_free (jamendo_keys);
@@ -970,7 +970,7 @@ grl_jamendo_source_browse (GrlMediaSource *source,
g_strdup_printf (JAMENDO_GET_TRACKS_FROM_ALBUM,
jamendo_keys,
bs->count,
- bs->skip + 1,
+ bs->skip / bs->count + 1,
container_split[1]);
} else {
/* Browsing through albums */
@@ -978,7 +978,7 @@ grl_jamendo_source_browse (GrlMediaSource *source,
url = g_strdup_printf (JAMENDO_GET_ALBUMS,
jamendo_keys,
bs->count,
- bs->skip + 1);
+ bs->skip / bs->count + 1);
}
g_free (jamendo_keys);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]