mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 03:01:34 +00:00
23 lines
636 B
PHP
23 lines
636 B
PHP
<?php
|
|
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'indexer.php');
|
|
|
|
use newznab\db\Settings;
|
|
use newznab\TvRage;
|
|
|
|
$db = new Settings();
|
|
$t = new TvRage();
|
|
|
|
//
|
|
// all rage entries with a blank description
|
|
$rows = $db->query("select ID, releasetitle from tvrage_titles
|
|
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";
|
|
}
|