Explorar el Código

fix a problem that filename may have  

Hansi7 hace 10 años
padre
commit
1603579b12
Se han modificado 2 ficheros con 19 adiciones y 1 borrados
  1. BIN
      AVsorter.v11.suo
  2. 19 1
      Arzon/Arzon.cs

BIN
AVsorter.v11.suo


+ 19 - 1
Arzon/Arzon.cs

@@ -168,12 +168,20 @@ namespace Gets
                 string Title = docc.DocumentNode.SelectSingleNode("//div[@id='detail_new']/div[@class='detail_title']/h1").InnerText.Trim();
                 Title = Tools.RemoveInvalidChars(Title);
 
+                while (Title.IndexOf(" ") != -1)
+                {
+                  Title=  Title.Replace(" ", "");
+                }
+                while (Title.IndexOf("廃盤") != -1)
+                {
+                    Title = Title.Replace("廃盤", "");
+                }
                 //var ddd ="[MIDD-983]Baby Entertainment×MOODYZコラボ作品 淫神の女泥棒 哀しき痙攣の追憶 Dear.F 1 恥辱的、屈辱的なイカせの拷問! 反反复复反反复复方法";
                 if (Title.Length>82)
                 {
                     Title = Title.Substring(0, 81);
                 }
-                
+
 
 
                 //string Title = basic.Title;
@@ -196,6 +204,16 @@ namespace Gets
                 
                 string minutes = docc.DocumentNode.SelectSingleNode("//div[@id='detail_new']/table/tr/td/table[@class='item_detail']/tr/td[@class='caption']/table[@class='item']/tr[7]/td[2]").InnerText.Trim();
                 string f_code = docc.DocumentNode.SelectSingleNode("//div[@id='detail_new']/table/tr/td/table[@class='item_detail']/tr/td[@class='caption']/table[@class='item']/tr[8]/td[2]").InnerText.Trim();
+
+                while (f_code.IndexOf(" ")!=-1)
+                {
+                    f_code = f_code.Replace(" ", "");
+                }
+                while (f_code.IndexOf("廃盤")!=-1)
+                {
+                    f_code = f_code.Replace("廃盤", "");
+                }
+
                 f_code = Tools.Fcode(f_code);
                 string xilie = docc.DocumentNode.SelectSingleNode("//div[@id='detail_new']/table/tr/td/table[@class='item_detail']/tr/td[@class='caption']/table[@class='item']/tr[4]/td[2]").InnerText.Trim();
                 //f_code = Tools.Fcode(f_code);