sources: add image_url?, page_url?, and profile_url? methods.
Add methods to Source::URL for determining whether a URL is an image URL, a page URL, or a profile URL. Also add more source URL tests and fix various URL parsing bugs.
This commit is contained in:
@@ -12,7 +12,8 @@ class Source::URL::Furaffinity < Source::URL
|
||||
|
||||
# https://www.furaffinity.net/view/46821705/
|
||||
# https://www.furaffinity.net/view/46802202/ (scrap)
|
||||
in _, "view", /^\d+$/ => work_id
|
||||
# https://www.furaffinity.net/full/46821705/
|
||||
in _, ("view" | "full"), /^\d+$/ => work_id
|
||||
@work_id = work_id
|
||||
|
||||
# https://d.furaffinity.net/art/iwbitu/1650222955/1650222955.iwbitu_yubi.jpg
|
||||
|
||||
Reference in New Issue
Block a user