示例#1
0
 private void GetAllManga()
 {
     foreach (string letter in _letters)
     {
         net.ChangeURL("https://mintmanga.live/list?letter=" + letter + "&sortType=name");
         bool tmp_b = false;
         while (!tmp_b && !quit)
         {
             tmp_b = net.Send("");
             if (!tmp_b)
             {
                 net.ChangeURL("https://mintmanga.live/list?letter=" + letter + "&sortType=name");
             }
             Thread.Sleep(100);
         }
         if (quit)
         {
             return;
         }
         MangaParser();
     }
 }
示例#2
0
        private void SearchManga(string search)
        {
            net = new Net("https://mintmanga.live/search", Net.HTTPMethod.POST);
            bool tmp_b = false;

            while (!tmp_b && !quit)
            {
                tmp_b = net.Send("q=" + net.CyrillicToURL(search));
                if (!tmp_b)
                {
                    net.ChangeURL("https://mintmanga.live/search", Net.HTTPMethod.POST);
                }
            }
            if (quit)
            {
                return;
            }
            MangaParser();
        }