mirror of
https://github.com/BillyOutlast/Gazelle-Porn.git
synced 2026-07-01 06:41:50 -04:00
15 lines
406 B
PHP
15 lines
406 B
PHP
<?php
|
|
|
|
require(__DIR__ . '/../classes/includes.php');
|
|
|
|
use Gazelle\Torrent\TorrentSlot;
|
|
|
|
$DB->query("SELECT
|
|
ID, Processing, Resolution, Codec, SpecialSub, ChineseDubbed, SubtitleType, Subtitles
|
|
FROM
|
|
torrents where Slot <> 1");
|
|
foreach ($DB->to_array('ID', MYSQLI_ASSOC) as $ID => $Torrent) {
|
|
$Slot = TorrentSlot::CalSlot($Torrent);
|
|
$DB->query("UPDATE torrents SET Slot=$Slot WHERE ID=$ID");
|
|
}
|