[grilo-plugins] fixup! thegamesdb: Fix cover not found when there's no back cover
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] fixup! thegamesdb: Fix cover not found when there's no back cover
- Date: Sat, 28 May 2016 22:55:30 +0000 (UTC)
commit 4176fd55a362ca132c32cbaf047687b9bed52df4
Author: Bastien Nocera <hadess hadess net>
Date: Sun May 29 00:47:46 2016 +0200
fixup! thegamesdb: Fix cover not found when there's no back cover
tests/games/Makefile.am | 4 +++-
tests/games/data/network-data.ini | 6 ++++++
tests/games/data/resolve-asterix.data | 16 ++++++++++++++++
tests/games/data/resolve-getgame-asterix.data | 21 +++++++++++++++++++++
4 files changed, 46 insertions(+), 1 deletions(-)
---
diff --git a/tests/games/Makefile.am b/tests/games/Makefile.am
index 38746b1..be421b3 100644
--- a/tests/games/Makefile.am
+++ b/tests/games/Makefile.am
@@ -34,7 +34,9 @@ dist_noinst_DATA = \
data/resolve-getgame-kirby-gb.data \
data/resolve-kirby-gb.data \
data/resolve-getgame-sonic-sms.data\
- data/resolve-sonic-sms.data
+ data/resolve-sonic-sms.data \
+ data/resolve-asterix.data \
+ data/resolve-getgame-asterix.data
noinst_PROGRAMS = $(TEST_PROGS)
diff --git a/tests/games/data/network-data.ini b/tests/games/data/network-data.ini
index 1cbb1c4..9c5f5b7 100644
--- a/tests/games/data/network-data.ini
+++ b/tests/games/data/network-data.ini
@@ -24,3 +24,9 @@ data=resolve-sonic-sms.data
[http://thegamesdb.net/api/GetGame.php?id=3016]
data=resolve-getgame-sonic-sms.data
+
+[http://thegamesdb.net/api/GetGamesList.php?name=Ast%C3%A9rix]
+data=resolve-asterix.data
+
+[http://thegamesdb.net/api/GetGame.php?id=11837]
+data=resolve-getgame-asterix.data
diff --git a/tests/games/data/resolve-asterix.data b/tests/games/data/resolve-asterix.data
new file mode 100644
index 0000000..7eb8232
--- /dev/null
+++ b/tests/games/data/resolve-asterix.data
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<Data>
+<Game>
+<id>11837</id>
+<GameTitle>Astérix and the Great Rescue</GameTitle>
+<ReleaseDate>01/01/1995</ReleaseDate>
+<Platform>Sega Game Gear</Platform>
+</Game>
+<Game>
+<id>5734</id>
+<GameTitle>Astérix and the Secret Mission</GameTitle>
+<ReleaseDate>01/01/1993</ReleaseDate>
+<Platform>Sega Game Gear</Platform>
+</Game>
+</Data>
diff --git a/tests/games/data/resolve-getgame-asterix.data b/tests/games/data/resolve-getgame-asterix.data
new file mode 100644
index 0000000..ead312c
--- /dev/null
+++ b/tests/games/data/resolve-getgame-asterix.data
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<Data>
+<baseImgUrl>http://thegamesdb.net/banners/</baseImgUrl>
+<Game>
+<id>11837</id>
+<GameTitle>Astérix and the Great Rescue</GameTitle>
+<PlatformId>20</PlatformId>
+<Platform>Sega Game Gear</Platform>
+<ReleaseDate>01/01/1995</ReleaseDate>
+<Overview>The game is based on the popular French comics series Astérix. It is 50 B.C., and the entire Gaul
(today's France) is conquered by the Romans. Only one village still remains independent, thanks to the
incredible powers of its two great warriors, Asterix and Obelix. In the game, they must first of all liberate
the village Orvio and rescue their friend Dogmatix.
+
+The player can play as either Asterix or Obelix. They make their way through platform levels, fighting
enemies by punching them, and jumping to access higher ares or to avoid falling down. There are also some
items that the player can collect, such as bombs, with which the player can overcome obstacles and advance in
the game.</Overview>
+<Genres><genre>Action</genre></Genres><Co-op>No</Co-op>
+<Publisher>Sega</Publisher>
+<Developer>Core Design Ltd</Developer>
+<Similar><SimilarCount>3</SimilarCount><Game><id>4251</id><PlatformId>18</PlatformId></Game><Game><id>2693</id><PlatformId>35</PlatformId></Game><Game><id>8081</id><PlatformId>36</PlatformId></Game></Similar><Images>
+<boxart side="front" width="640" height="904"
thumb="boxart/thumb/original/front/11837-1.jpg">boxart/original/front/11837-1.jpg</boxart>
+<clearlogo width="400" height="145">clearlogo/11837.png</clearlogo></Images>
+</Game>
+</Data>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]