potential fix for #2431

This commit is contained in:
r888888888
2015-07-07 15:59:14 -07:00
parent 6ea556944b
commit 4a24fe5074
2 changed files with 5 additions and 2 deletions

View File

@@ -303,7 +303,7 @@ GEM
whenever (0.9.2)
activesupport (>= 2.3.4)
chronic (>= 0.6.3)
xml-simple (1.1.3)
xml-simple (1.1.5)
PLATFORMS
ruby
@@ -363,3 +363,6 @@ DEPENDENCIES
vcr
webmock
whenever
BUNDLED WITH
1.10.0

View File

@@ -120,7 +120,7 @@ module Sources
mech.cookie_jar.add(cookie)
else
mech.get("https://secure.nicovideo.jp/secure/login_form") do |page|
page.form_with do |form|
page.form_with(:id => "login_form") do |form|
form["mail_tel"] = Danbooru.config.nico_seiga_login
form["password"] = Danbooru.config.nico_seiga_password
end.click_button