Jump to content
Ketarin forum

Alternative URL


K3tchup
 Share

Recommended Posts

Could Ketarin get alternative URL option for file download source? Or could Ketarin choose another sourceforge file host if the originally provided is down?

 

Most of the time I want to download from nearest file provider but if that fails could Ketarin try alternative URL if provided?

Link to comment
Share on other sites

  • 2 weeks later...

Ah... SourceForge... now that's a site that is p_____ me off. About half of my downloads from there are corrupted due to how they are 'serving up' their downloads. Flo... this is becoming one of my greatest frustrations. Have you done any experimenting with them lately?

Link to comment
Share on other sites

i download a couple of programs from sourceforge and i don't get any corrupt files..

 

this is for KeePass for example, but i use pretty much the same regex for all the others that i download from sourceforge

 

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="06154f43-c976-473c-8078-af52701c5469">
   <WebsiteUrl />
   <UserNotes />
   <LastFileSize>1934507</LastFileSize>
   <LastFileDate>2010-03-13T20:48:18.1632409</LastFileDate>
   <IgnoreFileInformation>false</IgnoreFileInformation>
   <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>StartEnd</VariableType>
           <Regex />
           <Url>http://keepass.info/download.html</Url>
           <StartText>Professional Edition</b></big><br />
<i>KeePass </StartText>
           <EndText></i></p></EndText>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>url</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>http://down.+?.exe</Regex>
           <Url>http://sourceforge.net/projects/keepass/files/</Url>
           <Name>url</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <Category>- Säkerhet</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>G:\Program\- Säkerhet\KeePass 2.10\KeePass-2.10-Setup.exe</PreviousLocation>
   <DeletePreviousFile>false</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2010-03-13T20:48:18.1632409</LastUpdated>
   <TargetPath>{programs}\{category}\{appname} {version}\{url:basefile}.{url:ext}</TargetPath>
   <FixedDownloadUrl>{url}</FixedDownloadUrl>
   <Name>KeePass</Name>
 </ApplicationJob>
</Jobs>

 

the regex code is very simple, but they seem to be working, at least for the moment, i also notice on keepass i don't get version info from sourceforge, but from keepass's homepage, but i guess you can do either if you want

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.