mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
21 lines
578 B
PHP
21 lines
578 B
PHP
<?php
|
|
require_once dirname(__FILE__) . '/../../www/config.php';
|
|
|
|
use newznab\db\Settings;
|
|
|
|
$db = new Settings();
|
|
$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";
|
|
} |