ferventcoder/chocolateyautomaticpackages — pull request #11 by TomOne (2013-05-28 21:34:06+00:00)
Title: Foobar2000 package was broken

Hi Rob,
your foobar2000 package is broken. The download link specified in your package doesn’t work. I tried the new download link, which also contains a hash.
As you probably know, Redsandro wrote a nice function to obtain a hashed download link. But even with that function it isn’t possible to download foobar2000. I tried to use wget with a referer and a spoofed Firefox user agent. That also did not work. Then I looked if the download page sets a cookie, but it doesn’t. I also searched for a possible JavaScript code which generates the download link, but I didn’t find any.

Damn, either the site supervisor was very clever to prevent automated downloads or I have overlooked something.

Anyway, I still found a solution: I modified the function of Redsandro to work with FileHippo. Now the package automatically downloads the latest foobar2000 version from FileHippo.

Note that you should first push this package with the following tag in the nuspec: 1.2.6.20130528 Then you can replace it again with {{PackageVersion}} to work properly with Ketarin.

For the PackageVersion version variable you could use the title-tag from here: www.filehippo.com/download_foobar2000/

I hope you like my commit. But if you find a better solution, bring it on. :-)