summaryrefslogtreecommitdiffstats
path: root/src/ithumb-writer.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/ithumb-writer.c
parent160a618971e64d10e6411d40c5428786ced35cca (diff)
downloadlibgpod-fad5dff9da900de68e287c5a3fe214f907ad90e6.tar.gz
libgpod-fad5dff9da900de68e287c5a3fe214f907ad90e6.tar.xz
libgpod-fad5dff9da900de68e287c5a3fe214f907ad90e6.zip
* 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/ithumb-writer.c')
-rw-r--r--src/ithumb-writer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c
index 074caa9..5594fe5 100644
--- a/src/ithumb-writer.c
+++ b/src/ithumb-writer.c
@@ -1,4 +1,4 @@
-/* Time-stamp: <2007-11-04 09:46:51 jcs>
+/* Time-stamp: <2008-05-25 23:15:17 jcs>
*
* Copyright (C) 2005 Christophe Fergeau
*
@@ -778,6 +778,8 @@ static char *get_ithmb_filename (iThumbWriter *writer, Itdb_Thumb *thumb)
case ITDB_THUMB_COVER_MEDIUM:
case ITDB_THUMB_COVER_SMEDIUM:
case ITDB_THUMB_COVER_XSMALL:
+ case ITDB_THUMB_CHAPTER_LARGE:
+ case ITDB_THUMB_CHAPTER_SMALL:
return g_strdup_printf (":F%d_%d.ithmb",
writer->img_info->format_id,
writer->current_file_index);
@@ -1225,7 +1227,7 @@ static gboolean ithumb_rearrange_thumbnail_file (gpointer _key,
To avoid the need to read large amounts from the iPod and back, or
have to large files exist on the iPod (reading from the original
- thumbnail fail and writing to the new thumbnail file), the
+ thumbnail file and writing to the new thumbnail file), the
modifications are done in place.
It is assumed that all thumbnails have the same data size. If not,