Move download link replacements
This commit is contained in:
parent
749fd65769
commit
6a524aa0c0
2
get.php
2
get.php
@ -329,7 +329,7 @@ function uupGetFiles(
|
|||||||
$filesNew = array();
|
$filesNew = array();
|
||||||
foreach($filesInfoKeys as $val) {
|
foreach($filesInfoKeys as $val) {
|
||||||
$filesNew[$val] = $filesInfoList[$val];
|
$filesNew[$val] = $filesInfoList[$val];
|
||||||
$filesNew[$val]['url'] = str_replace('http://tlu.dl.delivery.mp.microsoft.com', 'https://uupdump.sf.tlu.dl.delivery.mp.microsoft.com', $filesInfoList[$val]['url']);
|
$filesNew[$val]['url'] = uupApiFixDownloadLink($filesInfoList[$val]['url']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$files = $filesNew;
|
$files = $filesNew;
|
||||||
|
@ -155,3 +155,14 @@ function uupApiBuildMajor($build) {
|
|||||||
|
|
||||||
return intval(explode('.', $build)[0]);
|
return intval(explode('.', $build)[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function uupApiFixDownloadLink($link) {
|
||||||
|
if($link == null)
|
||||||
|
return null;
|
||||||
|
|
||||||
|
return str_replace(
|
||||||
|
'http://tlu.dl.delivery.mp.microsoft.com',
|
||||||
|
'https://uupdump.sf.tlu.dl.delivery.mp.microsoft.com',
|
||||||
|
$link
|
||||||
|
);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user