File: audio_scan.pl

package info (click to toggle)
libaudio-scan-perl 1.01-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 7,876 kB
  • sloc: ansic: 12,108; perl: 224; makefile: 3
file content (24 lines) | stat: -rwxr-xr-x 369 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env perl

use lib qw(blib/lib blib/arch);
use strict;

use Audio::Scan;
use Data::Dump qw(dump);

my $file;
my $arg = shift;

if ( $arg eq '--with-artwork' ) {
    $file = shift;
}
else {
    $ENV{AUDIO_SCAN_NO_ARTWORK} = 1;
    $file = $arg;
}

die "Usage: $0 [--with-artwork] FILE\n" unless $file;

my $s = Audio::Scan->scan($file);

warn dump($s) . "\n";