Stalker Posted January 11, 2009 Report Share Posted January 11, 2009 (edited) 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 January 11, 2009 by Stalker Link to comment Share on other sites More sharing options...
floele Posted January 11, 2009 Report Share Posted January 11, 2009 I guess I'll just add a new function "ext". Link to comment Share on other sites More sharing options...
Stalker Posted January 11, 2009 Author Report Share Posted January 11, 2009 I guess I'll just add a new function "ext". Maybe {extension} ? As far as I can see people don't like giving long names to variables so {extension} is less likely to be redefined than {ext}. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now