aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Downloads.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Downloads.php')
-rw-r--r--lib/Downloads.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/Downloads.php b/lib/Downloads.php
index aef1dd185..534cd5e0f 100644
--- a/lib/Downloads.php
+++ b/lib/Downloads.php
@@ -113,8 +113,8 @@ class Downloads
$val = explode('=', trim($val));
$m[$val[0]] = $val[1];
}
- $pu = parse_url($m['url']);
- if (in_array($pu['scheme'], array('http', 'ftp'))) {
+ $pu = parse_url($m['url']);
+ if (in_array($pu['scheme'], array('http', 'ftp'))) {
$item = array(
'city' => isset($m['city']) ? $m['city'] : '?',
@@ -123,9 +123,13 @@ class Downloads
// BEWARE of the path substitution here. Must match.
'url' => str_replace('/distrib/1/i586', '', $m['url'])
);
+
+ $torrent =$item['url'].'/iso/3/torrents/Mageia-3-LiveDVD-KDE4-x86_64-DVD.torrent' ;
+ if (file_exists($torrent)){
- $mirrors[$m['country']][] = $item;
+ $mirrors[$m['country']][] = $item;
$mirrors['_C:' . $m['continent']][] = $item;
+ }
}
}
@@ -282,4 +286,4 @@ class Downloads
'fuzzy_mirror' => $fuzzy_mirror
);
}
-} \ No newline at end of file
+}