mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 01:38:54 +00:00
21 lines
556 B
PHP
21 lines
556 B
PHP
<?php
|
|
define('FS_ROOT', realpath(dirname(__FILE__)));
|
|
|
|
use newznab\db\DB;
|
|
|
|
$db = new DB();
|
|
$t = new TvRage();
|
|
|
|
//
|
|
// all rage entries with a blank description
|
|
$rows = $db->query("select ID, releasetitle from tvrage
|
|
where description is null
|
|
and rageID in (select distinct rageID from releases)
|
|
order by ID desc");
|
|
|
|
echo "Updating ".count($rows)." entries \n";
|
|
|
|
foreach ($rows as $row) {
|
|
$t->refreshRageInfo($row["ID"]);
|
|
echo "Refreshing ".$row["releasetitle"]."\n";
|
|
} |