Refactor normalize_for_artist_finder!

Refactors things such that Sources::Site has a normalize_for_artist_finder!
method that delegates to the strategy for the appropriate site. This way
any site that needs to normalize URLs for the artist finder can do so.
This commit is contained in:
evazion
2014-10-05 11:59:06 -05:00
parent a36472f35b
commit 7f3b98969f
4 changed files with 15 additions and 4 deletions

View File

@@ -20,6 +20,14 @@ module Sources
end
end
def normalize_for_artist_finder!
if available?
return strategy.normalize_for_artist_finder!
else
return url
end
end
def translated_tags
untranslated_tags = tags
untranslated_tags = untranslated_tags.map(&:first)