From a7dba40358ed4552973ec578d478219539510f7f Mon Sep 17 00:00:00 2001 From: yukihane Date: Wed, 10 Aug 2011 20:10:48 +0900 Subject: [PATCH] =?utf8?q?=E3=83=AA=E3=83=95=E3=82=A1=E3=82=AF=E3=82=BF?= =?utf8?q?=E3=83=AA=E3=83=B3=E3=82=B0.=20(cherry=20picked=20from=20commit?= =?utf8?q?=2010af1cde069d712234891c642e606795ec8d50e3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- frontend/src/saccubus/net/NicoClientImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/saccubus/net/NicoClientImpl.java b/frontend/src/saccubus/net/NicoClientImpl.java index ff4e99f..a540fa0 100644 --- a/frontend/src/saccubus/net/NicoClientImpl.java +++ b/frontend/src/saccubus/net/NicoClientImpl.java @@ -55,7 +55,6 @@ public class NicoClientImpl implements NicoClient { private boolean Logged_in = false; private final ConvertStopFlag StopFlag; private final Proxy ConProxy; - private final static String WAYBACKKEY_STR = "waybackkey="; public NicoClientImpl(final String user, final String pass, final ConvertStopFlag flag, final String proxy, final int proxy_port) { @@ -390,7 +389,10 @@ public class NicoClientImpl implements NicoClient { ex1.printStackTrace(); throw ex1; } + int idx = 0; + final String WAYBACKKEY_STR = "waybackkey="; + if ((idx = ret.indexOf(WAYBACKKEY_STR)) < 0) { System.out.println("ng."); System.out.println("Cannot find wayback key from response."); -- 2.11.0