Files
newznab-tmux/scripts/quick_parse.php
T
2025-09-12 13:41:25 +02:00

17 lines
473 B
PHP

<?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";
}