summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlshprung <lshprung@yahoo.com>2021-09-07 13:59:46 -0700
committerlshprung <lshprung@yahoo.com>2021-09-07 13:59:46 -0700
commit5ac98e0de89f6fe7ff7a23a8ad5f99b360da0bcc (patch)
tree227d88154f130becc4d608c4bb24094d9c55c8fe
parent531f85f6368c47997ce9297287e179668dd5caf4 (diff)
Everything set to begin looking into sqlite
-rwxr-xr-xmain.plx15
1 files changed, 14 insertions, 1 deletions
diff --git a/main.plx b/main.plx
index 926fe75..b03d7ad 100755
--- a/main.plx
+++ b/main.plx
@@ -74,9 +74,22 @@ if (! -d $music_dir){
die "Error: \"$music_dir\" is not a directory\n";
}
-# Look through files in $music_dir
+# Get a list of files in $music_dir
print "Looking through files in $music_dir\n";
my @file_list = get_files($music_dir, %extensions);
+# DEBUG
for my $i (sort @file_list){
print "$i\n";
}
+
+# Connect to sqlite database created in the base of $music_dir
+
+# Get tags for each file
+my $data;
+for my $file (sort @file_list){
+ $data = Audio::Scan->scan("$file");
+ $data = $data->{tags};
+ for my $i (keys %$data){
+ print "$i -> $data->{$i}\n";
+ }
+}