mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 02:08:57 +00:00
Add XXX WebDL category if WEBDL categorization is selected in site edit.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
INSERT INTO category (ID, title, parentID) VALUES (6090, 'WEB-DL', 6000);
|
||||
UPDATE `tmux` SET `value` = '112' WHERE `setting` = 'sqlpatch';
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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 ."]: ",
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user