add audiotype/ tags; reenable filters
authorIan Beckwith <ianb@erislabs.net>
Mon, 18 Oct 2010 14:56:49 +0000 (15:56 +0100)
committerIan Beckwith <ianb@erislabs.net>
Mon, 18 Oct 2010 14:56:49 +0000 (15:56 +0100)
lib/ID3FS/DB.pm
lib/ID3FS/Path.pm

index 6b3cd99..14f55c5 100644 (file)
@@ -265,6 +265,11 @@ sub add
     {
        $self->add_tag($file_id, "haspic", undef);
     }
+
+    if($self->ok($audiotype))
+    {
+       $self->add_tag($file_id, "audiotype", $audiotype);
+    }
 }
 
 sub add_tag
index 01831fc..fca5d95 100644 (file)
@@ -781,8 +781,6 @@ sub constraints_tag_list
 sub filter
 {
     my($self, @dirs)=@_;
-    # FIXME: disabled - too slow
-    return @dirs;
     my $base=$self->{path};
     my @outdirs=();
     for my $dir (@dirs)