Correct game registration, add more blacklisted words

This commit is contained in:
SmallJoker 2017-02-26 00:01:20 +01:00
parent a7eaf2398f
commit 25e7087faa
2 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ namespace ModIndexer
{ {
REL_MODS = 11, REL_MODS = 11,
WIP_MODS = 9, WIP_MODS = 9,
REL_GAMES = 16, REL_GAMES = 15,
WIP_GAMES = 50, WIP_GAMES = 50,
OLD_MODS = 13 OLD_MODS = 13
} }

View File

@ -260,11 +260,11 @@ namespace ModIndexer
case "subgame": case "subgame":
switch (forum) { switch (forum) {
case Misc.FETCH_TYPE.REL_GAMES: case Misc.FETCH_TYPE.REL_GAMES:
type = Misc.DATA_TYPE.REL_MP; type = Misc.DATA_TYPE.REL_GAME;
break; break;
case Misc.FETCH_TYPE.WIP_GAMES: case Misc.FETCH_TYPE.WIP_GAMES:
case Misc.FETCH_TYPE.WIP_MODS: case Misc.FETCH_TYPE.WIP_MODS:
type = Misc.DATA_TYPE.WIP_MP; type = Misc.DATA_TYPE.WIP_GAME;
break; break;
/*case Misc.FETCH_TYPE.OLD_GAMES: /*case Misc.FETCH_TYPE.OLD_GAMES:
type = Misc.DATA_TYPE.OLD_GAME; // TODO type = Misc.DATA_TYPE.OLD_GAME; // TODO
@ -449,9 +449,9 @@ namespace ModIndexer
// Remove useless tags from the forum titles // Remove useless tags from the forum titles
const string MODNAME_ALLOWED_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789_-"; const string MODNAME_ALLOWED_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789_-";
// Content of [tags] // Content of [tags]
string[] bad_content = { "wip", "beta" }; string[] bad_content = { "wip", "beta", "test", "code", "indev", "git", "github" };
// Beginnings of [tags] // Beginnings of [mod-my_doors5] for wrong formatted titles
string[] bad_prefix = { "minetest", "mod", "mods", "git" }; string[] bad_prefix = { "minetest", "mod", "mods" };
// [tags] to identify a mod // [tags] to identify a mod
string[] identifiers = { "mod", "modpack", "game" }; string[] identifiers = { "mod", "modpack", "game" };