mIRC Home    About    Download    Register    News    Help

Print Thread
#245333 16/04/14 08:50 PM
Joined: Feb 2014
Posts: 10
I
iFort Offline OP
Pikka bird
OP Offline
Pikka bird
I
Joined: Feb 2014
Posts: 10
Hello there (:

I am currently using a json script, to get json from a website API.
the script is:
http://www.mircscripts.org/comments.php?cid=4407

some people might have seen it, or used it.
I use this script for twitch API data, which works fine.
clearing cache then requesting does what it wants.

however when I want to use it with streamdonations.net (also uses json, updates immediately, browser confirms)
whether I clear cache a 100 times, specific url or just all around clear cache, it will ALWAYS return the same "answers" (no matter what I request from it), even if the data changes, till I reboot mIRC.

so my question is, this script uses a $com (?)
any way to clear the $com(%c).result or something? (in $json at ;check to see if source is url)

Regards,
iFort

iFort #245334 16/04/14 09:02 PM
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
You can /comclose jsonidentifier, but this doesn't address the actual root of the problem.

Loki12583 #245356 17/04/14 03:58 PM
Joined: Feb 2014
Posts: 10
I
iFort Offline OP
Pikka bird
OP Offline
Pikka bird
I
Joined: Feb 2014
Posts: 10
dear loki, thanks for your effort.
I tried what you did, used it once, to get the json, then added one. then closed the jsonidentifier with your command and reopened it. again - though, it did not change the result of the output. I wonder why this doesn't work as it works with other sites. I restarted mirc and again it got the right value. somehow it still saves the value /somewhere/.

I hope someone can help me with this?


Link Copied to Clipboard