Add safebooru.org support.

Refactor the Gelbooru source extractor to support Safebooru.org as well.
This commit is contained in:
evazion
2022-11-09 15:42:59 -06:00
parent 35bfcbc3bd
commit 5b4856273f
5 changed files with 153 additions and 37 deletions

View File

@@ -441,6 +441,7 @@ class UploadsControllerTest < ActionDispatch::IntegrationTest
should_upload_successfully("https://konachan.com/image/ca12cdb79a66d242e95a6f958341bf05/Konachan.com%20-%20270916.png")
should_upload_successfully("https://gelbooru.com/index.php?page=post&s=view&id=7798121")
should_upload_successfully("https://safebooru.org/index.php?page=post&s=view&id=4189916")
should_upload_successfully("http://lohas.nicoseiga.jp/o/910aecf08e542285862954017f8a33a8c32a8aec/1433298801/4937663")
should_upload_successfully("http://seiga.nicovideo.jp/seiga/im4937663")