+ my ($self, $thing, $value)=@_;
+ if($value)
+ {
+ $value=$self->sanitise($self->stripslashes($value));
+ $self->{audiofile}->$thing($value);
+ }
+ else
+ {
+ $value=$self->sanitise($self->stripslashes($self->{audiofile}->$thing()));
+ }
+ return $value;
+}
+
+sub artist { return(shift->set("artist", @_)); }
+sub album { return(shift->set("album", @_)); }
+sub track { return(shift->set("track", @_)); }
+sub tracknum { return(shift->set("tracknum", @_)); }
+sub v1genre { return(shift->set("v1genre", @_)); }
+sub genre { return(shift->set("genre", @_)); }
+sub comment { return(shift->set("comment", @_)); }
+sub audiotype { return(shift->set("audiotype")); }
+sub haspic { return(shift->set("haspic")); }
+sub path { return(shift->{path}); }
+
+sub delete_artist { shift->{audiofile}->delete_artist(); }
+sub delete_album { shift->{audiofile}->delete_album(); }
+sub delete_track { shift->{audiofile}->delete_track(); }
+sub delete_tracknum { shift->{audiofile}->delete_tracknum(); }
+sub delete_year { shift->{audiofile}->delete_year(); }
+sub delete_v1genre { shift->{audiofile}->delete_v1genre(); }
+sub delete_comment { shift->{audiofile}->delete_comment(); }
+sub delete_all { shift->{audiofile}->delete_all(); }
+sub delete_genre { shift->{audiofile}->delete_genre(); }
+sub delete_tags { shift->{audiofile}->delete_tags(@_); }
+sub channels { shift->{audiofile}->channels(); }
+sub bitrate { shift->{audiofile}->bitrate(); }
+sub samplerate { shift->{audiofile}->samplerate(@_); }
+
+sub year
+{
+ my ($self, $year)=@_;
+ if($year)
+ {
+ $year=$self->format_year($year);
+ $self->{audiofile}->year($year);
+ }
+ else
+ {
+ $year=$self->{audiofile}->year();
+ }
+ return $year;