diff options
author | lshprung <lshprung@yahoo.com> | 2021-09-07 13:59:46 -0700 |
---|---|---|
committer | lshprung <lshprung@yahoo.com> | 2021-09-07 13:59:46 -0700 |
commit | 5ac98e0de89f6fe7ff7a23a8ad5f99b360da0bcc (patch) | |
tree | 227d88154f130becc4d608c4bb24094d9c55c8fe | |
parent | 531f85f6368c47997ce9297287e179668dd5caf4 (diff) |
Everything set to begin looking into sqlite
-rwxr-xr-x | main.plx | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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"; + } +} |