diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-10-01 15:28:49 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-10-01 15:28:49 +0000 |
commit | 08584ae5069fdd4609424db99b7a0537112935ff (patch) | |
tree | c1506917f1974de4b2fcfb88c27297ba96c8e288 /src/db-artwork-writer.c | |
parent | 6e5ba9347d78dfcf374c9d479bf50e01df53dd55 (diff) | |
download | libgpod-08584ae5069fdd4609424db99b7a0537112935ff.tar.gz libgpod-08584ae5069fdd4609424db99b7a0537112935ff.tar.xz libgpod-08584ae5069fdd4609424db99b7a0537112935ff.zip |
* src/itdb_itunesdb.c (mk_mhit): write extended mhit header for
new iPod Nanos and Classics so they display artwork (Christophe)
* src/db-artwork-writer (ipod_artwork_set_ids): modify the
assignment of IDs for artwork (Christophe)
* src/itdb_device.c: added artwork definition file (cover only)
for iPod Nano Videos (3G). Thanks to Simon Schulz.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1711 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/db-artwork-writer.c')
-rw-r--r-- | src/db-artwork-writer.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/db-artwork-writer.c b/src/db-artwork-writer.c index cbf67fe..e11d87d 100644 --- a/src/db-artwork-writer.c +++ b/src/db-artwork-writer.c @@ -999,20 +999,22 @@ static unsigned int ipod_artwork_db_set_ids (Itdb_iTunesDB *db) { GList *it; - unsigned int id; - - id = 64; + unsigned int max_id; + + max_id = 0; for (it = db->tracks; it != NULL; it = it->next) { Itdb_Track *song; song = (Itdb_Track *)it->data; + if (max_id <= song->id) { + max_id = song->id; + } if (song->artwork->thumbnails != NULL) { - song->artwork->id = id; - id++; + song->artwork->id = song->id; } } - return id; + return max_id; } int |