Add XXX SD Clips and XXX HD Clips categories. Will need some more refinement.

This commit is contained in:
Darko
2015-02-13 15:45:22 +01:00
parent 284f4996f8
commit de2ac4dce1
4 changed files with 25 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
INSERT INTO category (ID, title, parentID) VALUES (6041, 'HD Clips', 6000);
INSERT INTO category (ID, title, parentID) VALUES (6042, 'SD Clips', 6000);
UPDATE `tmux` SET `value` = '110' WHERE `setting` = 'sqlpatch';
+19
View File
@@ -790,6 +790,8 @@ class Categorize extends Category
case !preg_match('/\bXXX\b|(a\.b\.erotica|ClubSeventeen|Cum(ming|shot)|Err?oticax?|Porn(o|lation)?|Imageset|PICTURESET|JAV Uncensored|lesb(ians?|os?)|mastur(bation|e?bate)|My_Stepfather_Made_Me|nympho?|OLDER ANGELS|pictures\.erotica\.anime|sexontv|slut|Squirt|SWE6RUS|Transsexual|whore)/i', $this->releaseName):
return false;
case $this->isXxxPack():
case $this->IsXxxClipHD():
case $this->isXxxClipSD():
case $this->isXxx264():
case $this->isXxxXvid():
case $this->isXxxImageset():
@@ -813,6 +815,15 @@ class Categorize extends Category
return false;
}
public function isXxxClipHD()
{
if (preg_match('/MP4\-(KTR|GUSH|SEXORS|hUSHhUSH)/i', $this->releaseName) && !preg_match('/WEBRIP/i', $this->releaseName) && !preg_match('/\bwmv\b/i', $this->releaseName)) {
$this->tmpCat = \Category::CAT_XXX_CLIPHD;
return true;
}
return false;
}
public function isXxxWMV()
{
if (preg_match('/(\d{2}\.\d{2}\.\d{2})|([ex]\d{2,})|[^a-z0-9](f4v|flv|isom|(issue\.\d{2,})|mov|mp(4|eg)|multiformat|pack-|realmedia|uhq|wmv)[^a-z0-9]/i', $this->releaseName) && !preg_match('/SDX264XXX/i', $this->releaseName)) {
@@ -868,6 +879,14 @@ class Categorize extends Category
return false;
}
public function isXxxClipSD()
{
if (preg_match('/(\d{2}\.\d{2}\.\d{2})/i', $this->releaseName) && !preg_match('/IMAGESET|PICTURESET|ABPEA/i', $this->releaseName) && !preg_match('/\bwmv\b/i', $this->releaseName)) {
$this->tmpCat = \Category::CAT_XXX_CLIPSD;
return true;
}
return false;
}
public function isXxxSD()
{
if (preg_match('/SDX264XXX|XXX\.HR\./i', $this->releaseName)) {
+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, 6080)
AND r.categoryID IN (6010, 6020, 6030, 6040, 6041, 6042, 6080)
LIMIT %d",
$this->movieqty
)
+2
View File
@@ -54,6 +54,8 @@ class Category
const CAT_XXX_WMV = 6020;
const CAT_XXX_XVID = 6030;
const CAT_XXX_X264 = 6040;
const CAT_XXX_CLIPHD = 6041;
const CAT_XXX_CLIPSD = 6042;
const CAT_XXX_PACK = 6050;
const CAT_XXX_IMAGESET = 6060;
const CAT_XXX_OTHER = 6070;