Source::URL: add profile_url method.
Add a method for converting a source URL into a profile URL. This will be used for normalizing profile URLs in artist entries. Also add the ability to parse a few more profile URL formats.
This commit is contained in:
@@ -49,7 +49,7 @@ module Sources
|
||||
end
|
||||
|
||||
def profile_urls
|
||||
(parsed_url.profile_urls + parsed_referer&.profile_urls.to_a).uniq
|
||||
[parsed_url.profile_url, parsed_referer&.profile_url].compact.uniq
|
||||
end
|
||||
|
||||
def profile_url
|
||||
|
||||
Reference in New Issue
Block a user