projects
/
id3fs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
First music successfully played via id3fs
[id3fs.git]
/
lib
/
ID3FS
/
PathElement
/
File.pm
diff --git
a/lib/ID3FS/PathElement/File.pm
b/lib/ID3FS/PathElement/File.pm
index
3071cc3
..
71f1a10
100644
(file)
--- a/
lib/ID3FS/PathElement/File.pm
+++ b/
lib/ID3FS/PathElement/File.pm
@@
-10,7
+10,11
@@
sub new
my $self={};
bless($self,$class);
+ $self->{db}=shift;
$self->{name}=shift;
+ $self->{id}=$self->{db}->id("files", $self->{name});
+ return(undef) unless(defined($self->{id}));
+ print "File ID: $self->{id}\n";
return $self;
}