1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* update download.php redirector

This commit is contained in:
Reinhard Pointner 2015-06-02 11:46:09 +00:00
parent 3032a47d95
commit 7d8b8129a8

View File

@ -3,14 +3,15 @@ $version = isset($_GET['version']) ? $_GET['version'] : '@{version}'; // default
$arch = $_GET['arch'];
$type = $_GET['type'];
$folder = 'https://sourceforge.net/projects/filebot/files/filebot/FileBot_'.$version;
$root = 'https://downloads.sourceforge.net/project/filebot/filebot/';
$folder = $root.'FileBot_'.$version;
$file = 'undefined';
if ($type == 'nsis') {
$folder = 'https://sourceforge.net/projects/filebot/files/filebot/HEAD';
$folder = $root.'HEAD';
$file = 'FileBot-setup.exe';
} else if ($type == 'jar') {
$folder = 'https://sourceforge.net/projects/filebot/files/filebot/HEAD';
$folder = $root.'HEAD';
$file = 'FileBot.jar';
} else if ($type == 'msi')
$file = 'FileBot_'.$version.'_'.$arch.'.msi';