pixiv: temp disable source strategy (#4152).

Disable use of the Pixiv API until we get it working again.
This commit is contained in:
evazion
2019-09-02 11:13:00 -05:00
parent 95b8420ba2
commit e781c6b608
2 changed files with 7 additions and 1 deletions

View File

@@ -29,7 +29,11 @@ class PixivApiClient
attr_reader :json, :pages, :name, :moniker, :user_id, :page_count, :tags
attr_reader :artist_commentary_title, :artist_commentary_desc
def initialize(json)
def initialize(url)
@tags = []
@pages = [url]
return
@json = json
@name = json["user"]["name"]
@user_id = json["user"]["id"]

View File

@@ -350,6 +350,8 @@ module Sources
memoize :agent
def metadata
return PixivApiClient::WorkResponse.new(url)
if novel_id.present?
return PixivApiClient.new.novel(novel_id)
end