sources: factor out Source::URL::Newgrounds.

Also fix it so that the image URL is set as the source for Newgrounds
posts, not the page URL. It's possible to generate the page URL from the
image URL (except for images after the first in multi-image posts).

* Page: https://www.newgrounds.com/art/view/natthelich/weaver
* Image: https://art.ngfiles.com/images/1520000/1520217_natthelich_weaver.jpg?f1606365031
This commit is contained in:
evazion
2022-02-25 22:00:42 -06:00
parent 64472a7b7e
commit f062f2d145
4 changed files with 123 additions and 27 deletions

View File

@@ -20,6 +20,7 @@ module Source
SUBCLASSES = [
Source::URL::Twitter,
Source::URL::HentaiFoundry,
Source::URL::Newgrounds,
Source::URL::Plurk,
Source::URL::Skeb,
Source::URL::TwitPic,