Author: jwilcox
Date: 2007-10-11 19:47:05 -0400 (Thu, 11 Oct 2007)
New Revision: 87365
Modified:
trunk/ipod-sharp/src/Track.cs
trunk/ipod-sharp/src/TrackDatabase.cs
Log:
assign the right-side artwork when the cover is set
Modified: trunk/ipod-sharp/src/Track.cs
===================================================================
--- trunk/ipod-sharp/src/Track.cs 2007-10-11 23:40:59 UTC (rev 87364)
+++ trunk/ipod-sharp/src/Track.cs 2007-10-11 23:47:05 UTC (rev 87365)
@@ -351,6 +351,7 @@
if (db.ArtworkDatabase != null) {
coverPhoto = db.ArtworkDatabase.CreatePhoto ();
coverPhoto.Record.TrackId = record.DatabaseId;
+ record.RightSideArtworkId = coverPhoto.Id;
}
}
Modified: trunk/ipod-sharp/src/TrackDatabase.cs
===================================================================
--- trunk/ipod-sharp/src/TrackDatabase.cs 2007-10-11 23:40:59 UTC (rev
87364)
+++ trunk/ipod-sharp/src/TrackDatabase.cs 2007-10-11 23:47:05 UTC (rev
87365)
@@ -2490,23 +2490,9 @@
}
}
- private void AssignRightSideArtwork ()
- {
- if (artdb == null)
- return;
-
- foreach (TrackRecord track in
dbrec[DataSetIndex.Library].TrackList.Tracks) {
- Photo photo = artdb.LookupPhotoByTrackId (track.DatabaseId);
- if (photo != null) {
- track.RightSideArtworkId = photo.Id;
- }
- }
- }
-
public void Save()
{
CheckFreeSpace();
- AssignRightSideArtwork ();
// make sure all the new tracks have file names, and that they
exist
foreach (Track track in tracksToAdd)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches