start implementing albums
[id3fs.git] / lib / ID3FS / PathElement / Tag.pm
index 7113b43..6fc7978 100644 (file)
@@ -12,10 +12,12 @@ sub new
 
     $self->{db}=shift;
     $self->{name}=shift;
-    $self->{id}=($self->{db}->tag_id($self->{name}));
+    $self->{id}=($self->{db}->id("tags", $self->{name}));
     return(undef) unless(defined($self->{id}));
     print "TAG ID: $self->{id}\n";
     return($self);
 }
 
+sub type { return "tag"; }
+
 1;