sources: parse more profile url formats.
Add support for parsing these URL formats: * https://www.artstation.com/felipecartin/profile * https://www.deviantart.com/nlpsllp/gallery * https://fantia.jp/asanagi * https://www.lofter.com/front/blog/home-page/noshiqian * https://www.lofter.com/app/xiaokonggedmx * https://www.lofter.com/blog/semblance * https://q.nicovideo.jp/users/18700356 * https://dic.nicovideo.jp/u/11141663 * https://3d.nicovideo.jp/users/109584 * https://3d.nicovideo.jp/u/siobi * https://game.nicovideo.jp/atsumaru/users/7757217 * https://www.pixiv.net/user/13569921/series/81967 * https://pixiv.cc/zerousagi/ * https://www.plurk.com/u/ddks2923 * https://www.plurk.com/m/u/leiy1225 * https://www.plurk.com/s/u/salmonroe13 * https://www.plurk.com/RSSSww/invite/4 * https://skeb.jp/@okku_oxn/works * https://www.tumblr.com/blog/view/artofelaineho/187614935612 * https://www.tumblr.com/blog/view/artofelaineho * https://www.tumblr.com/blog/artofelaineho * https://www.tumblr.com/dashboard/blog/dankwartart * https://rosarrie.tumblr.com/archive * https://whereisnovember.tumblr.com/tagged/art * https://twitpic.com/photos/Type10TK * https://www.weibo.com/detail/4676597657371957 * https://www.weibo.com/u/5957640693/home?wvr=5 * https://www.weibo.com/lvxiuzi0/home
This commit is contained in:
@@ -12,7 +12,7 @@ class Source::URL::Plurk < Source::URL
|
||||
|
||||
# https://images.plurk.com/5wj6WD0r6y4rLN0DL3sqag.jpg
|
||||
# https://images.plurk.com/mx_5wj6WD0r6y4rLN0DL3sqag.jpg
|
||||
in "plurk.com", /^(mx_)?(\w{22})\.(\w+)$/
|
||||
in "plurk.com", /^(mx_)?(\w{22})\.(\w+)$/ if image_url?
|
||||
@image_id = $2
|
||||
|
||||
# https://www.plurk.com/p/om6zv4
|
||||
@@ -23,14 +23,27 @@ class Source::URL::Plurk < Source::URL
|
||||
in "plurk.com", "m", "p", work_id
|
||||
@work_id = work_id
|
||||
|
||||
# https://www.plurk.com/redeyehare
|
||||
in "plurk.com", username
|
||||
@username = username
|
||||
|
||||
# https://www.plurk.com/m/redeyehare
|
||||
in "plurk.com", "m", username
|
||||
@username = username
|
||||
|
||||
# https://www.plurk.com/u/ddks2923
|
||||
in "plurk.com", "u", username
|
||||
@username = username
|
||||
|
||||
# https://www.plurk.com/m/u/leiy1225
|
||||
in "plurk.com", "m", "u", username
|
||||
@username = username
|
||||
|
||||
# https://www.plurk.com/s/u/salmonroe13
|
||||
in "plurk.com", "s", "u", username
|
||||
@username = username
|
||||
|
||||
# https://www.plurk.com/redeyehare
|
||||
# https://www.plurk.com/RSSSww/invite/4
|
||||
in "plurk.com", username, *rest
|
||||
@username = username
|
||||
|
||||
else
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user