Scripting: readurl broken

Things you’d like to miss in the future...
Post Reply
jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Scripting: readurl broken

Post by jacky »

Code: Select all

    ! Scripting, ternary conditional: The following examples were not
      parsed correctly for various reasons:
        ::msg "Good "."12" <=<date hh>? "afternoon": "morning"."!";
        ::?regexreplace $name, "some name [ETA: 12-2008]",
          "^(.+?) \[ETA: .+$", "$1";
      Fixed.
hmm... so yes, that regexp seems to be working now, but not everything has been fixed. I'm assuming it comes from the same place since it was introduced with the ternary conditionals support and seems to be linked to a ":" as well, although it might actually be something completely different/unrelated.

But readurl doesn't return the full content anymore, some of it (beginning) is missing! For example, ::download "http://www.xyplorer.com/"; will download the full page, 10 296 bytes, but this:

Code: Select all

  readurl $p, "http://www.xyplorer.com/";
  strlen $p, $p;
  msg $p;
Doesn't return 10 296, but 2 319 !! The statusbar does say "downloaded 10,05 KB (10 296 bytes)" though :?
Proud XYplorer Fanatic

admin
Site Admin
Posts: 60632
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Scripting: readurl broken

Post by admin »

Yes, ternary conditional is the culprit. Another case of repeated processing. Hmmm, tricky, won't fix tonight...

Post Reply