Import fix if empty release group 2
This commit is contained in:
parent
c91d1219d0
commit
4783e85e2c
|
@ -44,7 +44,7 @@ class ImportController < ApplicationController
|
||||||
# Get album releases from MB
|
# Get album releases from MB
|
||||||
releases_mb = brainz.release(nil, {'release-group' => mb_album['id']})['release_list']['release']
|
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
|
if releases_mb.is_a? Hash
|
||||||
releases_mb = [releases_mb]
|
releases_mb = [releases_mb]
|
||||||
|
|
Loading…
Reference in New Issue