Commit graph

9 commits

Author SHA1 Message Date
Frederick Robinson
fef0da5711
feat(definitions): add expectations for test lines (#1257)
* factor out test helpers

* refactor, add tests for animebytes

* revert test refactor

* better name

* change format, migrate some examples

* migrated remaining test cases

* add comment about `Test` vs `Tests`

* refactor

* reorder expectations to match vars

* generate

* turn on strict unmarshalling, remove old `Test` from schema

* start modifying actual definitions

* done with the As

* Bs

* C, D

* E, F

* G, H, I, ... L

* M, N

* O, P

* R

* bonus error. without this, pattern/vars disagreement can panic.

* S

* T, U

* X.. Now we know our ABCs next time won't you sing with meeeee

* fix another test

* another driveby change

* be less strict parsing custom definitions

* fix(definitions): load custom definitions

---------

Co-authored-by: ze0s <ze0s@riseup.net>
2023-11-18 15:41:39 +01:00
Daniel Williams
f59e133398
feat(indexers): SubsPlease parse title (#1170)
* Update subsplease.yaml regex to parse title

This change aims to parse any multiple-word title to populate the title macro.

* Update subsplease.yaml also captures title for batch releases

I replaced the (.*?) part with ([^-()]+), which matches one or more characters that are not dashes or parentheses. This will stop at either a dash - or an opening parenthesis (

* Parsing title by matching a sequence instead of using a character class

Using whitespace - (dash) whitespace numerical or whitespace ( (open bracket) numerical to end the title pattern

* specify character amount of `\d` token

---------

Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
2023-10-14 12:11:23 +02:00
martylukyy
1900bf7742
fix(indexers): SubsPlease parse line pattern (#1152) 2023-09-26 20:27:21 +02:00
Kyle Henfrey
ccd823e118
feat(indexers): IRC do not require auth for irc.rizon.net (#1137)
* remove nickserv fields
add tests to subsplease
add infourl to subsplease

* re-add nickserv but set not required

* re-add rss since SubsPlease has RSS on site

---------

Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
2023-09-22 18:31:37 +02:00
martylukyy
c57c6ce86f
fix(indexers): subsplease match batch (#624) 2023-01-06 20:16:03 +01:00
martylukyy
b9e9b49821
fix(indexers): subsplease baseurl (#618) 2023-01-06 14:24:48 +01:00
ze0s
25a165b764
feat(indexers): add support for optional baseurl override (#551)
* feat(indexers): optional baseurl override

* feat(indexers): update baseUrl parsing

* refactor(indexers): BREAKING move parse to IRC struct

* Move Parse as part of IRC struct from Indexer
* Updated definitions
* Build torrentUrl in stages
* Use new url.JoinPath to build torrentUrl
* Update tests

* refactor(indexers): select option obj

* refactor(indexers): make backwards compatible
2022-12-03 15:40:45 +01:00
ze0s
4bf023d030
feat(irc): support optional SASL and NickServ auth (#511)
* 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
2022-10-27 22:25:58 +02:00
varoOP
c5d30c0515
feat(indexers): add subsplease (#373) 2022-07-28 15:01:33 +02:00