New Content - Implemented Some plurals

Donavin69

Member
They escaped characters are put in to 'combat' the warning message telling me to put them in, if you're saying that I should remove them, I'll try that in a little bit and see if it resolves the issue. I could live with the warning message saying that I should include the escape chars.

Don
 

Donavin69

Member
I removed the <i> and </i> from my script and the result is the same:
HTML:
Retrieving server reply
ResponseText has 594 characters.
[{"id":"128695454","type":"normal","fromid":"2027386","azunixtime":"1450287292","message":"bumblebee tuna<center><table class=\"item\" style=\"float: none\" rel=\"id=4513&s=0&q=0&d=0&g=1&t=1&n=2&m=0&p=0&u=.\"><tr><td><img src=\"http:\/\/images.kingdomofloathing.com\/itemimages\/potion2.gif\" alt=\"Vial of <i>jus de larmes<\/i>\" title=\"Vial of <i>jus de larmes<\/i>\" class=hand onClick='descitem(209380924)'><\/td><td valign=center class=effect>You acquire <b>2 vials of <i>jus de larmes<\/i><\/b><\/td><\/tr><\/table><\/center>","fromname":"billdred","localtime":"12\/16\/15 12:34:52 PM"}]
Unrecognized item found: 2 vials of <i>jus de larmes
Unrecognized item found: 2 vials of <i>jus de larmes
class net.sourceforge.kolmafia.request.GenericRequest
Connecting to clan_office.php...
 

heeheehee

Developer
Staff member
So, going off of Veracity's comment, it looks like you're using extract_items on some JSON from api.php.

On the other hand, if you use format=php, then KoL doesn't escape forward slashes, and extract_items works just fine then.
 

Donavin69

Member
I am using the ZLib utilities, and reading through ZLib, yes it appears he is using api.php. I'll look into coding this myself, and get away from the ZLib utility.

Thanks for your help with this (and I'll post in that thread about the issue)
 

Theraze

Active member
Or suggesting to Zarqon that he shift to using the php edition of api if it gives better results. *shrugs*
 
Top