diff --git a/Plugins/CueSheet/CueSheetMetadataReader.m b/Plugins/CueSheet/CueSheetMetadataReader.m index 7ed2f9dc2..a7b43da9d 100644 --- a/Plugins/CueSheet/CueSheetMetadataReader.m +++ b/Plugins/CueSheet/CueSheetMetadataReader.m @@ -43,7 +43,7 @@ [track title], @"title", [NSNumber numberWithInt:[[track track] intValue]], @"track", [track genre], @"genre", - [track year], @"year", + [NSNumber numberWithInt:[[track year] intValue]], @"year", nil]; } diff --git a/Plugins/CueSheet/CueSheetTrack.m b/Plugins/CueSheet/CueSheetTrack.m index d6356119d..cb1dbb819 100644 --- a/Plugins/CueSheet/CueSheetTrack.m +++ b/Plugins/CueSheet/CueSheetTrack.m @@ -88,5 +88,8 @@ return year; } +-(NSString *) description { + return [NSString stringWithFormat:@"CueSheetTrack{track: %@, url: %@, artist: %@, album: %@, title: %@, genre: %@, year: %@}", track, [url absoluteURL], artist, album, title, genre, year]; +} @end