mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Create categorization service
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
<?php
|
||||
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
use Blacklight\Categorize;
|
||||
|
||||
$c = (new ReflectionClass(Categorize::class))->newInstanceWithoutConstructor();
|
||||
$c->poster = '';
|
||||
|
||||
$samples = [
|
||||
'Starfield-RUNE',
|
||||
'Baldurs.Gate.3.TENOKE',
|
||||
'ELDEN.RING-EMPRESS',
|
||||
'Horizon.Zero.Dawn-CODEX',
|
||||
'Cyberpunk.2077.GOG',
|
||||
'Forza.Horizon.5.ElAmigos',
|
||||
'The.Witcher.3.Wild.Hunt.PLaza',
|
||||
'Resident.Evil.4.Remake-FITGIRL',
|
||||
'Red.Dead.Redemption.2.DODI-Repack',
|
||||
'Some.Game.SKiDROW',
|
||||
'Awesome.Game.SteamRip',
|
||||
'Great.Game.Repack-FitGirl',
|
||||
'Indie.Title.DRM-Free.GOG',
|
||||
'Cool.Game.PC.Game.2024',
|
||||
'Windows.10.Title.Repack',
|
||||
'Title-[PC]-DRMFree',
|
||||
];
|
||||
|
||||
foreach ($samples as $name) {
|
||||
$c->releaseName = $name;
|
||||
$res = $c->isPCGame();
|
||||
echo ($res ? 'MATCH' : 'NO-MATCH')."\t$name\n";
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
$rc = new ReflectionClass(\Blacklight\Games::class);
|
||||
$games = $rc->newInstanceWithoutConstructor();
|
||||
|
||||
$inputs = [
|
||||
'[FitGirl] Red.Dead.Redemption.2.v1.0.1436.28.Repack',
|
||||
'Baldurs_Gate_3_v1.0.2_MULTI12-EMPRESS',
|
||||
'Starfield.Update.1.7.29.Patch-FLT',
|
||||
];
|
||||
foreach ($inputs as $in) {
|
||||
$res = $games->parseTitle($in);
|
||||
echo $in, ' => ', json_encode($res, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), "\n";
|
||||
}
|
||||
Reference in New Issue
Block a user