diff --git a/app/controllers/import_controller.rb b/app/controllers/import_controller.rb index c94ecd1..f723f55 100644 --- a/app/controllers/import_controller.rb +++ b/app/controllers/import_controller.rb @@ -44,7 +44,7 @@ class ImportController < ApplicationController # Get album releases from MB releases_mb = brainz.release(nil, {'release-group' => mb_album['id']})['release_list']['release'] - unless releases_mb.empty? or releases_mb.nil? + unless releases_mb.nil? if releases_mb.is_a? Hash releases_mb = [releases_mb]