Jump to content
Ketarin forum

Ketarin 1.0.2 (beta)


floele
 Share

Recommended Posts

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 by FranciscoR
Link to comment
Share on other sites

{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

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

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 by FranciscoR
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.