* Rename `unique_id` to `tag_name`. * Add `other_names` and `profile_urls` methods that sources can override to provide extra names or urls when creating new artist entries.
30 lines
407 B
Ruby
30 lines
407 B
Ruby
module Sources
|
|
module Strategies
|
|
class Null < Base
|
|
def image_urls
|
|
[url]
|
|
end
|
|
|
|
def page_url
|
|
url
|
|
end
|
|
|
|
def canonical_url
|
|
image_url
|
|
end
|
|
|
|
def normalized_for_artist_finder?
|
|
true
|
|
end
|
|
|
|
def normalizable_for_artist_finder?
|
|
false
|
|
end
|
|
|
|
def normalize_for_artist_finder
|
|
url
|
|
end
|
|
end
|
|
end
|
|
end
|