Jump to content
Ketarin forum

Operation timed out


dutchclimber
 Share

Recommended Posts

Hi all,

 

Not sure if this is a bug or that I just get it wrong, but I tried the use of PAD files, as follows:

 

Application name: CDburnerXP

Download source URL: http://cdburnerxp.se/rss/padfile.xml

Save in folder: c:\ketarin\download

 

Advanced settings:

Enabled is true

Beta is default

Rest is empty/unchecked

 

It DOES download the file, but I still get a timeout

 

Any ideas?

R

Link to comment
Share on other sites

Are you 'scraping' the version? Try this:

<?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>{version}</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>(?:\<Program_Version\>)(Beta.+?|Build.+?|\d.*?)(?:[\s\s]|<|&)</Regex>
           <Url>http://cdburnerxp.se/rss/padfile.xml</Url>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <Category>CD-DVD</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation />
   <DeletePreviousFile>false</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated xsi:nil="true" />
   <TargetPath>{target}\{category}\{appname:regexreplace:(\w+[\s]?\w+)(\s\(\w+\))?:$1}\{appname:replace: :_}_v{version:replace: :_}.{url:ext}</TargetPath>
   <FixedDownloadUrl>http://cdburnerxp.se/rss/padfile.xml</FixedDownloadUrl>
   <Name>CDBurnerXP</Name>
 </ApplicationJob>
</Jobs>

Modify it to your needs. ;)

Link to comment
Share on other sites

Oh, too bad. I was hoping to move some of my entries to PAD files to avoid long-winded regexes.

I have developed a 'Generic Template for PADfiles' based on the above example and I will post it if you are interested Stalker. It works very well so far. ;)

Link to comment
Share on other sites

  • 4 weeks later...

A 'Generic PADfile Template' example for Stalker:

 

<?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>{version}</VariableChangeIndicator>
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer><placeholder name="URL of Application's PADfile?" value="http://cdburnerxp.se/rss/padfile.xml" /></HttpReferer>
   <Variables>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>(?:\<Program_Version\>)(Beta.+?|Build.+?|\d+[\.\d+]+?.*?Beta.*?\d+[\.\d+]+?|\d+[\.\d+]+?.*?Build.*?\d+[\.\d+]+?|\d+[\.\d+]+?.*?Beta|\d+[\.\d+]+?)(?:[\s\s]|<|&)</Regex>
           <Url><placeholder name="URL of Application's PADfile?" value="http://cdburnerxp.se/rss/padfile.xml" /></Url>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <Category><placeholder name="Category?" value="New" options="Antivirus|CD-DVD|Data|Distros|Drivers|Education|Engineering|Finance|Games|Internet|Media|Miscellaneous|New|Office|Personal Productivity|Programming|Security|Test|Text|Utilities" /></Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation />
   <DeletePreviousFile><placeholder name="Delete Previous Version?" value="true" options="false|true" /></DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated xsi:nil="true" />
   <TargetPath>{target}\{category}\{appname:replace: :_}_v{version:replace: :_}.{url:ext}</TargetPath>
   <FixedDownloadUrl><placeholder name="URL of Application's PADfile?" value="http://cdburnerxp.se/rss/padfile.xml" /></FixedDownloadUrl>
   <Name><placeholder name="Application Name?" /></Name>
 </ApplicationJob>
</Jobs>

 

Modify to suit your needs Stalker...

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.