projects
/
id3fs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
merge duplicate id lookup functions
[id3fs.git]
/
lib
/
ID3FS
/
PathElement
/
Tagval.pm
diff --git
a/lib/ID3FS/PathElement/Tagval.pm
b/lib/ID3FS/PathElement/Tagval.pm
index
43c2f49
..
3b2a77b
100644
(file)
--- a/
lib/ID3FS/PathElement/Tagval.pm
+++ b/
lib/ID3FS/PathElement/Tagval.pm
@@
-10,9
+10,13
@@
sub new
my $self={};
bless($self,$class);
+ $self->{db}=shift;
$self->{name}=shift;
-
+ $self->{id}=$self->{db}->lookup_id("tagvals", $self->{name});
+ return(undef) unless(defined($self->{id}));
return $self;
}
+sub type { return "tagval"; }
+
1;