* feat(indexers): add funfile.org
* corrections by zze0s
* Updated test line examples
* Fixed 2nd regex pattern
was only grabbing SCENE, but should grab P2P etc as well
* Added www to url
* feat(filters): add support for language
* feat(filters): add db migrations and repo
* feat(filters): fix failing tests
* feat(filters): fix failing tests
* feat(indexers): improve RED and OPS artist parsing
* feat(indexers): deprecate lidarr red ops workaround
* feat(indexers): change artist and album field check
* seperator before tags and tags optional for red
* fix: update rejection msg
Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
* feat(indexers): add Aither
* Changed freeleech variable
Changed from freeleech to freeleechPercent
* Added resolution and internal variables to aither
* Fixed Aither regex pattern
- Thank you @nuxencs for assisting with the regex pattern
* fix: second test case missing end bracket
* fix(database): build WHERE using squirrel
* flip LIKEs
* change sql.LevelReadCommitted
* feat(db): add missing commits
* implement single query for releases
* cleanup
* feat(releases): properly handle limit for Find
* feat(releases): make dynamic ILike helper
* feat(releases): check for empty ReleaseActionStatus
* add values as sql.NullX
* check if ID is non 0
* feat(releases): improve find
* fix(indexers): TS regex
TS got rid of the "id=" part in their announces, resulting in our pattern not matching anymore.
Adjusted our regex with capturing the ID after `/` instead of `id=`.
Tested this the new expression with 1180 announces of which all resulted in a match.
* fixed test
fixed test to match new regex
* fix(releases): improve load time by 47x
* fix(releases): optimize stats query
* remove the *
* change nil to actual 0
* feat(releases): flip recent to orderby id
* fix(stats): make postgres compatible
* return the * to COUNT for pgsql
Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
Co-authored-by: ze0s <ze0s@riseup.net>
* Fixed regex to still match the announce if there are no flags in it.
* customize freeleech parsing from regex
* Fix match when there is no year given (instead of 0) for a release.
Made capture group 4 lazy/optional/ungreedy.
Created a non-capturing group for the `:: NSFW! ::` section to exclude the seperators and the tag itself from the tags var.
I think we should exclude a possible `:: NSFW! ::` section after the tags section from matching for 2 reasons:
1. There is already an "adult" tag. Use it.
2. The `:: NSFW! ::` may get truncated if the announce line is too long. Matching the tag against `adult` is more consistent.
Fix match when `:: NSFW! ::` section gets truncated because the announce line is too long.
Tested with a sample size of 554 announces of which 554 resulted in a match.
* fix(indexers): ggn change flags to releaseTags and freeleech