Jump to content
Ketarin forum

url:basefile and url:ext not populated?


appyface
 Share

Recommended Posts

Below is my XML to download Firefox Portable. This one still downloads, but stopped populating url:basefile and url:ext a short while ago.

 

I have 'save to file' selected and my download filename is:

D:\Stuff\filestore\usb_stick_portable_apps_etc\{url:basefile}_{vers}.{url:ext}

 

Latest Firefox Portable is version 3.5.2, the output filename is now just: _3.5.2 because only my hard-coded underscore plus the version number is populated.

 

The url for downloading 3.5.2 is:

http://downloads.sourceforge.net/portableapps/FirefoxPortable_3.5.2_English.paf.exe

 

So I had expected my output file to be named:

FirefoxPortable_3.5.2_English.paf_3.5.2.exe

 

As always, help is appreciated. Thanks!

--appyface

 

 

<?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="727374bd-ca54-4c28-a7e2-593f97808a10">

<DownloadBeta>Default</DownloadBeta>

<DownloadDate xsi:nil="true" />

<CheckForUpdatesOnly>false</CheckForUpdatesOnly>

<VariableChangeIndicator />

<CanBeShared>true</CanBeShared>

<ShareApplication>false</ShareApplication>

<ExclusiveDownload>true</ExclusiveDownload>

<HttpReferer>http://sourceforge.net/</HttpReferer>

<Variables>

<item>

<key>

<string>skimurl</string>

</key>

<value>

<UrlVariable>

<RegexRightToLeft>false</RegexRightToLeft>

<VariableType>RegularExpression</VariableType>

<Regex>(?<=download-box.*?href=").*?(?=")</Regex>

<Url>http://portableapps.com/apps/internet/firefox_portable</Url>

<Name>skimurl</Name>

</UrlVariable>

</value>

</item>

<item>

<key>

<string>vers</string>

</key>

<value>

<UrlVariable>

<RegexRightToLeft>false</RegexRightToLeft>

<VariableType>RegularExpression</VariableType>

<Regex>(?<=Portable Edition"><span><strong>Download ).*?(?=<)</Regex>

<Url>http://portableapps.com/apps/internet/firefox_portable</Url>

<Name>vers</Name>

</UrlVariable>

</value>

</item>

</Variables>

<ExecuteCommand />

<ExecutePreCommand />

<Category>000100</Category>

<SourceType>FixedUrl</SourceType>

<PreviousLocation>D:\Stuff\filestore\usb_stick_portable_apps_etc\_3.5.2.</PreviousLocation>

<DeletePreviousFile>false</DeletePreviousFile>

<Enabled>true</Enabled>

<FileHippoId />

<LastUpdated>2009-08-13T03:49:56.88662</LastUpdated>

<TargetPath>D:\Stuff\filestore\usb_stick_portable_apps_etc\{url:basefile}_{vers}.{url:ext}</TargetPath>

<FixedDownloadUrl>{skimurl}</FixedDownloadUrl>

<Name>Firefox Portable</Name>

</ApplicationJob>

</Jobs>

Link to comment
Share on other sites

Hmm don't know if this is related or completely different issue...

 

The above XML does now come up with the disk filename I'm expecting to see. But the downloaded file is actually a 3mb webpage and not the 8.8mb exe I was expecting?

 

If I copy/paste the URL Ketarin gets from {skimurl} into a browser (IE8) or Orbit Downloader (2.8.14), both download the 8.8mb exe.

 

With Orbit it works with no referer, so I tried erasing Ketarin's referer but that didn't change it.

 

What am I overlooking? TIA for ideas,

--appyface

Link to comment
Share on other sites

Something is wrong with the commas alright, this is the url FF and IE are using on request

http://freefr.dl.sourceforge.net/project/portableapps/Mozilla%20Firefox%2C%20Portable%20Ed./Mozilla%20Firefox%2C%20Portable%20Edition%203.5.2/FirefoxPortable_3.5.2_English.paf.exe

 

This is the one used by Ketarin. Notice the encoded commas are replaced by Ketarin and there's also a missing dot in the end o 'Ed'. Put this url in FF or IE and you will be redirected to portable apps homepage (while FF hangs and IE crashes).

http://freefr.dl.sourceforge.net/project/portableapps/Mozilla%20Firefox,%20Portable%20Ed/Mozilla%20Firefox,%20Portable%20Edition%203.5.2/FirefoxPortable_3.5.2_English.paf.exe

But the requests are very different indeed, unless we know what are we looking for it's hard to conclude anything else...

Link to comment
Share on other sites

I just noticed that my Firefox_Portable_v3.5.2_en-us.paf.exe has been truncated to Firefox_Portable_v3.5.2_en-us.paf and it has not occurred with previous Firefox Portable downloads... will have to investigate further for an educated comment. ;) (Version 1.0.8)

Link to comment
Share on other sites

  • 2 weeks later...

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.