newgrounds: support parsing video urls.

Fixes URLS like `https://www.newgrounds.com/portal/view/830293` being treated as bad_source.
This commit is contained in:
evazion
2022-08-23 13:39:32 -05:00
parent 8ed2c4f0b6
commit 228850b749
2 changed files with 9 additions and 1 deletions

View File

@@ -130,6 +130,7 @@ module Sources
assert(Source::URL.image_url?("https://art.ngfiles.com/thumbnails/1254000/1254985.png?f1588263349"))
assert(Source::URL.page_url?("https://www.newgrounds.com/art/view/puddbytes/costanza-at-bat"))
assert(Source::URL.page_url?("https://www.newgrounds.com/portal/view/830293"))
assert(Source::URL.profile_url?("https://natthelich.newgrounds.com"))
refute(Source::URL.profile_url?("https://www.newgrounds.com"))