diff --git a/app/logical/artist_finder.rb b/app/logical/artist_finder.rb index 902158f27..8e89d7b30 100644 --- a/app/logical/artist_finder.rb +++ b/app/logical/artist_finder.rb @@ -154,6 +154,8 @@ module ArtistFinder # @param url [String] the artist profile URL # @return [Array] the list of matching artists def find_artists(url) + return Artist.none if url.blank? + url = ArtistURL.normalize_normalized_url(url) # First try an exact match diff --git a/app/logical/sources/strategies/base.rb b/app/logical/sources/strategies/base.rb index 2fdda17d9..6768d3103 100644 --- a/app/logical/sources/strategies/base.rb +++ b/app/logical/sources/strategies/base.rb @@ -145,7 +145,7 @@ module Sources end def artists - ArtistFinder.find_artists(profile_url.to_s) + ArtistFinder.find_artists(profile_url) end # A new artist entry with suggested defaults for when the artist doesn't