nijie: replace Mechanize with Danbooru::Http.
The Nijie login process works like this: * First we submit our `email` and `password` to `https://nijie.info/login_int.php`. * Then we save the NIJIEIEID session cookie from the response. * We optionally retry if login failed. Nijie returns 429 errors with a `Retry-After: 5` header if we send too many login requests. This can happen during parallel testing. * We cache the login cookies for only 1 hour so we don't have to worry about them becoming invalid if we cache them too long. Cookies and retrying errors on failure are handled transparently by Danbooru::Http.
This commit is contained in:
@@ -187,8 +187,6 @@ module Sources
|
||||
desc = <<-EOS.strip_heredoc.chomp
|
||||
foo [b]bold[/b] [i]italics[/i] [s]strike[/s] red
|
||||
|
||||
|
||||
|
||||
<http://nijie.info/view.php?id=218944>
|
||||
EOS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user