mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
23 lines
457 B
PHP
23 lines
457 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Models\Settings;
|
|
|
|
class BooksProcessor
|
|
{
|
|
private bool $echooutput;
|
|
|
|
public function __construct(bool $echooutput)
|
|
{
|
|
$this->echooutput = $echooutput;
|
|
}
|
|
|
|
public function process(string $groupID = '', string $guidChar = ''): void
|
|
{
|
|
if ((int) Settings::settingValue('lookupbooks') !== 0) {
|
|
(new BookService)->processBookReleases($groupID, $guidChar);
|
|
}
|
|
}
|
|
}
|