OSDN Git Service

fix #26016. ウェブページからタイトル抽出時に半角スペースが余計についていた問題の対処
authoryukihane <yukihane.feather@gmail.com>
Mon, 15 Aug 2011 01:55:33 +0000 (10:55 +0900)
committeryukihane <yukihane.feather@gmail.com>
Mon, 15 Aug 2011 02:00:50 +0000 (11:00 +0900)
src/nicobrowser/NicoHttpClient.java

index 003616f..e67e3ca 100644 (file)
@@ -612,7 +612,7 @@ public class NicoHttpClient {
         while ((ret = br.readLine()) != null) {
             final int index = ret.indexOf(TITLE_PARSE_STR_START);
             if (index >= 0) {
-                String videoTitle = ret.substring(index + TITLE_PARSE_STR_START.length(), ret.indexOf("‐", index));
+                String videoTitle = ret.substring(index + TITLE_PARSE_STR_START.length(), ret.indexOf(" ‐", index));
                 return videoTitle;
             }
         }