pixiv: temp disable source strategy (#4152).
Disable use of the Pixiv API until we get it working again.
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user