summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/audioboom-inspect8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/audioboom-inspect b/test/audioboom-inspect
index 4bca4c9..6e2a0e7 100755
--- a/test/audioboom-inspect
+++ b/test/audioboom-inspect
@@ -62,7 +62,11 @@ for my $clip (@clips) {
$i++;
$sum_title = decode_entities($clip->{title});
- $sum_text = decode_entities($clip->{description});
+ if (defined $clip->{description}) {
+ $sum_text = decode_entities($clip->{description});
+ } else {
+ $sum_text = '<unset>';
+ }
my $orig_uri = $clip->{urls}{high_mp3};
next unless $orig_uri;
@@ -87,7 +91,7 @@ for my $clip (@clips) {
print " Recorded: " . $recorded . "\n";
print " Uploaded: " . $uploaded . "\n";
print " Tags: " . join(", ", @tags) . "\n";
- print " Files:\n 1: (audio/mpeg), " . $size . ") " . $file . "\n";
+ print " Files:\n 1: (audio/mpeg, " . $size . ") " . $file . "\n";
print "\n";
}