X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2FID3FS%2FPathElement%2FArtist.pm;h=9f5abfdb5e5fa3f4a91508aeb10a33280b6f3102;hb=3e118c57e9d2f85d35bac2c7ea3d3a4771619215;hp=80f5cec52775538249c1f789eb9edc290f6655f7;hpb=167bfd767f228c2351f567c5f36b270ea5c25550;p=id3fs.git diff --git a/lib/ID3FS/PathElement/Artist.pm b/lib/ID3FS/PathElement/Artist.pm index 80f5cec..9f5abfd 100644 --- a/lib/ID3FS/PathElement/Artist.pm +++ b/lib/ID3FS/PathElement/Artist.pm @@ -10,7 +10,11 @@ sub new my $self={}; bless($self,$class); + $self->{db}=shift; $self->{name}=shift; + $self->{id}=($self->{db}->id("artists", $self->{name})); + return(undef) unless(defined($self->{id})); + print "Artist ID: $self->{id}\n"; return $self; }