From 2eec6bee91ca45e2be422ed470b9e516a2beacf1 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 26 Dec 2018 11:58:43 +0100 Subject: [PATCH] Update NameFixer PreDB matching --- Blacklight/NameFixer.php | 4 ++-- Changelog | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Blacklight/NameFixer.php b/Blacklight/NameFixer.php index 653004eb3..6f0a8b660 100755 --- a/Blacklight/NameFixer.php +++ b/Blacklight/NameFixer.php @@ -1515,8 +1515,8 @@ class NameFixer $this->nfoCheckG($release, $echo, $type, $nameStatus, $show); break; case 'Filenames, ': - $this->fileCheck($release, $echo, $type, $nameStatus, $show); $this->preDbFileCheck($release, $echo, $type, $nameStatus, $show); + $this->fileCheck($release, $echo, $type, $nameStatus, $show); break; default: $this->tvCheck($release, $echo, $type, $nameStatus, $show); @@ -2443,7 +2443,7 @@ class NameFixer $this->_cleanMatchFiles(); if (! empty($this->_fileName)) { - foreach ($this->sphinx->searchIndexes($this->_fileName, 'filename', 'predb_rt') as $match) { + foreach ($this->sphinx->searchIndexes($this->_fileName, ['filename', 'title'], 'predb_rt') as $match) { if (! empty($match)) { $preTitle = Predb::whereId($match['id'])->first(); $this->updateRelease($release, $preTitle->title, 'PreDb: Filename match', $echo, $type, $nameStatus, $show, $preTitle->id); diff --git a/Changelog b/Changelog index 50c684eef..1e25a310e 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-12-26 DariusIII + * Chg: Update NameFixer PreDB matching * Chg: Update TmuxRun class, increase number of releases for matching for match_prefiles script 2018-12-25 DariusIII * Chg: Update searchIndexes function and use it in NameFixer and speedup predb search in admin area