summaryrefslogtreecommitdiffstats
path: root/jamaldo.pl
diff options
context:
space:
mode:
Diffstat (limited to 'jamaldo.pl')
-rwxr-xr-xjamaldo.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/jamaldo.pl b/jamaldo.pl
index 1b4ff81..52bf5e1 100755
--- a/jamaldo.pl
+++ b/jamaldo.pl
@@ -68,6 +68,7 @@ sub get_album
my $artist_name;
my $album_name;
my $dir;
+ my $aid_fh;
my $i;
my $track;
@@ -99,6 +100,10 @@ sub get_album
undef($artist_name);
undef($album_name);
+ open($aid_fh, ">", $dir . "/album-id");
+ printf($aid_fh "%d\n" $album_id);
+ close($aid_fh);
+
$i = 0;
for $track (@{$res_data->{"results"}}) {
printf(" Downloading track %d of %d...\n", ++$i,