mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
CS fixes
This commit is contained in:
@@ -1086,9 +1086,9 @@ class Movie
|
||||
|
||||
// Check on IMDb first
|
||||
if ($movieUpdated === false) {
|
||||
$imdbSearch = new TitleSearch($this->config);
|
||||
foreach ($imdbSearch->search($this->currentTitle, [TitleSearch::MOVIE]) as $imdbTitle) {
|
||||
try {
|
||||
try {
|
||||
$imdbSearch = new TitleSearch($this->config);
|
||||
foreach ($imdbSearch->search($this->currentTitle, [TitleSearch::MOVIE]) as $imdbTitle) {
|
||||
if (! empty($imdbTitle->title())) {
|
||||
similar_text($imdbTitle->title(), $this->currentTitle, $percent);
|
||||
if ($percent >= self::MATCH_PERCENT) {
|
||||
@@ -1102,10 +1102,10 @@ class Movie
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (\ErrorException $e) {
|
||||
$this->colorCli->error('Error fetching data from imdb occured', true);
|
||||
Log::debug($e->getMessage());
|
||||
}
|
||||
} catch (\ErrorException $e) {
|
||||
$this->colorCli->error('Error fetching data from imdb occurred', true);
|
||||
Log::debug($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user