From 6d5f3a80f9c9d07e1e95b2e85a695e9a64febb8d Mon Sep 17 00:00:00 2001 From: eraseyourknees <112027564+eraseyourknees@users.noreply.github.com> Date: Sun, 11 Sep 2022 03:46:54 +0200 Subject: [PATCH] Move fileinfo cache to fileinfo directory --- listid.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/listid.php b/listid.php index c23f3b1..661879c 100644 --- a/listid.php +++ b/listid.php @@ -34,7 +34,7 @@ function uupApiPrivateGetFromFileinfo($sortByDate = 0) { consoleLogger('Parsing database info...'); - $cacheFile = 'cache/fileinfo_v2.json'; + $cacheFile = 'fileinfo/?cache.json'; $cacheV2Version = 1; $database = @file_get_contents($cacheFile); @@ -57,7 +57,9 @@ function uupApiPrivateGetFromFileinfo($sortByDate = 0) { $newDb = array(); $builds = array(); foreach($files as $file) { - if($file == '.' || $file == '..') continue; + if($file == '.' || $file == '..' || $file == '?cache.json') + continue; + $uuid = preg_replace('/\.json$/', '', $file); if(!isset($database[$uuid])) {