Jump to content
Ketarin forum

{url:ext} works incorrectly if {url} is defined


Stalker
 Share

Recommended Posts

I have this entry for foobar I got off the online database which has {url} defined. I do not use but download it off the FileHippo instead. My files are all saved to {DEST_DIR}\{category}\{appname}_{version}.{url:ext} (Save to file) and {url:ext} in this case is defined not to the extension of file being download but to the same as {url}. While this issue is easy to fix (remove {url} variable which is not used anyway) wouldn't it be possible to do something about it ?

Quite honestly I don't know a good way to fix it because you have to evaluate {url} which is being redefined. Maybe there should be some variables which could not be redefined in order to avoid such problems ?

 

XML entry below:

<?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="2e0c06f9-9318-433c-9e58-e24a6ba072e1">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate>2008-12-23T23:14:03.6473</DownloadDate>
   <CanBeShared>false</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>url</string>
       </key>
       <value>
         <UrlVariable>
           <VariableType>StartEnd</VariableType>
           <Regex />
           <Url>http://www.foobar2000.org/?page=Download</Url>
           <StartText>Latest stable version</h2>
 Download <a href="</StartText>
           <EndText>">foobar2000</EndText>
           <Name>url</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <VariableType>StartEnd</VariableType>
           <Regex />
           <Url>http://www.foobar2000.org/?page=Download</Url>
           <StartText>">foobar2000 v</StartText>
           <EndText></a></EndText>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <Category>Multimedia</Category>
   <SourceType>FileHippo</SourceType>
   <PreviousLocation>D:\Distrib\Multimedia\foobar2000_0.9.6.1.exe</PreviousLocation>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId>foobar2000</FileHippoId>
   <LastUpdated>2009-01-02T19:08:15.017</LastUpdated>
   <TargetPath>{DEST_DIR}\{category}\{appname}_{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl />
   <Name>foobar2000</Name>
 </ApplicationJob>
</Jobs>

Edited by 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.