Optimized some scripts, dropped bitwise column,

replaced stuff, removed optional NFO, EBBOK, MOVIE, MUSIC AND GAMES pp,
those are now mandatory.
This commit is contained in:
Darko
2014-02-21 10:27:54 +01:00
parent 7db94c66b7
commit 8aa37f79bd
8 changed files with 78 additions and 112 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ function preName($argv)
{
$determinedcat = $category->determineCategory($row["groupID"], $pre['title']);
$result = $db->query(sprintf("UPDATE releases SET rageID = NULL, seriesfull = NULL, season = NULL, episode = NULL, tvtitle = NULL, tvairdate = NULL, imdbID = NULL, musicinfoID = NULL, consoleinfoID = NULL, bookinfoID = NULL, "
. "anidbID = NULL, preID = %d, dehashstatus = 1, isrenamed = 1, iscategorized = 1, bitwise = ((bitwise & ~32)|32), searchname = %s, categoryID = %d WHERE ID = %d", $pre['ID'], $db->escapeString($pre['title']), $determinedcat, $row['ID']));
. "anidbID = NULL, preID = %d, dehashstatus = 1, isrenamed = 1, iscategorized = 1, searchname = %s, categoryID = %d WHERE ID = %d", $pre['ID'], $db->escapeString($pre['title']), $determinedcat, $row['ID']));
$total = count($result);
if ($total > 0)
{