diff --git a/Changelog b/Changelog index e2fe9486e..c14d43e1e 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2016-02-09 DariusIII + Upd: Change other cat numbers to be the last number in their range x999 2016-02-07 DariusIII Chg: Remove CAT_ from categories names and rename parent categories to root. 2016-02-04 DariusIII diff --git a/docs/newznab_api_specification.txt b/docs/newznab_api_specification.txt index 0e5096267..2b8e41719 100755 --- a/docs/newznab_api_specification.txt +++ b/docs/newznab_api_specification.txt @@ -597,7 +597,7 @@ newznab-tmux https://github.com/DariusIII/newznab-tmux 1060 Console/Wiiware/VC Wii homebrew 1070 Console/XBOX 360 DLC Microsoft XBox 360 Downloadable Content 1080 Console/PS3 Playstation 3 - 1090 Console/Other Misc Console + 1999 Console/Other Misc Console 1110 Console/3DS Nintendo 3DS 1120 Console/PS Vita Playstation Vita 1130 Console/WiiU Nintento Wii U @@ -605,7 +605,7 @@ newznab-tmux https://github.com/DariusIII/newznab-tmux 1180 Console/PS4 Playstation 4 2000 Movies All of movies 2010 Movies/Foreign Non english movies - 2020 Movies/Other Misc movies + 2999 Movies/Other Misc movies 2030 Movies/SD Standard definition movies 2040 Movies/HD High definition movies (720p+) 2050 Movies/3D 3D movies @@ -617,7 +617,7 @@ newznab-tmux https://github.com/DariusIII/newznab-tmux 3020 Audio/Video Music videos 3030 Audio/Audiobook Books in audio format 3040 Audio/Lossless Lossless music - 3050 Audio/Other Misc music + 3999 Audio/Other Misc music 3060 Audio/Foreign Non english music. 4000 PC All of PC 4010 PC/0day Apps and games not released in ISO. @@ -632,7 +632,7 @@ newznab-tmux https://github.com/DariusIII/newznab-tmux 5020 TV/FOREIGN FOREIGN TV 5030 TV/SD SD TV 5040 TV/HD HD TV - 5050 TV/OTHER Other TV Content + 5999 TV/OTHER Other TV Content 5060 TV/Sport Sports 5070 TV/Anime Anime 5080 TV/Documentary Documentaries @@ -643,7 +643,7 @@ newznab-tmux https://github.com/DariusIII/newznab-tmux 6040 XXX/x264 HD Porn 6050 XXX/Other Misc Porn 6060 XXX/Imageset Sets of porn images - 6070 XXX/Packs Packs of multiple porn videos + 6999 XXX/Packs Packs of multiple porn videos 7000 Books All of Books 7010 Books/Ebook Ebooks 7020 Books/Comics Comics Ebooks diff --git a/misc/testing/Releases/delete_releases.php b/misc/testing/Releases/delete_releases.php index b1f6d3362..6be7c753a 100644 --- a/misc/testing/Releases/delete_releases.php +++ b/misc/testing/Releases/delete_releases.php @@ -45,7 +45,7 @@ if ($totalArgs < 2) { $_SERVER['_'] . ' ' . $argv[0] . ' guid=equals="8fb5956bae3de4fb94edcc69da44d6883d586fd0"' . $n . $_SERVER['_'] . ' ' . $argv[0] . ' size=smaller="104857600" size=bigger="2048" groupname=like="movies"' . $n . $_SERVER['_'] . ' ' . $argv[0] . ' fromname=like="@XviD.net" groupname=equals="alt.binaries.movies.divx" ignore' .$n . - $_SERVER['_'] . ' ' . $argv[0] . ' imdbid=equals=NULL categoryid=equals=2020 nzbstatus=equals=1 adddate=bigger=2880 # Remove other movie releases with non-cleaned names added > 120 days ago' + $_SERVER['_'] . ' ' . $argv[0] . ' imdbid=equals=NULL categoryid=equals=2999 nzbstatus=equals=1 adddate=bigger=2880 # Remove other movie releases with non-cleaned names added > 120 days ago' )); } diff --git a/misc/update/update_releases.php b/misc/update/update_releases.php index efe646e1f..21bdcc3ce 100755 --- a/misc/update/update_releases.php +++ b/misc/update/update_releases.php @@ -50,7 +50,7 @@ if (isset($argv[1]) && isset($argv[2])) { } else if ($argv[1] == 6 && $argv[2] == 'false') { echo $pdo->log->header("Categorizing releases in misc sections using the searchname. This can take a while, be patient."); $timestart = TIME(); - $relcount = $releases->categorizeRelease('searchname', 'WHERE categoryID IN (1090, 2020, 3050, 5050, 6050, 7010)'); + $relcount = $releases->categorizeRelease('searchname', 'WHERE categoryID IN (1999, 2999, 3999, 5999, 6050, 7010)'); $consoletools = new ConsoleTools(['ColorCLI' => $pdo->log]); $time = $consoletools->convertTime(TIME() - $timestart); echo $pdo->log->primary("\n" . 'Finished categorizing ' . $relcount . ' releases in ' . $time . " seconds, using the search name."); diff --git a/newznab/Books.php b/newznab/Books.php index 79ece0a17..cc256b48c 100644 --- a/newznab/Books.php +++ b/newznab/Books.php @@ -493,7 +493,7 @@ class Books $this->pdo->log->headerOver('Changing category to misc books: ') . $this->pdo->log->primary($releasename) ); } - $this->pdo->queryExec(sprintf('UPDATE releases SET categoryid = %s WHERE id = %d', Category::BOOKS_ROOT, $releaseID)); + $this->pdo->queryExec(sprintf('UPDATE releases SET categoryid = %s WHERE id = %d', Category::BOOKS_UNKNOWN, $releaseID)); return false; } else if (preg_match('/^([a-z0-9ΓΌ!]+ ){1,2}(N|Vol)?\d{1,4}(a|b|c)?$|^([a-z0-9]+ ){1,2}(Jan( |unar|$)|Feb( |ruary|$)|Mar( |ch|$)|Apr( |il|$)|May(?![a-z0-9])|Jun( |e|$)|Jul( |y|$)|Aug( |ust|$)|Sep( |tember|$)|O(c|k)t( |ober|$)|Nov( |ember|$)|De(c|z)( |ember|$))/i', $releasename) && !preg_match('/Part \d+/i', $releasename)) { @@ -502,7 +502,7 @@ class Books $this->pdo->log->headerOver('Changing category to magazines: ') . $this->pdo->log->primary($releasename) ); } - $this->pdo->queryExec(sprintf('UPDATE releases SET categoryid = %s WHERE id = %d', Category::BOOKS_COMICS, $releaseID)); + $this->pdo->queryExec(sprintf('UPDATE releases SET categoryid = %s WHERE id = %d', Category::BOOKS_MAGAZINES, $releaseID)); return false; } else if (!empty($releasename) && !preg_match('/^[a-z0-9]+$|^([0-9]+ ){1,}$|Part \d+/i', $releasename)) { return $releasename; diff --git a/newznab/Categorize.php b/newznab/Categorize.php index 85fbaaa88..3a0f355ee 100644 --- a/newznab/Categorize.php +++ b/newznab/Categorize.php @@ -274,7 +274,7 @@ class Categorize extends Category case $this->isBook(): break; default: - $this->tmpCat = Category::BOOKS_ROOT; + $this->tmpCat = Category::BOOKS_UNKNOWN; break; } break; @@ -1405,7 +1405,7 @@ class Categorize extends Category public function isBookOther() { if (preg_match('/"\d\d-\d\d-20\d\d\./i', $this->releaseName)) { - $this->tmpCat = Category::BOOKS_ROOT; + $this->tmpCat = Category::BOOKS_UNKNOWN; return true; } return false; diff --git a/newznab/Category.php b/newznab/Category.php index b28bc8f5e..1132d33bd 100644 --- a/newznab/Category.php +++ b/newznab/Category.php @@ -19,14 +19,14 @@ class Category const GAME_WIIWARE = '1060'; const GAME_XBOX360DLC = '1070'; const GAME_PS3 = '1080'; - const GAME_OTHER = '1090'; + const GAME_OTHER = '1999'; const GAME_3DS = '1110'; const GAME_PSVITA = '1120'; const GAME_WIIU = '1130'; const GAME_XBOXONE = '1140'; const GAME_PS4 = '1180'; const MOVIE_FOREIGN = '2010'; - const MOVIE_OTHER = '2020'; + const MOVIE_OTHER = '2999'; const MOVIE_SD = '2030'; const MOVIE_HD = '2040'; const MOVIE_3D = '2050'; @@ -37,7 +37,7 @@ class Category const MUSIC_VIDEO = '3020'; const MUSIC_AUDIOBOOK = '3030'; const MUSIC_LOSSLESS = '3040'; - const MUSIC_OTHER = '3050'; + const MUSIC_OTHER = '3999'; const MUSIC_FOREIGN = '3060'; const PC_0DAY = '4010'; const PC_ISO = '4020'; @@ -50,7 +50,7 @@ class Category const TV_FOREIGN = '5020'; const TV_SD = '5030'; const TV_HD = '5040'; - const TV_OTHER = '5050'; + const TV_OTHER = '5999'; const TV_SPORT = '5060'; const TV_ANIME = '5070'; const TV_DOCU = '5080'; @@ -62,7 +62,7 @@ class Category const XXX_CLIPSD = '6042'; const XXX_PACK = '6050'; const XXX_IMAGESET = '6060'; - const XXX_OTHER = '6070'; + const XXX_OTHER = '6999'; const XXX_SD = '6080'; const XXX_WEBDL = '6090'; const BOOKS_MAGAZINES = '7010'; @@ -70,6 +70,7 @@ class Category const BOOKS_COMICS = '7030'; const BOOKS_TECHNICAL = '7040'; const BOOKS_FOREIGN = '7060'; + const BOOKS_UNKNOWN = '7999'; const BOOKS_ROOT = '7000'; const OTHER_ROOT = '0000'; const GAME_ROOT = '1000'; diff --git a/newznab/Music.php b/newznab/Music.php index 3fe54477a..3e18f2a2f 100644 --- a/newznab/Music.php +++ b/newznab/Music.php @@ -676,7 +676,7 @@ class Music public function processMusicReleases($local = false) { $res = $this->pdo->queryDirect(sprintf('SELECT searchname, id FROM releases ' - . 'WHERE musicinfoid IS NULL AND nzbstatus = 1 %s AND categoryid IN (3010, 3040, 3050) ' + . 'WHERE musicinfoid IS NULL AND nzbstatus = 1 %s AND categoryid IN (3010, 3040, 3999) ' . 'ORDER BY postdate DESC LIMIT %d', $this->renamed, $this->musicqty)); if ($res instanceof \Traversable && $res->rowCount() > 0) { if ($this->echooutput) { diff --git a/newznab/ReleaseRemover.php b/newznab/ReleaseRemover.php index 1b67ed12d..85bc3b810 100644 --- a/newznab/ReleaseRemover.php +++ b/newznab/ReleaseRemover.php @@ -627,7 +627,7 @@ class ReleaseRemover Category::BOOKS_FOREIGN, Category::BOOKS_MAGAZINES, Category::BOOKS_TECHNICAL, - Category::BOOKS_ROOT, + Category::BOOKS_UNKNOWN, Category::PC_0DAY, Category::PC_GAMES, Category::OTHER_MISC, diff --git a/newznab/Tmux.php b/newznab/Tmux.php index f383c4d37..a753d4714 100644 --- a/newznab/Tmux.php +++ b/newznab/Tmux.php @@ -387,7 +387,7 @@ class Tmux AND tv_episodes_id BETWEEN -3 AND 0 AND size > 1048576,1,0)) AS processtv, SUM(IF(nzbstatus = 1 AND categoryid = 5070 AND anidbid IS NULL,1,0)) AS processanime, SUM(IF(nzbstatus = 1 AND categoryid BETWEEN 2000 AND 2999 AND imdbid IS NULL,1,0)) AS processmovies, - SUM(IF(nzbstatus = 1 AND categoryid IN (3010, 3040, 3050) AND musicinfoid IS NULL,1,0)) AS processmusic, + SUM(IF(nzbstatus = 1 AND categoryid IN (3010, 3040, 3999) AND musicinfoid IS NULL,1,0)) AS processmusic, SUM(IF(nzbstatus = 1 AND categoryid BETWEEN 1000 AND 1999 AND consoleinfoid IS NULL,1,0)) AS processconsole, SUM(IF(nzbstatus = 1 AND categoryid IN (%s) AND bookinfoid IS NULL,1,0)) AS processbooks, SUM(IF(nzbstatus = 1 AND categoryid = 4050 AND gamesinfo_id = 0,1,0)) AS processgames, diff --git a/resources/db/patches/mysql/0050_category.sql b/resources/db/patches/mysql/0050_category.sql index efeabeef3..d1e021627 100644 --- a/resources/db/patches/mysql/0050_category.sql +++ b/resources/db/patches/mysql/0050_category.sql @@ -32,7 +32,7 @@ INSERT IGNORE INTO category (id, title, parentid) VALUES (1050, 'Xbox 360', 1000 INSERT IGNORE INTO category (id, title, parentid) VALUES (1060, 'WiiWare/VC', 1000); INSERT IGNORE INTO category (id, title, parentid) VALUES (1070, 'XBOX 360 DLC', 1000); INSERT IGNORE INTO category (id, title, parentid) VALUES (1080, 'PS3', 1000); -INSERT IGNORE INTO category (id, title, parentid) VALUES (1090, 'Other', 1000); +INSERT IGNORE INTO category (id, title, parentid) VALUES (1999, 'Other', 1000); INSERT IGNORE INTO category (id, title, parentid) VALUES (1110, '3DS', 1000); INSERT IGNORE INTO category (id, title, parentid) VALUES (1120, 'PS Vita', 1000); INSERT IGNORE INTO category (id, title, parentid) VALUES (1130, 'WiiU', 1000); @@ -40,7 +40,7 @@ INSERT IGNORE INTO category (id, title, parentid) VALUES (1140, 'Xbox One', 1000 INSERT IGNORE INTO category (id, title, parentid) VALUES (1180, 'PS4', 1000); INSERT IGNORE INTO category (id, title, parentid) VALUES (2010, 'Foreign', 2000); -INSERT IGNORE INTO category (id, title, parentid) VALUES (2020, 'Other', 2000); +INSERT IGNORE INTO category (id, title, parentid) VALUES (2999, 'Other', 2000); INSERT IGNORE INTO category (id, title, parentid) VALUES (2030, 'SD', 2000); INSERT IGNORE INTO category (id, title, parentid) VALUES (2040, 'HD', 2000); INSERT IGNORE INTO category (id, title, parentid) VALUES (2050, '3D', 2000); @@ -52,7 +52,7 @@ INSERT IGNORE INTO category (id, title, parentid) VALUES (3010, 'MP3', 3000); INSERT IGNORE INTO category (id, title, parentid) VALUES (3020, 'Video', 3000); INSERT IGNORE INTO category (id, title, parentid) VALUES (3030, 'Audiobook', 3000); INSERT IGNORE INTO category (id, title, parentid) VALUES (3040, 'Lossless', 3000); -INSERT IGNORE INTO category (id, title, parentid) VALUES (3050, 'Other', 3000); +INSERT IGNORE INTO category (id, title, parentid) VALUES (3999, 'Other', 3000); INSERT IGNORE INTO category (id, title, parentid) VALUES (3060, 'Foreign', 3000); INSERT IGNORE INTO category (id, title, parentid) VALUES (4010, '0day', 4000); @@ -67,7 +67,7 @@ INSERT IGNORE INTO category (id, title, parentid) VALUES (5010, 'WEB-DL', 5000); INSERT IGNORE INTO category (id, title, parentid) VALUES (5020, 'Foreign', 5000); INSERT IGNORE INTO category (id, title, parentid) VALUES (5030, 'SD', 5000); INSERT IGNORE INTO category (id, title, parentid) VALUES (5040, 'HD', 5000); -INSERT IGNORE INTO category (id, title, parentid) VALUES (5050, 'Other', 5000); +INSERT IGNORE INTO category (id, title, parentid) VALUES (5999, 'Other', 5000); INSERT IGNORE INTO category (id, title, parentid) VALUES (5060, 'Sport', 5000); INSERT IGNORE INTO category (id, title, parentid) VALUES (5070, 'Anime', 5000); INSERT IGNORE INTO category (id, title, parentid) VALUES (5080, 'Documentary', 5000); @@ -78,7 +78,7 @@ INSERT IGNORE INTO category (id, title, parentid) VALUES (6030, 'XviD', 6000); INSERT IGNORE INTO category (id, title, parentid) VALUES (6040, 'x264', 6000); INSERT IGNORE INTO category (id, title, parentid) VALUES (6050, 'Pack', 6000); INSERT IGNORE INTO category (id, title, parentid) VALUES (6060, 'ImgSet', 6000); -INSERT IGNORE INTO category (id, title, parentid) VALUES (6070, 'Other', 6000); +INSERT IGNORE INTO category (id, title, parentid) VALUES (6999, 'Other', 6000); INSERT IGNORE INTO category (id, title, parentid) VALUES (7010, 'Mags', 7000); INSERT IGNORE INTO category (id, title, parentid) VALUES (7020, 'Ebook', 7000); diff --git a/resources/db/schema/nntmux_fi_schema.sql b/resources/db/schema/nntmux_fi_schema.sql index 6e8aabb11..d49b221f9 100644 --- a/resources/db/schema/nntmux_fi_schema.sql +++ b/resources/db/schema/nntmux_fi_schema.sql @@ -157,7 +157,7 @@ INSERT INTO category (id, title, parentid, status, minsizetoformrelease, maxsize (1060, 'WiiWare/VC', 1000, 1, 0, 0, NULL, 0), (1070, 'XBOX 360 DLC', 1000, 1, 0, 0, NULL, 0), (1080, 'PS3', 1000, 1, 0, 0, NULL, 0), -(1090, 'Other', 1000, 1, 0, 0, NULL, 0), +(1999, 'Other', 1000, 1, 0, 0, NULL, 0), (1110, '3DS', 1000, 1, 0, 0, NULL, 0), (1120, 'PS Vita', 1000, 1, 0, 0, NULL, 0), (1130, 'WiiU', 1000, 1, 0, 0, NULL, 0), @@ -165,7 +165,7 @@ INSERT INTO category (id, title, parentid, status, minsizetoformrelease, maxsize (1180, 'PS4', 1000, 1, 0, 0, NULL, 0), (2000, 'Movies', NULL, 1, 0, 0, NULL, 0), (2010, 'Foreign', 2000, 1, 0, 0, NULL, 0), -(2020, 'Other', 2000, 1, 0, 0, NULL, 0), +(2999, 'Other', 2000, 1, 0, 0, NULL, 0), (2030, 'SD', 2000, 1, 0, 0, NULL, 0), (2040, 'HD', 2000, 1, 0, 0, NULL, 0), (2050, '3D', 2000, 1, 0, 0, NULL, 0), @@ -177,7 +177,7 @@ INSERT INTO category (id, title, parentid, status, minsizetoformrelease, maxsize (3020, 'Video', 3000, 1, 0, 0, NULL, 0), (3030, 'Audiobook', 3000, 1, 0, 0, NULL, 0), (3040, 'Lossless', 3000, 1, 0, 0, NULL, 0), -(3050, 'Other', 3000, 1, 0, 0, NULL, 0), +(3999, 'Other', 3000, 1, 0, 0, NULL, 0), (3060, 'Foreign', 3000, 1, 0, 0, NULL, 0), (4000, 'PC', NULL, 1, 0, 0, NULL, 0), (4010, '0day', 4000, 1, 0, 0, NULL, 0), @@ -192,7 +192,7 @@ INSERT INTO category (id, title, parentid, status, minsizetoformrelease, maxsize (5020, 'Foreign', 5000, 1, 0, 0, NULL, 0), (5030, 'SD', 5000, 1, 0, 0, NULL, 0), (5040, 'HD', 5000, 1, 0, 0, NULL, 0), -(5050, 'Other', 5000, 1, 0, 0, NULL, 0), +(5999, 'Other', 5000, 1, 0, 0, NULL, 0), (5060, 'Sport', 5000, 1, 0, 0, NULL, 0), (5070, 'Anime', 5000, 1, 0, 0, NULL, 0), (5080, 'Documentary', 5000, 1, 0, 0, NULL, 0), @@ -205,7 +205,7 @@ INSERT INTO category (id, title, parentid, status, minsizetoformrelease, maxsize (6042, 'SD Clips', 6000, 1, 0, 0, NULL, 0), (6050, 'Pack', 6000, 1, 0, 0, NULL, 0), (6060, 'ImgSet', 6000, 1, 0, 0, NULL, 0), -(6070, 'Other', 6000, 1, 0, 0, NULL, 0), +(6999, 'Other', 6000, 1, 0, 0, NULL, 0), (6080, 'SD', 6000, 1, 0, 0, NULL, 0), (6090, 'WEB-DL', 6000, 1, 0, 0, NULL, 0), (7000, 'Books', NULL, 1, 0, 0, NULL, 0), diff --git a/resources/db/schema/schema.sql b/resources/db/schema/schema.sql index f55bab007..f6908c0ad 100644 --- a/resources/db/schema/schema.sql +++ b/resources/db/schema/schema.sql @@ -533,7 +533,7 @@ INSERT INTO category (id, title, parentid) VALUES (1050, 'Xbox 360', 1000); INSERT INTO category (id, title, parentid) VALUES (1060, 'WiiWare/VC', 1000); INSERT INTO category (id, title, parentid) VALUES (1070, 'XBOX 360 DLC', 1000); INSERT INTO category (id, title, parentid) VALUES (1080, 'PS3', 1000); -INSERT INTO category (id, title, parentid) VALUES (1090, 'Other', 1000); +INSERT INTO category (id, title, parentid) VALUES (1999, 'Other', 1000); INSERT INTO category (id, title, parentid) VALUES (1110, '3DS', 1000); INSERT INTO category (id, title, parentid) VALUES (1120, 'PS Vita', 1000); INSERT INTO category (id, title, parentid) VALUES (1130, 'WiiU', 1000); @@ -541,7 +541,7 @@ INSERT INTO category (id, title, parentid) VALUES (1140, 'Xbox One', 1000); INSERT INTO category (id, title, parentid) VALUES (1180, 'PS4', 1000); INSERT INTO category (id, title, parentid) VALUES (2010, 'Foreign', 2000); -INSERT INTO category (id, title, parentid) VALUES (2020, 'Other', 2000); +INSERT INTO category (id, title, parentid) VALUES (2999, 'Other', 2000); INSERT INTO category (id, title, parentid) VALUES (2030, 'SD', 2000); INSERT INTO category (id, title, parentid) VALUES (2040, 'HD', 2000); INSERT INTO category (id, title, parentid) VALUES (2050, '3D', 2000); @@ -553,7 +553,7 @@ INSERT INTO category (id, title, parentid) VALUES (3010, 'MP3', 3000); INSERT INTO category (id, title, parentid) VALUES (3020, 'Video', 3000); INSERT INTO category (id, title, parentid) VALUES (3030, 'Audiobook', 3000); INSERT INTO category (id, title, parentid) VALUES (3040, 'Lossless', 3000); -INSERT INTO category (id, title, parentid) VALUES (3050, 'Other', 3000); +INSERT INTO category (id, title, parentid) VALUES (3999, 'Other', 3000); INSERT INTO category (id, title, parentid) VALUES (3060, 'Foreign', 3000); INSERT INTO category (id, title, parentid) VALUES (4010, '0day', 4000); @@ -568,7 +568,7 @@ INSERT INTO category (id, title, parentid) VALUES (5010, 'WEB-DL', 5000); INSERT INTO category (id, title, parentid) VALUES (5020, 'Foreign', 5000); INSERT INTO category (id, title, parentid) VALUES (5030, 'SD', 5000); INSERT INTO category (id, title, parentid) VALUES (5040, 'HD', 5000); -INSERT INTO category (id, title, parentid) VALUES (5050, 'Other', 5000); +INSERT INTO category (id, title, parentid) VALUES (5999, 'Other', 5000); INSERT INTO category (id, title, parentid) VALUES (5060, 'Sport', 5000); INSERT INTO category (id, title, parentid) VALUES (5070, 'Anime', 5000); INSERT INTO category (id, title, parentid) VALUES (5080, 'Documentary', 5000); @@ -579,7 +579,7 @@ INSERT INTO category (id, title, parentid) VALUES (6030, 'XviD', 6000); INSERT INTO category (id, title, parentid) VALUES (6040, 'x264', 6000); INSERT INTO category (id, title, parentid) VALUES (6050, 'Pack', 6000); INSERT INTO category (id, title, parentid) VALUES (6060, 'ImgSet', 6000); -INSERT INTO category (id, title, parentid) VALUES (6070, 'Other', 6000); +INSERT INTO category (id, title, parentid) VALUES (6999, 'Other', 6000); INSERT INTO category (id, title, parentid) VALUES (7010, 'Mags', 7000); INSERT INTO category (id, title, parentid) VALUES (7020, 'Ebook', 7000);