summaryrefslogtreecommitdiffstats
path: root/src/db-artwork-writer.c
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2005-12-04 05:27:13 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2005-12-04 05:27:13 +0000
commit6f8befd8425ad913a612dfa9895b524f7c4ab202 (patch)
tree193971631e52cba1b26900fb5ecd0bd7ea4248c2 /src/db-artwork-writer.c
parent114bc20689f6d1d6963510b49002e1955cbe1008 (diff)
downloadlibgpod-6f8befd8425ad913a612dfa9895b524f7c4ab202.tar.gz
libgpod-6f8befd8425ad913a612dfa9895b524f7c4ab202.tar.xz
libgpod-6f8befd8425ad913a612dfa9895b524f7c4ab202.zip
* src/db-artwork-writer/parser.c: Create ArtworkDB when it does
not exist. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1183 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/db-artwork-writer.c')
-rw-r--r--src/db-artwork-writer.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/db-artwork-writer.c b/src/db-artwork-writer.c
index 280c2b7..7159885 100644
--- a/src/db-artwork-writer.c
+++ b/src/db-artwork-writer.c
@@ -741,16 +741,13 @@ ipod_write_artwork_db (Itdb_iTunesDB *db)
char *filename;
int id_max;
- /* First, let's write the .ithmb files, this will create the various
- * thumbnails as well, and update the Itdb_Track items contained in
- * the database appropriately (ie set the 'artwork_count' and
- * 'artwork_size' fields, as well as the 2 Itdb_Thumb fields
- */
+ /* First, let's write the .ithmb files, this will create the
+ * various thumbnails as well */
+
itdb_write_ithumb_files (db);
/* Now we can update the ArtworkDB file */
id_max = ipod_artwork_db_set_ids (db);
- /* FIXME: need to create the file if it doesn't exist */
filename = ipod_db_get_artwork_db_path (db->mountpoint);
if (filename == NULL) {
/* FIXME: the iTunesDB will be inconsistent wrt artwork_count