From 47f4339267d5ce3c96c0d68873128caa71db1918 Mon Sep 17 00:00:00 2001 From: Jim Mason Date: Mon, 12 Feb 2024 22:35:57 +0000 Subject: [PATCH] finessed previous revision to preference exact match only if not Promo or Special Edition --- ui/Editor.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/Editor.php b/ui/Editor.php index 7ae2f5ea..aa68da85 100644 --- a/ui/Editor.php +++ b/ui/Editor.php @@ -274,10 +274,9 @@ private function prefillTracks() { if($json->results && ($result = $json->results[0])) { foreach($json->results as $r) { // exact medium match is definitive - // use if current best is Promo or Limited/Special Edition + // if not Promo or Limited/Special Edition if(in_array($format, $r->format) && - (!in_array($format, $result->format) || - self::isSpecialEdition($result->format))) { + !self::isSpecialEdition($r->format)) { $result = $r; break; }