Add XXX WebDL category if WEBDL categorization is selected in site edit.

This commit is contained in:
Darko
2015-02-24 13:54:50 +01:00
parent 8cdcf85f8a
commit 11abd54f36
6 changed files with 24 additions and 3 deletions
+2
View File
@@ -0,0 +1,2 @@
INSERT INTO category (ID, title, parentID) VALUES (6090, 'WEB-DL', 6000);
UPDATE `tmux` SET `value` = '112' WHERE `setting` = 'sqlpatch';
+18
View File
@@ -798,6 +798,7 @@ class Categorize extends Category
case $this->isXxxPack():
case $this->IsXxxClipHD():
case $this->isXxxClipSD():
case $this->catWebDL && $this->isXxxWEBDL():
case $this->isXxx264():
case $this->isXxxXvid():
case $this->isXxxImageset():
@@ -805,6 +806,7 @@ class Categorize extends Category
case $this->isXxxDVD():
case $this->isXxxOther():
case $this->isXxxSD():
return true;
default:
$this->tmpCat = \Category::CAT_XXX_OTHER;
@@ -818,6 +820,12 @@ class Categorize extends Category
$this->tmpCat = \Category::CAT_XXX_X264;
return true;
}
if ($this->catWebDL == false) {
if (preg_match('/web[-._ ]dl|web-?rip/i', $this->releaseName)) {
$this->tmpCat = \Category::CAT_XXX_X264;
return true;
}
}
return false;
}
@@ -893,6 +901,7 @@ class Categorize extends Category
}
return false;
}
public function isXxxSD()
{
if (preg_match('/^[\w.]+(\d{2}\.\d{2}\.\d{2})[\w.]+(MP4-\w+)/i', $this->releaseName)) {
@@ -902,6 +911,15 @@ class Categorize extends Category
return false;
}
public function isXxxWEBDL()
{
if (preg_match('/web[-._ ]dl|web-?rip/i', $this->releaseName)) {
$this->tmpCat = \Category::CAT_XXX_WEBDL;
return true;
}
return false;
}
// Console.
public function isConsole()
{
+1 -1
View File
@@ -117,7 +117,7 @@ class TmuxOutput extends Tmux
$buffer = '';
$state = ($this->runVar['settings']['is_running'] == 1) ? 'Running' : 'Disabled';
//$version = $this->_tvers . 'r' . $this->_vers;
$tversion = '0.6r0040';
$tversion = '0.6r0045';
$buffer .= sprintf($this->tmpMasks[2],
"Monitor $state v$tversion @ $this->_tvers [" . $this->_vers ."]: ",
+1 -1
View File
@@ -557,7 +557,7 @@ class XXX
FROM releases r
WHERE r.nzbstatus = 1
AND r.xxxinfo_id = 0
AND r.categoryID IN (6010, 6020, 6030, 6040, 6041, 6042, 6080)
AND r.categoryID IN (6010, 6020, 6030, 6040, 6041, 6042, 6080, 6090)
LIMIT %d",
$this->movieqty
)
+1
View File
@@ -60,6 +60,7 @@ class Category
const CAT_XXX_IMAGESET = 6060;
const CAT_XXX_OTHER = 6070;
const CAT_XXX_SD = 6080;
const CAT_XXX_WEBDL = 6090;
const CAT_BOOK_MAGS = 7010;
const CAT_BOOK_EBOOK = 7020;
const CAT_BOOK_COMICS = 7030;
+1 -1
View File
@@ -37,7 +37,7 @@ if (count($nntpkill) === 0) {
}
// Check database patch version
if ($patch < 111) {
if ($patch < 112) {
exit($c->error("\nYour database is not up to date. Please update.\nphp ${DIR}/tmux/lib/DB/patchDB.php\n"));
}