mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 02:08:57 +00:00
Update NameFixer PreDB matching
This commit is contained in:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user