FranciscoR Posted February 19, 2009 Report Share Posted February 19, 2009 Link to comment Share on other sites More sharing options...
FranciscoR Posted February 19, 2009 Report Share Posted February 19, 2009 (edited) No way; and after the first failure, no other variable is processed. 19-02-2009 12:57:54: Update started with 1 application(s) 19-02-2009 12:57:54: aaa: Replacing {app} in '{app:regex:.*?id=(\d\d\d\d).*?(%2F%2F.*?\.exe):2}' with 'http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe' 19-02-2009 12:57:54: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with '' 19-02-2009 12:57:54: aaa: Replacing {app3} in 'http:{app3}' with '' 19-02-2009 12:57:54: aaa: Failed, URI inválido: Não foi possível analisar a Autoridade/o Anfitrião. 19-02-2009 12:57:54: aaa: Replacing {app} in '{app:regex:.*?id=(\d\d\d\d).*?(%2F%2F.*?\.exe):2}' with 'http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe' 19-02-2009 12:57:54: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with '' 19-02-2009 12:57:54: aaa: Replacing {app3} in 'http:{app3}' with '' 19-02-2009 12:57:54: aaa: Failed, URI inválido: Não foi possível analisar a Autoridade/o Anfitrião. 19-02-2009 12:57:54: Update finished And if I replace \d\d\d\d with \d{4} I get the message "Could not process the function 'regex'" 19-02-2009 12:59:47: Update started with 1 application(s) 19-02-2009 12:59:47: aaa: Replacing {app} in '{app:regex:.*?id=(\d{4}).*?(%2F%2F.*?\.exe):2}' with 'http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe' 19-02-2009 12:59:47: Could not process the function 'regex'. (a analisar ".*?id=(d{4" - Número insuficiente de ).) 19-02-2009 12:59:47: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with ').*?(%2F%2F.*?\.exe):2}' 19-02-2009 12:59:47: aaa: Replacing {app3} in 'http:{app3}' with ').*?(//.*?\.exe):2}' 19-02-2009 12:59:47: aaa: Failed, URI inválido: Não foi possível analisar a Autoridade/o Anfitrião. 19-02-2009 12:59:47: aaa: Replacing {app} in '{app:regex:.*?id=(\d{4}).*?(%2F%2F.*?\.exe):2}' with 'http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe' 19-02-2009 12:59:47: Could not process the function 'regex'. (a analisar ".*?id=(d{4" - Número insuficiente de ).) 19-02-2009 12:59:47: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with ').*?(%2F%2F.*?\.exe):2}' 19-02-2009 12:59:47: aaa: Replacing {app3} in 'http:{app3}' with ').*?(//.*?\.exe):2}' 19-02-2009 12:59:47: aaa: Failed, URI inválido: Não foi possível analisar a Autoridade/o Anfitrião. 19-02-2009 12:59:47: Update finished I've experience some issues with characters like ":" in other functions. Maybe this is also the case... unsupported characters? Edited February 19, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
floele Posted February 19, 2009 Author Report Share Posted February 19, 2009 OK, I can reproduce it. You need to escape the ":" within the regex though (make sure you redownload Ketarin and check my updated version). Link to comment Share on other sites More sharing options...
FranciscoR Posted February 19, 2009 Report Share Posted February 19, 2009 {app} variable does work =) but {id} is not processed =( (so version is wrong). 19-02-2009 17:08:45: Update started with 1 application(s) 19-02-2009 17:08:45: aaa: Replacing {app} in '{app:regex:.*?id=([\d]*?)&.*?(\%2F\%2F.*?\.exe):2}' with 'http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe' 19-02-2009 17:08:45: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with '%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe' 19-02-2009 17:08:45: aaa: Replacing {app3} in 'http:{app3}' with '//www.jam-software.com/treesize/TreeSizeProfessional-Demo.exe' 19-02-2009 17:08:46: aaa: Checking if update is required... 19-02-2009 17:08:46: aaa: Update required, 'D:\Programas\Test\TreeSizeProfessional-Demo.exe' does not yet exist 19-02-2009 17:08:48: aaa: Replacing {version} in '{version}' with '3.0.4' 19-02-2009 17:08:48: Update finished XML: <?xml version="1.0" encoding="utf-16"?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="f70c9fbd-b0f9-4363-8041-6b9fa9f2fe60"> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <VariableChangeIndicator /> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <Variables> <item> <key> <string>app</string> </key> <value> <UrlVariable> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe</TextualContent> <Name>app</Name> </UrlVariable> </value> </item> <item> <key> <string>app2</string> </key> <value> <UrlVariable> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{app:regex:.*?id=([\d]*?)&.*?(\%2F\%2F.*?\.exe):2}</TextualContent> <Name>app2</Name> </UrlVariable> </value> </item> <item> <key> <string>app3</string> </key> <value> <UrlVariable> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{app2:replace:%2F:/}</TextualContent> <Name>app3</Name> </UrlVariable> </value> </item> <item> <key> <string>id</string> </key> <value> <UrlVariable> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{app:regex:.*?id=([\d]*?)&.*?(\%2F\%2F.*?\.exe):1}</TextualContent> <Name>id</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <VariableType>RegularExpression</VariableType> <Regex><title>.+?(\d\.\d\.\d)</Regex> <Url>http://www.versiontracker.com/dyn/moreinfo/win/{id1}</Url> <Name>version</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <Category>Test</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation /> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated xsi:nil="true" /> <TargetPath>{target}\{category}\</TargetPath> <FixedDownloadUrl>http:{app3}</FixedDownloadUrl> <Name>aaa</Name> </ApplicationJob> </Jobs> Link to comment Share on other sites More sharing options...
floele Posted February 19, 2009 Author Report Share Posted February 19, 2009 "id" is not being processed because you use "id1". Link to comment Share on other sites More sharing options...
FranciscoR Posted February 19, 2009 Report Share Posted February 19, 2009 False alarm, 19-02-2009 17:28:38: Update started with 1 application(s) 19-02-2009 17:28:38: aaa: Replacing {app} in '{app:regex:.*?id=([\d]*?)&.*?(\%2F\%2F.*?\.exe):2}' with 'http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe' 19-02-2009 17:28:38: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with '%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe' 19-02-2009 17:28:38: aaa: Replacing {app3} in 'http:{app3}' with '//www.jam-software.com/treesize/TreeSizeProfessional-Demo.exe' 19-02-2009 17:28:40: aaa: Checking if update is required... 19-02-2009 17:28:40: aaa: Update required, 'D:\Programas\Test\TreeSizeProfessional-Demo.exe' does not yet exist 19-02-2009 17:28:40: aaa: Replacing {app} in '{app:regex:.*?id=(\d\d\d\d)&.*?(\%2F\%2F.*?\.exe):1}' with 'http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe' 19-02-2009 17:28:40: aaa: Replacing {id} in 'http://www.versiontracker.com/dyn/moreinfo/win/{id}' with '9679' 19-02-2009 17:28:42: aaa: Replacing {version} in '{version}' with '5.1.2' 19-02-2009 17:28:42: Update finished I had forgotten to update {id1} to {id} in version. It's perfect now =D. Sorry about that. Link to comment Share on other sites More sharing options...
FranciscoR Posted February 19, 2009 Report Share Posted February 19, 2009 You beat me by... 40 seconds. Sorry again, and THANKS. Link to comment Share on other sites More sharing options...
floele Posted February 19, 2009 Author Report Share Posted February 19, 2009 Hopefully, Ketarin will soon be bullet-proof enough so that you don't even consider it being wrong :-p Link to comment Share on other sites More sharing options...
FranciscoR Posted February 19, 2009 Report Share Posted February 19, 2009 Hopefully. =D Link to comment Share on other sites More sharing options...
FranciscoR Posted February 19, 2009 Report Share Posted February 19, 2009 (edited) Flo, there is still something wrong with \d{4}, \d{1,4}... Could not process the function 'regex'... 19-02-2009 18:15:56: Update started with 1 application(s) 19-02-2009 18:15:56: aaa: Replacing {app} in '{app:regex:.*?id=([\d]*?)&.*?(\%2F\%2F.*?\.exe):2}' with 'http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe' 19-02-2009 18:15:56: aaa: Replacing {app2} in '{app2:replace:%2F:/}' with '%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe' 19-02-2009 18:15:56: aaa: Replacing {app3} in 'http:{app3}' with '//www.jam-software.com/treesize/TreeSizeProfessional-Demo.exe' 19-02-2009 18:15:56: aaa: Checking if update is required... 19-02-2009 18:15:56: aaa: Update required, 'D:\Programas\Test\TreeSizeProfessional-Demo.exe' does not yet exist 19-02-2009 18:15:56: aaa: Replacing {app} in '{app:regex:.*?id=(\d{4})&.*?(\%2F\%2F.*?\.exe):1}' with 'http://www.versiontracker.com/php/dlpage.php?id=9679&db=win&pid=10008952&kind=&lnk=http%3A%2F%2Fwww.jam-software.com%2Ftreesize%2FTreeSizeProfessional-Demo.exe' 19-02-2009 18:15:56: Could not process the function 'regex'. (a analisar ".*?id=(\d{4" - Número insuficiente de ).) 19-02-2009 18:15:56: aaa: Replacing {id} in 'http://www.versiontracker.com/dyn/moreinfo/win/{id}' with ')&.*?(\%2F\%2F.*?\.exe):1}' 19-02-2009 18:15:59: aaa: Replacing {version} in '{version}' with '3.0.4' 19-02-2009 18:15:59: Update finished I tell you what, I will create a template using this method to help you test this function. Edited February 19, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
floele Posted February 19, 2009 Author Report Share Posted February 19, 2009 So far, you cannot use "}" within function arguments. That actually ends the variable definition. Link to comment Share on other sites More sharing options...
FranciscoR Posted February 19, 2009 Report Share Posted February 19, 2009 Ahhhhhhhh... Would that template help ? Link to comment Share on other sites More sharing options...
floele Posted February 19, 2009 Author Report Share Posted February 19, 2009 Which template? Link to comment Share on other sites More sharing options...
FranciscoR Posted February 19, 2009 Report Share Posted February 19, 2009 (edited) Bottom line of 18:20:16 post, I think I will do that. But why not use regex between "", {variablename:function:"argument1":argument2}, this could be an easy way for Ketarin to identify start and end of regex. What do you think ? Edited February 19, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
floele Posted February 19, 2009 Author Report Share Posted February 19, 2009 Currently, variables are "spotted" using regular expressions. These are not powerful enough to correctly analyse strings with escape sequences. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now