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,4 +65,8 @@ class Source::URL::ArtStation < Source::URL
|
||||
"https://cdn.artstation.com/p/assets/#{@asset_type}/images/#{@asset_subdir}/#{size}/#{@file}"
|
||||
end
|
||||
end
|
||||
|
||||
def profile_url
|
||||
"https://www.artstation.com/#{username}" if username.present?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user