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:
@@ -65,7 +65,6 @@ class Source::URL::Tumblr < Source::URL
|
||||
end
|
||||
|
||||
def profile_url
|
||||
return nil unless @blog_name.present?
|
||||
"https://#{@blog_name}.tumblr.com"
|
||||
"https://#{blog_name}.tumblr.com" if blog_name.present?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user