• R/O
  • SSH
  • HTTPS

nicorank: 提交


Commit MetaInfo

修訂257 (tree)
時間2017-03-08 08:41:15
作者rankingloid

Log Message

Fix tag search (Thanks to Marky-san)

Change Summary

差異

--- trunk/nicorank/nicorank/NicoTools/NicoNetwork.cs (revision 256)
+++ trunk/nicorank/nicorank/NicoTools/NicoNetwork.cs (revision 257)
@@ -1503,7 +1503,9 @@
15031503 json += "&_sort=";
15041504 if (order == SearchOrder.Asc)
15051505 {
1506- json += "+";
1506+ //json += "+";
1507+ //2017-03-06 UPDATE まどやさんの指摘を反映
1508+ json += "%2B";
15071509 }
15081510 else
15091511 {
--- trunk/nicorank/nicorank/NicoTools/NicoNetworkManager.cs (revision 256)
+++ trunk/nicorank/nicorank/NicoTools/NicoNetworkManager.cs (revision 257)
@@ -1007,12 +1007,16 @@
10071007 List<Video> list = new List<Video>();
10081008 int count = 0;
10091009
1010- string[] ar = json.Split(new char[] { '\n' }, StringSplitOptions.RemoveEmptyEntries);
1010+ //Start 2017-03-06 DEL まどやさんの指摘を反映
1011+ //string[] ar = json.Split(new char[] { '\n' }, StringSplitOptions.RemoveEmptyEntries);
10111012
1012- for (int i = 0; i < ar.Length; ++i)
1013- {
1013+ //for (int i = 0; i < ar.Length; ++i)
1014+ //{
1015+ //End 2017-03-06 DEL まどやさんの指摘を反映
10141016 DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(NiconicoAPIResult));
1015- using (MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(ar[i])))
1017+ //using (MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(ar[i])))
1018+ //2017-03-06 UPDATE まどやさんの指摘を反映
1019+ using (MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(json)))
10161020 {
10171021 NiconicoAPIResult result = (NiconicoAPIResult)serializer.ReadObject(ms);
10181022 if (result.data != null)
@@ -1040,7 +1044,7 @@
10401044 }
10411045 }
10421046 }
1043- }
1047+ //}
10441048 return list;
10451049 }
10461050
--- trunk/nicorank/nicorank/Properties/AssemblyInfo.cs (revision 256)
+++ trunk/nicorank/nicorank/Properties/AssemblyInfo.cs (revision 257)
@@ -10,7 +10,7 @@
1010 [assembly: AssemblyConfiguration("")]
1111 [assembly: AssemblyCompany("")]
1212 [assembly: AssemblyProduct("ニコニコランキングメーカー")]
13-[assembly: AssemblyCopyright("Copyright © rankingloid and hazychill 2008-2015 under GNU GPL Version 2")]
13+[assembly: AssemblyCopyright("Copyright © rankingloid, hazychill and other contributors 2008-2017 under GNU GPL Version 2")]
1414 [assembly: AssemblyTrademark("")]
1515 [assembly: AssemblyCulture("")]
1616
@@ -32,5 +32,5 @@
3232 // すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
3333 // 既定値にすることができます:
3434 // [assembly: AssemblyVersion("1.0.*")]
35-[assembly: AssemblyVersion("3.03.0.0")]
36-[assembly: AssemblyFileVersion("3.03.0.0")]
35+[assembly: AssemblyVersion("3.04.0.0")]
36+[assembly: AssemblyFileVersion("3.04.0.0")]
Show on old repository browser