Topic: Total Commander Extensions Templates
1) Totalcmd.net template
<?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>
<VariableChangeIndicator />
<CanBeShared>true</CanBeShared>
<ShareApplication>false</ShareApplication>
<HttpReferer />
<Variables>
<item>
<key>
<string>version</string>
</key>
<value>
<UrlVariable>
<VariableType>RegularExpression</VariableType>
<Regex>(?:<title>).+?((\d+?\.*?){1,5}\d+?\w{0,1}).+?(?:</title>)</Regex>
<Url><placeholder name="Application Page URL" /></Url>
<Name>version</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>app</string>
</key>
<value>
<UrlVariable>
<VariableType>RegularExpression</VariableType>
<Regex>(?:="/download\.php\?id=)(\w+?)(?:")</Regex>
<Url><placeholder name="Application Page URL" /></Url>
<Name>app</Name>
</UrlVariable>
</value>
</item>
</Variables>
<ExecuteCommand />
<Category>Totalcmd</Category>
<SourceType>FixedUrl</SourceType>
<DeletePreviousFile>true</DeletePreviousFile>
<Enabled>true</Enabled>
<FileHippoId />
<TargetPath>{target}\{category}\</TargetPath>
<FixedDownloadUrl>http://www.totalcmd.net/download.php?id={app}</FixedDownloadUrl>
<Name><placeholder name="Application Name" /></Name>
</ApplicationJob>
</Jobs>Insert App Page URL and App name. App Page URL example: http://www.totalcmd.net/plugring/fileinfo.html Note: Regex was tested against several urls in this site retrieving NO error (01-02-2009). Known limitations: none. How-To use a Template.
2) Ghisler.com template
<?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>
<CheckForUpdatesOnly>false</CheckForUpdatesOnly>
<VariableChangeIndicator />
<CanBeShared>true</CanBeShared>
<ShareApplication>false</ShareApplication>
<ExclusiveDownload>false</ExclusiveDownload>
<HttpReferer />
<Variables>
<item>
<key>
<string>version</string>
</key>
<value>
<UrlVariable>
<VariableType>RegularExpression</VariableType>
<Regex>(?<=<placeholder name="Download URL" />.+?<strong>).*?(\d{1,2}\.?\d{1,4}\.?\d{0,4}\.?\d{0,4}\.?\d{0,4}\.?[a-z]{0,5})(?=<)</Regex>
<Url>http://www.ghisler.com/plugins.htm</Url>
<Name>version</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>durl</string>
</key>
<value>
<UrlVariable>
<VariableType>Textual</VariableType>
<Regex />
<TextualContent><placeholder name="Download URL" /></TextualContent>
<Name>durl</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>durl1</string>
</key>
<value>
<UrlVariable>
<VariableType>Textual</VariableType>
<Regex />
<TextualContent>{durl:regex:(ghisler\.fileburst\.com/.+?)(\d.*?)?\.zip:1}</TextualContent>
<Name>durl1</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>durl2</string>
</key>
<value>
<UrlVariable>
<VariableType>RegularExpression</VariableType>
<Regex>http://({durl1}(?:\d.*?)?)\.zip(?=")</Regex>
<Url>http://www.ghisler.com/plugins.htm</Url>
<Name>durl2</Name>
</UrlVariable>
</value>
</item>
</Variables>
<ExecuteCommand />
<ExecutePreCommand />
<Category>Ghisler</Category>
<SourceType>FixedUrl</SourceType>
<DeletePreviousFile>false</DeletePreviousFile>
<Enabled>true</Enabled>
<FileHippoId />
<TargetPath>{target}\{category}\</TargetPath>
<FixedDownloadUrl>http://{durl2}.zip</FixedDownloadUrl>
<Name><placeholder name="Application Name" /></Name>
</ApplicationJob>
</Jobs>Insert Download URL (from the Name column) and App name. Download URL example: http://ghisler.fileburst.com/plugins/di tended.zip Note: Regex was tested against several urls in this page retrieving NO error (15-02-2009/10-03-2009). Known limitations: the Ghisler.com template doesn't handle Donwload URLs located in any other page. You need to use Ketarin 1.0.4.235 or above with this template. How-To use a Template.
3) Totalcmd.pl template
<?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>
<CheckForUpdatesOnly>false</CheckForUpdatesOnly>
<VariableChangeIndicator />
<CanBeShared>true</CanBeShared>
<ShareApplication>false</ShareApplication>
<ExclusiveDownload>true</ExclusiveDownload>
<HttpReferer />
<Variables>
<item>
<key>
<string>value</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>RegularExpression</VariableType>
<Regex>(?<=\<input type\="hidden" name\="id" value\=")([^\s]+)(?="/\>)</Regex>
<Url><placeholder name="Info Page URL" /></Url>
<Name>value</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>durl</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>RegularExpression</VariableType>
<Regex>ResponseUri: ([^\s]+)</Regex>
<PostData>id=%7bvalue%7d</PostData>
<Url>http://en.totalcmd.pl/gets.php?serwer=1</Url>
<Name>durl</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>version</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>RegularExpression</VariableType>
<Regex>(?<=(?-i:VERSION|WERSJA).*?\>[\s]+?)(\d+.*?)(?=[\s]+?\</div\>)</Regex>
<Url><placeholder name="Info Page URL" /></Url>
<Name>version</Name>
</UrlVariable>
</value>
</item>
</Variables>
<ExecuteCommand />
<ExecutePreCommand />
<Category>Totalcmd</Category>
<SourceType>FixedUrl</SourceType>
<DeletePreviousFile>false</DeletePreviousFile>
<Enabled>true</Enabled>
<FileHippoId />
<TargetPath>{target}\{category}<placeholder name="TargetPath" value="\wlx-\wcx-\wdx-\wfx-\tools-\tc-\test" />\{url:basefile}.{url:ext}</TargetPath>
<FixedDownloadUrl>{durl}</FixedDownloadUrl>
<Name><placeholder name="AppName" /></Name>
</ApplicationJob>
</Jobs>Enter Info Page URL, confirm/change TargetPath and you're ready to go.
Start here (EN) or here (PL), Info Page URL example. You need to use Ketarin 1.0.5.235 or above with this template. How-To use a Template. Note: this template uses the new POST method of and it is still being tested.
Last edited by FranciscoR (2009-04-17 21:04:21)