Closed ghost closed 7 years ago
Looking at the list of categories, it's both possible to have a '-' character in a category and a '-' surrounded by spaces, so it'd definitely require a more advanced regex than that.
Edit: There are also some other characters in current categories that aren't covered. And then you have to consider the possibility of them being there even if they aren't now. Honestly, the ideal thing to do would be to ask for them to separate/move the category (technically called Platform on GGn) in a way to be more easily parsed.
As an extra thought, the same could be said for their release tags (i.e. '(English, Scene)'). Really, the entire announce could be much better formatted both for human and programmatic parsing.
Currently there is no category captured for GGN:
However the current announce scheme looks like this:
As you can see, after the
Uploaded: ||
and before the- torrentName
is a category that could be used in filters.Is it possible to fix this? New code could look like this (sorry my regex is not fierce):