Skip to content

Instantly share code, notes, and snippets.

@Snawoot
Created July 6, 2021 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Snawoot/99fcc4a4c0e51c85e0d142fbccd25870 to your computer and use it in GitHub Desktop.
Save Snawoot/99fcc4a4c0e51c85e0d142fbccd25870 to your computer and use it in GitHub Desktop.
let genre_re = /Жанр:.*(adventure|приключен|quest|квест|пошагов|TBS|turn-based)/iu;
let neg_genre_re = /Жанр:.*(шутер|shooter|FPS|аниме|симулятор|ходь|RPG|ролев|платформер|platform|текстов|хоррор|horror|Survival|выжива|инди|indie|поиск предметов|аркада|arcade|Sandbox|песочница|музыка)/iu;
let neg_title_re = /(remaster|reloaded|в разработке|\[(Air|Flash)\]|\bags\b)/iu;
let year_re = /Год.*:.*(\d{4}).*/iu;
(function (elem) {
if (elem.Deleted == 1) return
if (elem.Title.match(neg_title_re)) return
let stripped = strip_bbcode(elem.Content)
if (stripped.match(neg_genre_re)) return
if (stripped.match(genre_re)) {
let year_capture = stripped.match(year_re)
if (year_capture && Number(year_capture[1]) > 2010) {
print("https://rutracker.org/forum/viewtopic.php?t=" + elem.ID, elem.Title)
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment