diff options
| -rwxr-xr-x | nypl_recrop.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nypl_recrop.rb b/nypl_recrop.rb index 4ca1843..304fc29 100755 --- a/nypl_recrop.rb +++ b/nypl_recrop.rb @@ -27,6 +27,11 @@ if matching_captures && matching_captures.length > 0 highres_url = matching_captures[0]['highResLink'] lowres_url = stereo_metadata['url'] + if highres_url.nil? || highres_url.empty? + puts image_captures.to_json + abort("No highResLink for #{digital_id}") + end + # download images $stderr.puts "Downloading images..." `wget -nc -O #{ARGV[0]}.jpg '#{lowres_url}'` |
