diff --git a/app/logical/nico_seiga_api_client.rb b/app/logical/nico_seiga_api_client.rb index e2dbca0af..bb064b545 100644 --- a/app/logical/nico_seiga_api_client.rb +++ b/app/logical/nico_seiga_api_client.rb @@ -1,6 +1,3 @@ -# http://seiga.nicovideo.jp/api/manga/info?id=376206 -# http://api.search.nicovideo.jp/api/v2/manga/contents/search? - class NicoSeigaApiClient extend Memoist BASE_URL = "http://seiga.nicovideo.jp/api" @@ -41,7 +38,7 @@ class NicoSeigaApiClient mech.redirect_ok = true mech end - + def initialize(illust_id:, user_id: nil) @illust_id = illust_id @user_id = user_id diff --git a/test/unit/sources/nico_seiga_test.rb b/test/unit/sources/nico_seiga_test.rb index e7d33c068..0365d90eb 100644 --- a/test/unit/sources/nico_seiga_test.rb +++ b/test/unit/sources/nico_seiga_test.rb @@ -60,12 +60,6 @@ module Sources assert_match(full_image_url, site.image_url) assert_match(full_image_url, site.canonical_url) end - - context "for a manga page" do - should "not try to find the image url" do - assert_nil(@site_3.image_url) - end - end end end end