Nicoseiga: rewrite tests and fix several bugs
* Fixed a bug where manga posts with a single tag would raise an error * Fixed a bug where dic.nicovideo.jp/oekaki posts weren't uploadable due to SSL issues * Added support for more manga corner cases
This commit is contained in:
@@ -95,6 +95,14 @@ module Source
|
||||
parsed_url.manga_id || parsed_referer&.manga_id
|
||||
end
|
||||
|
||||
def http
|
||||
if parsed_url.oekaki_id.present?
|
||||
super.with_legacy_ssl
|
||||
else
|
||||
super
|
||||
end
|
||||
end
|
||||
|
||||
def api_client
|
||||
if illust_id.present?
|
||||
NicoSeigaApiClient.new(work_id: illust_id, type: "illust", http: http)
|
||||
|
||||
Reference in New Issue
Block a user