From a72dd0645556eff5c6aa91215c4496aa3f88effd Mon Sep 17 00:00:00 2001 From: vspader Date: Fri, 12 May 2006 14:41:02 +0000 Subject: [PATCH] Fixed year/track binding --- Playlist/PlaylistEntry.m | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Playlist/PlaylistEntry.m b/Playlist/PlaylistEntry.m index 6c285823d..f524b6923 100644 --- a/Playlist/PlaylistEntry.m +++ b/Playlist/PlaylistEntry.m @@ -186,6 +186,24 @@ return genre; } +- (void)setYear:(int)y +{ + year = y; +} +- (int)year +{ + return year; +} + +- (void)setTrack:(int)t +{ + track = t; +} +- (int)track +{ + return track; +} + - (void)readInfo { SoundFile *sf = [SoundFile readInfo:filename]; @@ -259,8 +277,8 @@ pGenre = taglib_tag_genre(tag); pComment = taglib_tag_comment(tag); - year = taglib_tag_year(tag); - track = taglib_tag_track(tag); + [self setYear:taglib_tag_year(tag)]; + [self setTrack:taglib_tag_track(tag)]; if (pArtist != NULL)