sub choose
{
- my ($self, $func, $verbose)=@_;
+ my ($self, $func)=@_;
my $thing=undef;
if(defined($self->{v2}))
{
{
$thing=$self->{v1}->$func();
}
- if(!defined($thing) || !length($thing))
- {
- warn("$self->{path}: no $func defined in ID3 tags\n") if($verbose);
- return undef;
- }
return $thing;
}
-sub artist { shift->choose("artist", 1); }
-sub album { shift->choose("album", 1); }
+sub artist { shift->choose("artist"); }
+sub album { shift->choose("album"); }
# We don't care if year is not set
-sub year { shift->choose("year", 0); }
-sub audiotype { return "mp3"; }
-sub haspic { return undef; } # FIXME
+sub year { shift->choose("year"); }
+sub audiotype { return "mp3"; }
+sub haspic { return undef; } # FIXME
sub v1genre
{
my($self)=@_;