* 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
* fix(indexers): immortalseed regex
* change IRC port to 7000
set TLS to true
replace "IRCKEY" in placeholder and help test with "PASSKEY" for invite_command field.
* simplified regex
Feed dates are not always initialized, which defaults (if present) to epoch on some feed items. When this happens the results can be unpredictable, and not expected for what users are intending for. As such to have sane defaults, we ignore the date if it's before April 1st 1970, because nothing really happened before this date.
* feat(irc): support SASL and NickServ auth
* feat(irc): add missing fields
* feat(irc): support SASL and NickServ auth
* feat(irc): add missing fields
* feat(irc): add validation
* feat(indexers): unify and set required values
* feat(irc): add postgres migrations
* feat(irc): use nick as handlerkey
* feat(irc): use account for nickserv
* fix(irc): pg db migration
Update animebytes.yaml
Place the year inside square brackets before the release tags. This makes sure that the arrs don't think the release year is part of the title.
* Fixed typo for "Aweomse Raw Novel"
Added one missing whitespace after "manga" tag for "Awesome Live Action Special" test
Changed regex expression to fix AB parsing
* Fixed regex to acknowledge "uploader" var in case there is no tags in the announce.
Added test line for announces without tags.
* chore: update rls package
* fix(release): don't overwrite season and episode
* feat(rss): implement relative URL support
* bp had some words
* feat(gh): uplift golang to 1.19.1
* feat(docker): uplift golang to 1.19
* feat(docker): uplift to go 1.19
* cleanup
* chore: update go version in go.mod
* feat: refactor and add test feed process item
* unescape query params after join
* break out logic into separate method
* add tests