sources: factor out Source::URL::Fanbox.

Also fix it so that we grab the full image for cover URLs like this:

* Sample: https://pixiv.pximg.net/c/1620x580_90_a2_g5/fanbox/public/images/creator/1566167/cover/QqxYtuWdy4XWQx1ZLIqr4wvA.jpeg
* Full: https://pixiv.pximg.net/fanbox/public/images/creator/1566167/cover/QqxYtuWdy4XWQx1ZLIqr4wvA.jpeg
This commit is contained in:
evazion
2022-02-28 06:02:35 -06:00
parent 317ec886bc
commit 1609059bf4
5 changed files with 122 additions and 63 deletions

View File

@@ -20,6 +20,7 @@ module Source
SUBCLASSES = [
Source::URL::Twitter,
Source::URL::ArtStation,
Source::URL::Fanbox,
Source::URL::Foundation,
Source::URL::HentaiFoundry,
Source::URL::Lofter,