Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

Website.LookupPlayer: Name field is always empty #220

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
using Tibia.Util;

// Print the profession of the player Bubble
// This method is asynchronous, that is why we have to supply a 
// callback to get the data. It does not block your GUI if the 
// request take a while.
Website.LookupPlayer("Bubble", delegate(Website.CharInfo i)
{
    System.Console.WriteLine(i.Name); // always empty
});

What is the expected output? What do you see instead?
Expected output: Bubble
What I see instead: 

What version of the product are you using? On what operating system?
The newest version of TibiaAPI, Tibia 8.62, Window 7 Prof. x64

Please provide any additional information below.
Look here:
http://www.tibia.com/community/?subtopic=characters&name=Denizito

Before update Tibia.com we had:
Name:</td><td>Bebelzinha</td>

now:
Name:</td><td>Bebelzinha <div style="float: right;"></div></td>

Solution:
Website -> LookUpPlayer.cs -> line 66, change to:
i.Name = Match(html, @"Name:</td><td>([^<]*) <div style");

Tested and works fine for me.

Original issue reported on code.google.com by ziem1...@gmail.com on 24 Sep 2010 at 8:13

GoogleCodeExporter commented 9 years ago
Fixed in r831.

Original comment by joebingham07@gmail.com on 25 Sep 2010 at 5:05