mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Add patch and edit processReleases class to add entries to releases_regexes table
This commit is contained in:
@@ -3,6 +3,7 @@ namespace nntmux\processing;
|
||||
|
||||
use app\models\MultigroupPosters;
|
||||
use app\models\ReleasesGroups;
|
||||
use app\models\ReleasesRegexes;
|
||||
use app\models\Settings;
|
||||
use nntmux\Categorize;
|
||||
use nntmux\Category;
|
||||
@@ -686,6 +687,15 @@ class ProcessReleases
|
||||
)
|
||||
);
|
||||
|
||||
// Add the id of regex that matched the collection to releases_regexes table
|
||||
$releasesRegexes = ReleasesRegexes::create(
|
||||
[
|
||||
'releases_id' => $releaseID,
|
||||
'regex_id' => $collection['collections_regexes_id'],
|
||||
]
|
||||
);
|
||||
$releasesRegexes->save();
|
||||
|
||||
if (preg_match_all('#(\S+):\S+#', $collection['xref'], $matches)) {
|
||||
foreach ($matches[1] as $grp) {
|
||||
//check if the group name is in a valid format
|
||||
|
||||
Reference in New Issue
Block a user