1
0
Fork 0

Import fix if empty release group 2

This commit is contained in:
magnolia-fan 2011-06-25 19:27:49 +04:00
parent c91d1219d0
commit 4783e85e2c
1 changed files with 1 additions and 1 deletions

View File

@ -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]