Topic: CNET Download.com template

Because the one by CybTekSol doesn't work anymore i made mine, this is my first template.

I'm not using regex i didn't dig that much the thing so that's a "raw" version, it works for the tries i made.

<?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="f7c17eb6-ff11-454e-8f59-0426d00eeffc">
    <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>redirect</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>StartEnd</VariableType>
            <Regex />
            <Url>http://download.cnet.com/<placeholder name="Enter the name part of your link. ie for : http://download.cnet.com/Fileaze-Lite/3000-2248_4-10657156.html enter [Fileaze-Lite]" />/<placeholder name="Enter the id part of your link. ie for : http://download.cnet.com/Fileaze-Lite/3000-2248_4-10657156.html enter [3000-2248_4-10657156]" />.html</Url>
            <StartText> &lt;/style&gt; &lt;a href="</StartText>
            <EndText>" class="dlNowIcon"&gt;&lt;img </EndText>
            <Name>redirect</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>url</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>StartEnd</VariableType>
            <Regex />
            <Url>{redirect}</Url>
            <StartText>If it doesn't, &lt;a href="</StartText>
            <EndText>" style="text-decoration</EndText>
            <Name>url</Name>
          </UrlVariable>
        </value>
      </item>
    </Variables>
    <ExecuteCommand />
    <ExecutePreCommand />
    <Category>[CATEGORY]</Category>
    <SourceType>FixedUrl</SourceType>
    <DeletePreviousFile>true</DeletePreviousFile>
    <Enabled>true</Enabled>
    <FileHippoId />
    <LastUpdated xsi:nil="true" />
    <TargetPath>{root}\[{category}] {appname}\</TargetPath>
    <FixedDownloadUrl>{url}</FixedDownloadUrl>
    <Name><placeholder name="Software name" /></Name>
  </ApplicationJob>
</Jobs>

Don't forget to change the target path

Edit : Forget it, since the ID randomly change my template will not make it for a long term use.

Last edited by caribou (2010-01-23 21:56:17)

Re: CNET Download.com template

This will work until they randomly change their ID for the app as they do with subsequent releases. Since this ID is volatile, and they do not remove the page associated with the earlier version, you will think that you have the latest version when in reality the newer version is on a different page. I use their own search engine for my current template to defeat this madness. I just haven't found the time to post it yet... soon I hope. wink

Re: CNET Download.com template

Ohhhh! Understood, i didn't know that !

Actually that makes sense now, it looked weird to me that you had some "kind-of-problems" with this template.

Last edited by caribou (2010-01-23 21:58:14)