PathElement::*: implement id() method
[id3fs.git] / lib / ID3FS / PathElement / Artist.pm
index 9bcf4aa..55fde54 100644 (file)
@@ -12,11 +12,12 @@ sub new
 
     $self->{db}=shift;
     $self->{name}=shift;
-    $self->{id}=($self->{db}->id("artists", $self->{name}));
+    $self->{id}=($self->{db}->lookup_id("artists", $self->{name}));
     return(undef) unless(defined($self->{id}));
     return $self;
 }
 
 sub type { return "artist"; }
+sub id { return shift->{id}; }
 
 1;