Jump to content
Ketarin forum

Roadkil.net template


FranciscoR
 Share

Recommended Posts

<?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">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>app</string>
       </key>
       <value>
         <UrlVariable>
           <VariableType>RegularExpression</VariableType>
           <Regex>(?:download\..*?=)(\w*?)(?:")</Regex>
           <Url><placeholder name="Application Page URL" /></Url>
           <Name>app</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <VariableType>RegularExpression</VariableType>
           <Regex>(?:Current\sVersion\<.*?">)(\d{1,2}\.\d{1,2})(?:</)</Regex>
           <Url><placeholder name="Application Page URL" /></Url>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <Category>Test</Category>
   <SourceType>FixedUrl</SourceType>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated xsi:nil="true" />
   <TargetPath>{target}\{category}\{appname}_{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl>http://www.roadkil.net/download.php?File={app}</FixedDownloadUrl>
   <Name><placeholder name="Application Name" /></Name>
 </ApplicationJob>
</Jobs>

 

Just insert App Page URL and App name. App Page URL example: http://www.roadkil.net/program.php?ProgramID=29

 

Note: Regex was tested against ALL download urls in this site retrieving NO error (30-01-2009).

Link to comment
Share on other sites

  • 5 months later...

Hi,

 

I have trouble using your template. It seems the website layout has change.

 

I tried with Unstoppable Copier and got:

The downloaded file is not a binary file type (text/html). Possibly there is an error page. Status code: 200 (OK) ([url]http://www.roadkil.net/download.php?File=[/url])

 

Actually, I tried myself before finding your template, but never succeeded in downloading the file.

The only thing I came up with is the regex for version:

Latest Version(?:.*?)>(\d+[\.\d+]+)

 

Do you have any insight?

Link to comment
Share on other sites

@andreone,

Try this for the app regex:

(?:\>Windows\sXP\</option\>.*?download\.php\?)(FileID=\w.*?)(?:'|")

and adjust for the OS you prefer... this is obviously for WinXP. ;)

 

Correction: I created this app entry for Unstoppable Copier quite some time ago and it appears the download for all windows flavors (except 9x/Me) is the same file... you need to verify that though...

Edited by CybTekSol
Link to comment
Share on other sites

Try

 

<?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">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>latest version.+?>([0-9.]+)</Regex>
           <Url>http://www.roadkil.net/program.php?ProgramID=29&Action=NewOSID&DownloadVersion=6&Installer=NO</Url>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <Category>Utils\Recovery</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>D:\Programas\Utils\Recovery\UnstopCpy_4_1_Win2K_UP.exe</PreviousLocation>
   <DeletePreviousFile>false</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2009-07-02T15:48:41.0056795</LastUpdated>
   <TargetPath>{target}\{category}\</TargetPath>
   <FixedDownloadUrl>http://www.roadkil.net/download.php?FileID=402&ProgramID=29</FixedDownloadUrl>
   <Name>UnstoppableCopier</Name>
 </ApplicationJob>
</Jobs>

Link to comment
Share on other sites

Thanks, it works.

I've checked and found that my url was

http://www.roadkil.net/download.php?FileID=403&ProgramID=29

instead of

http://www.roadkil.net/download.php?FileID=402&ProgramID=29

403 is the setup version and 402 is the stand alone version.

Ketarin fails to download the setup version but is ok with the stand alone one.

I wonder if it's a bug from ketarin or from the website

 

Thank you

Link to comment
Share on other sites

Yes, I'm sure. Ketarin's progress bar loops infinitely, displaying "unknown".

(note that for the 402, Ketarin also displays "unknown" while downloading)

 

I have the lastest version of Ketarin (1.0.7.285) and I'm on XP (behind an enterprise proxy).

Link to comment
Share on other sites

Yeah, I confirm that on Vista 32-bit (without proxy) - previously i've checked for updates only. 403 produces one of those 'never-ending-dls' for me, and both give me the message 'unknown' while dl. ASAP to Flo.

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.