package ID3FS::PathElement::Artist;

use strict;
use warnings;

sub new
{
    my $proto=shift;
    my $class=ref($proto) || $proto;
    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;
}

sub type { return "artist"; }

1;
