diff --git a/fetchupd.php b/fetchupd.php index 2517a3a..84cd150 100644 --- a/fetchupd.php +++ b/fetchupd.php @@ -83,20 +83,18 @@ function uupFetchUpd($arch = 'amd64', $ring = 'WIF', $flight = 'Active', $build $updateFiles = preg_grep('/.*<\/Files>/', $updateMeta); sort($updateFiles); - $updateTitle = preg_grep('/.*<\/Title>/', $updateMeta); - sort($updateTitle); - preg_match('/<Files>.*<\/Files>/', $updateFiles[0], $fileList); if(empty($fileList[0])) { consoleLogger('An error has occurred'); return array('error' => 'EMPTY_FILELIST'); } - preg_match('/<FlightMetadata>.*?<Relationships>/', $out, $out2); - preg_match('/Version\=".*?"/', $updateInfo[0], $foundBuild); $foundBuild = preg_replace('/Version="10\.0\.|"/', '', $foundBuild[0]); + $updateTitle = preg_grep('/<Title>.*<\/Title>/', $updateMeta); + sort($updateTitle); + preg_match('/<Title>.*?<\/Title>/i', $updateTitle[0], $updateTitle); $updateTitle = preg_replace('/<Title>|<\/Title>/i', '', $updateTitle); sort($updateTitle); diff --git a/shared/main.php b/shared/main.php index d513cc5..c162661 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '1.2.0'; + return '1.2.1'; } function uupApiPrintBrand() {