summaryrefslogtreecommitdiffstats
path: root/src/itdb_artwork.c
diff options
context:
space:
mode:
authorjcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-05-28 13:31:53 +0000
committerjcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-05-28 13:31:53 +0000
commitfad5dff9da900de68e287c5a3fe214f907ad90e6 (patch)
treeb93cf348088a1757543a9c4651ef38a35c1ca811 /src/itdb_artwork.c
parent160a618971e64d10e6411d40c5428786ced35cca (diff)
* src/itdb_track.c (itdb_track_set_thumbnails_internal): set
artwork ID to 0 after removing thumbnails. * src/db-artwork-parser.c (parse_mhii): move out dbid association to a separate function. (mhfd_associate_itunesdb_artwork): handle dbid and mhii_link association of artwork to track (parse_mhfd): loop over the number of mhsd hunks instead of hardcoding it. Call mhfd_associate_itunesdb_artwork(). * src/itdb_itunesdb.c (get_mhit): read the mhii_link field. * src/db-artwork-writer.c (write_mhli): handle unset artwork correctly. (itdb_track_filter_thumbnails): remove thumbnails correctly. * src/db-parse-context.c (db_parse_context_get_sub_context): copy newly introduced artwork field. * tests/test-covers.c: print mhii_link. * src/itdb.h: (Itdb_Track) added mhii_link. (Itdb_Artwork): added dbid. * src/itdb.h, src/db-artwork-parser.c, src/db-artwork-writer.c, src/itdb_device.c, src/ithumb-writer.c, src/itdb_artwork.c: added ITDB_THUMB_CHAPTER_SMALL/LARGE. * src/itdb_device.c: ipod_classic_1_artwork_info: correct ITDB_THUMB_COVER_SMALL/LARGE entries. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1985 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb_artwork.c')
-rw-r--r--src/itdb_artwork.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/itdb_artwork.c b/src/itdb_artwork.c
index 2d8ce77..acdbc7e 100644
--- a/src/itdb_artwork.c
+++ b/src/itdb_artwork.c
@@ -1006,6 +1006,10 @@ itdb_thumb_get_gdk_pixbuf (Itdb_Device *device, Itdb_Thumb *thumb)
width = 88; height = 88; break;
case ITDB_THUMB_COVER_XSMALL:
width = 56; height = 56; break;
+ case ITDB_THUMB_CHAPTER_SMALL:
+ width = 100; height = 100; break;
+ case ITDB_THUMB_CHAPTER_LARGE:
+ width = 200; height = 200; break;
}
if (width == 0)
{