Jump to content
Ketarin forum

Ketarin 1.0.5 (beta)


floele
 Share

Recommended Posts

CybTekSol... you're begging to sound like a 'glass is FULL' kinda person. LOL... scared with some changes ? Smile ! =)
Never scared of changes as long as they are improvements, but you must admit, Ketarin has come a LONG way! Sure, it can be better as almost everything can, although it will adequately get the job done for me now. ;)
Link to comment
Share on other sites

  • Replies 97
  • Created
  • Last Reply

Top Posters In This Topic

Flo,

 

Can I use the use the second variable URL as referer, e.g. {app1} ? This seems to work, but log is a bit ambiguous

 

25-03-2009 15:14:05: SAS: Using referer: {app1}

If you mean HTTP referrer, yes it works FranciscoR, I have been doing it for quite some time now... see my CNET template for example. I have tested it with sites that have to have a referrer and it works...

Link to comment
Share on other sites

Example:

 

I have 1 job with 3 variables.

 

var1, URL= http://...A

var2, URL= http://...B

var3, URL= http://...C

 

#1 If referer = 'empty' and if a HTTPreferer is needed, Ketarin will use var1 URL (default). My question is

 

#2 If referer = '{var2}', will Ketarin use 'http://...B' ? I don't quite understand how referer handles 'variable replacements' - nothing is logged in referer line, Using referer: {app1}.

 

 

Edit:

 

@CybTekSol

You're using *only* {redir}, if you use as HTTPreferer 'http://...{varX}', with varX=10, will this result in http://...10 or will Ketarin use the first variable URL ? Anyway I always have an error if I use 'http://...{varX}{varY}'

Edited by FranciscoR
Link to comment
Share on other sites

Flo, yesterday I was looking at Ohloh and I haven't noticed that you had implemented

 

*Reset cached content when changing the variable used as change indicator

This cache reset with {version} as change indicator seems to be causing some problems, specifically downloading twice (twice exactly) the same app:

 

23-03-2009 16:02:57,69 WMP-FF_4/13/2007

23-03-2009 23:00:07,84 WMP-FF_4/13/2007

 

24-03-2009 12:31:29,10 PDF-XChange_2.0.0041.4

25-03-2009 13:28:49,93 PDF-XChange_2.0.0041.4

 

27-03-2009 13:51:26,25 MBAM_1.35

27-03-2009 20:35:29,29 MBAM_1.35

 

+Command line option "log" to save log file to specified location on exit

Thanks ! ;)

Edited by FranciscoR
Link to comment
Share on other sites

Couldn't we use variables/environment variables with log name ? This way we could have

 

log_{MMM}-{dd}_{HH}-{mm}.txt

 

Do know I can do this with a batch file...

 

---------------------------------------------------

 

Edit:

 

I don't need it anymore (created a tc template w/ writedate/time).

Edited by FranciscoR
Link to comment
Share on other sites

What parameter ? I'll provide XML so you can test yourself:

 

<?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="69291a39-542c-45ab-aeeb-b6a4a2a7cab4">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>true</ExclusiveDownload>
   <HttpReferer>http://sourceforge.net/project/downloading.php</HttpReferer>
   <Variables>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>http://downloads\.sourceforge\.net\/portableapps\/.*?_(\d\..+?|\d\w.+?)(?:_en-us){0,1}(?:\.paf\.exe|\.zip)</Regex>
           <Url>http://portableapps.com/apps/utilities/7-zip_portable</Url>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>app</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>http://downloads\.sourceforge\.net\/portableapps\/(.+?)(?:\.paf\.exe|\.zip)</Regex>
           <Url>http://portableapps.com/apps/utilities/7-zip_portable</Url>
           <Name>app</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <Category>Unpack</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>D:\Programas\Unpack\7-Zip_Portable_4.65.paf.exe</PreviousLocation>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2009-03-08T15:38:28.4826854</LastUpdated>
   <TargetPath>{target}\{category}\</TargetPath>
   <FixedDownloadUrl>http://downloads.sourceforge.net/portableapps/{app}.paf.exe?download</FixedDownloadUrl>
   <Name>7-zip Portable</Name>
 </ApplicationJob>
</Jobs>

 

As you can see, right now I'm using a generic mirror referer (using no referer doesn't help either). This produces ocasional errors, you will see them if you try to update this app during a few days. When a error is produced, use the static referer of my previous post (if fastbull is unavailable replace mirror='fastbull' with heatnet/dfn/garr... ) and you will see the difference. No errors/timeouts.

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.