FranciscoR Posted January 31, 2009 Report Share Posted January 31, 2009 <?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 More sharing options...
andreone Posted July 8, 2009 Report Share Posted July 8, 2009 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 More sharing options...
FranciscoR Posted July 8, 2009 Author Report Share Posted July 8, 2009 So why don't you create a new template for it ? Shouldn't be that hard. Link to comment Share on other sites More sharing options...
CybTekSol Posted July 9, 2009 Report Share Posted July 9, 2009 (edited) @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 July 9, 2009 by CybTekSol Link to comment Share on other sites More sharing options...
andreone Posted July 9, 2009 Report Share Posted July 9, 2009 Well, I could, if I managed to make the download work. I tinkered the regex for version number and it works (the one I posted in my first post). But I don't find the correct url to actually download the file, and this why I asked you for help. Link to comment Share on other sites More sharing options...
FranciscoR Posted July 9, 2009 Author Report Share Posted July 9, 2009 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 More sharing options...
andreone Posted July 9, 2009 Report Share Posted July 9, 2009 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 More sharing options...
FranciscoR Posted July 9, 2009 Author Report Share Posted July 9, 2009 (edited) No problems here, are you sure the 403 url doesn't work for you ? Edited July 9, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
andreone Posted July 9, 2009 Report Share Posted July 9, 2009 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 More sharing options...
FranciscoR Posted July 9, 2009 Author Report Share Posted July 9, 2009 (edited) 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 July 10, 2009 by FranciscoR 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