summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-covers.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-covers.c b/tests/test-covers.c
index 0a79cff..53547d7 100644
--- a/tests/test-covers.c
+++ b/tests/test-covers.c
@@ -47,8 +47,8 @@ save_itdb_thumb (Itdb_iTunesDB *itdb, Itdb_Thumb *thumb, const char *filename)
static void
save_song_thumbnails (Itdb_Track *song)
{
+ static gint count = 0;
GList *it;
-
for (it = song->artwork->thumbnails; it != NULL; it = it->next) {
Itdb_Thumb *thumb;
gchar *filename;
@@ -57,7 +57,8 @@ save_song_thumbnails (Itdb_Track *song)
g_return_if_fail (thumb);
filename = NULL;
- filename = g_strdup_printf ("%s-%s-%s-%d-%016"G_GINT64_MODIFIER"x.png",
+ filename = g_strdup_printf ("%03d_%s-%s-%s-%d-%016"G_GINT64_MODIFIER"x.png",
+ count++,
song->artist, song->album,
song->title, thumb->type,
song->dbid);