diff options
author | Christophe Fergeau <teuf@gnome.org> | 2005-11-23 18:21:52 +0000 |
---|---|---|
committer | Christophe Fergeau <teuf@gnome.org> | 2005-11-23 18:21:52 +0000 |
commit | df739448ee81be2c415b2202c9b2d83c1cedf2de (patch) | |
tree | c32d396b78585c2673f4c2c3a54093923c93c6fe /tests | |
parent | 559cf826c24c86febec9c600107ffba9e161a4fb (diff) | |
download | libgpod-df739448ee81be2c415b2202c9b2d83c1cedf2de.tar.gz libgpod-df739448ee81be2c415b2202c9b2d83c1cedf2de.tar.xz libgpod-df739448ee81be2c415b2202c9b2d83c1cedf2de.zip |
2005-11-23 Christophe Fergeau <teuf@gnome.org>
* src/db-artwork-debug.c: (get_utf16_string):
* src/db-artwork-parser.c: (get_utf16_string), (parse_mhod_3),
(parse_mhni), (ipod_supports_cover_art), (ipod_parse_artwork_db):
* src/db-artwork-parser.h:
* src/db-artwork-writer.c: (get_artwork_info), (write_mhod_type_3),
(write_mhni), (write_mhod), (write_mhii), (write_mhif):
* src/db-image-parser.c: (unpack_RGB_565),
(image_type_from_corr_id), (ipod_image_new_from_mhni):
* src/db-image-parser.h:
* src/itdb.h:
* src/ithumb-writer.c: (pack_RGB_565),
(ithumb_writer_write_thumbnail), (ipod_image_get_ithmb_filename),
(ithumb_writer_new), (ithumb_writer_free), (write_thumbnail),
(itdb_write_ithumb_files):
* tests/test-covers.c: (save_song_thumbnails): rework artwork code in
an attempt to properly support artwork on all the iPod models
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1171 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-covers.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/test-covers.c b/tests/test-covers.c index 98d3575..fb21d00 100644 --- a/tests/test-covers.c +++ b/tests/test-covers.c @@ -114,13 +114,10 @@ save_song_thumbnails (Itdb_Track *song) g_return_if_fail (image); filename = NULL; - if (image->type == ITDB_IMAGE_FULL_SCREEN) { - filename = g_strdup_printf ("/tmp/fullsize%016"G_GINT64_MODIFIER"x.png", - song->dbid); - } else if (image->type == ITDB_IMAGE_NOW_PLAYING) { - filename = g_strdup_printf ("/tmp/nowplaying%016"G_GINT64_MODIFIER"x.png", - song->dbid); - } + filename = g_strdup_printf ("/tmp/%s-%s-%s-%d-%016"G_GINT64_MODIFIER"x.png", + song->artist, song->album, + song->title, image->type, + song->dbid); if (filename != NULL) { save_itdb_image (image, filename); g_free (filename); |