Bot.useBotQuery = false and FillFromAllPages

Help
samurdolph
2009-06-26
2013-05-13
  • samurdolph

    samurdolph - 2009-06-26

    Hello!

    This part of code results in hanging of the script:
            Bot.useBotQuery = false;
            Site site = new Site("...", "...", "...");
            PageList pl = new PageList(site);
            pl.FillFromAllPages("", 0, true, 32267);
    Total page count in my wiki is less than 20 but the function tryes to get all 32267 pages.

    I have check the code of FillFromAllPages. Possibly there is a bug in this part:
        do {
                 //blah-blah-blah             
        }
        while(pages.Count < quantity);
    There is no check of REAL page count.

    For Bot.useBotQuery = true; all works correctly.

    Thank you for this tool!

     
    • CodeDriller

      CodeDriller - 2009-07-06

      Sorry for delay.

      Yes, it's a bug there.

       

Log in to post a comment.