diff options
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | test/audioboom-inspect | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -26,7 +26,7 @@ endif .PHONY: clean distclean EXECUTABLE := rhautoimport -IMPORTER := btl dn nw oi rs ra tr +IMPORTER := btl dn nw oi rs ra tr wr EXECUTABLES := $(IMPORTER:%=$(EXECUTABLE)-%) all: $(EXECUTABLE) 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"; } |