Update NameFixer PreDB matching

This commit is contained in:
DariusIII
2018-12-26 11:58:43 +01:00
parent 8cd8c34ce6
commit 2eec6bee91
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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);
+1
View File
@@ -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