WindmillHelix / Brickficiency2

https://www.reddit.com/r/brickficiency
33 stars 14 forks source link

Showstopper: Price and Store is not retrieved from the request #9

Open Gabilin opened 8 years ago

Gabilin commented 8 years ago

Tried several times to get the pricing and shop information and failed.

This one: var pattern = ".<TR ALIGN=" + "\"" + @"RIGHT" + "\"" + @">.?<A HREF=" + "\"" + @"/store.asp\?sID=(\d?)&.?<IMG SRC=" + "\"" + @"/images/box16(.).png" + "\"" + @".?TITLE=" + "\"" + @"Store: (.?)" + "\"" + @" ALIGN=" + "\"" + @"ABSMIDDLE" + "\"" + @">.?(\d)<TD.? \D([\d,]*).(\d+)$"; Match linematch = Regex.Match(raw, pattern);

            if (linematch.Success)

never result in "true"

esampsonite commented 8 years ago

When you go to calculate a solution, do you have the "Log in to retrieve Price Guide pages" box checked? Also, can you give specific parts that it is having a problem with so I can try to reproduce the error?

Gabilin commented 8 years ago

Well, the thing is that when I open the xml it starts pinging the server for the information and while Availstrores column is updated, the price and Total are both 0. The code that should fill those is hidden in the "if" statement I was referencing to.

I have attached the xml file I retrieved from rebrickable.com test.zip

esampsonite commented 8 years ago

The xml file you attached seems to be for the issue https://github.com/WindmillHelix/Brickficiency2/issues/7 where it doesn't open at all if it can't find one of the pieces.

For this issue, what part/color/condition is causing that to not get the price guide info? If you ignore the grid showing 0 and go to Tools->Calculate->Best Solution, is "Log in to retrieve Price Guide pages" checked?