[grilo-plugins] guardianvideos: fix URL format string
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] guardianvideos: fix URL format string
- Date: Mon, 27 Apr 2015 01:51:43 +0000 (UTC)
commit 65698590834ce3bb7a836d7e14b36a2ba87e0481
Author: Giovanni Campagna <gcampagn cs stanford edu>
Date: Mon Apr 20 18:20:37 2015 -0700
guardianvideos: fix URL format string
The online service complains loudly if passed 1.0 instead of 1,
let's make sure values are formatted as integers.
https://bugzilla.gnome.org/show_bug.cgi?id=748224
src/lua-factory/sources/grl-guardianvideos.lua | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lua-factory/sources/grl-guardianvideos.lua b/src/lua-factory/sources/grl-guardianvideos.lua
index cf1cf16..282a898 100644
--- a/src/lua-factory/sources/grl-guardianvideos.lua
+++ b/src/lua-factory/sources/grl-guardianvideos.lua
@@ -23,7 +23,7 @@
-- Test the API at:
--
http://explorer.content.guardianapis.com/search?api-key=rppwmmu3mfqj6gkbs8kcjg23&show-fields=all&page-size=50&tag=type/video
API_KEY = 'rppwmmu3mfqj6gkbs8kcjg23'
-GUARDIANVIDEOS_URL =
'http://content.guardianapis.com/search?tag=type/video&page=%s&page-size=%s&show-fields=all&api-key=%s'
+GUARDIANVIDEOS_URL =
'http://content.guardianapis.com/search?tag=type/video&page=%d&page-size=%d&show-fields=all&api-key=%s'
---------------------------
-- Source initialization --
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]