sources: factor out Source::URL::Weibo

Additionally, fixed some broken tests and changed normalization for urls
of album type to point to the mobile version instead, because they're
only visible to logged-in users.
This commit is contained in:
nonamethanks
2022-03-07 16:06:44 +01:00
parent 0f0f7c768b
commit d8e2f2ee33
4 changed files with 119 additions and 147 deletions

View File

@@ -31,6 +31,7 @@ module Source
Source::URL::Plurk,
Source::URL::Skeb,
Source::URL::TwitPic,
Source::URL::Weibo,
]
# Parse a URL into a subclass of Source::URL, or raise an exception if the URL is not a valid HTTP or HTTPS URL.