Commit Graph

17 Commits

Author SHA1 Message Date
Bogdan 10b3d84482
indexers: filter invalid releases without categories or size (#15213)
* indexers: filter invalid releases without categories or size

* Update BaseIndexer.cs

---------

Co-authored-by: garfield69 <garfield69@outlook.com>
2024-04-01 03:46:50 +03:00
Stepan Goremykin 97c4a976c7
Use Array.Empty and fix a few multiple enumerations (#14194) 2023-04-02 18:57:30 +03:00
Bogdan 2d3a72b433
indexers: move setting capabilities to methods (#14147) 2023-03-10 13:20:29 +02:00
Bogdan c7e9d4e72b
indexers: set indexer details as properties (#14131) 2023-03-09 16:06:12 +02:00
Diego Heras 034ca38368
core: clean up indexer manager code (#13867) 2023-01-07 17:18:24 +01:00
Diego Heras 30b30e8861
tests: Add basic test for Cardigann HTML (#12581) 2021-11-17 23:04:58 +01:00
Diego Heras aca4a16bae
ci/cd: fix whitespaces (#11749) 2021-05-16 20:13:54 +02:00
Alessio Gogna 66bec102db
[Feature] Filter Meta Indexer by tag and by language (#11662). resolves #8884 resolves #7170 resolves #4787 resolves #2185
* bump to 0.18.*

Also partially addresses https://github.com/Jackett/Jackett/issues/661 (if user adds `enabled` and `disabled` tags).

Co-authored-by: garfield69 <garfieldsixtynine@gmail.com>
Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
2021-05-08 21:24:18 +01:00
Diego Heras 69125add3e
core: redo search cache from scratch. resolves #10382 (#10447)
In simple words, when you make a request in Jackett, the results are saved in memory (cache). The next request will return results form the cache improving response time and making fewer requests to the sites.
* We assume all indexers/sites are stateless, the same request return the same response. If you change the search term, categories or something in the query Jackett has to make a live request to the indexer.
* There are some situations when we don't want to use the cache:
** When we are testing the indexers => if query.IsTest results are not cached
** When the user updates the configuration of one indexer => We call CleanIndexerCache to remove cached results before testing the configuration
** When there is some error/exception in the indexer => The results are not cached so we can retry in the next request
* We want to limit the memory usage, so we try to remove elements from cache ASAP:
** Each indexer can have a maximum number of results in memory. If the limit is exceeded we remove old results
** Cached results expire after some time
* Users can configure the cache or even disable it
2020-12-11 23:14:21 +01:00
Diego Heras 11e4143841
core: add more unit tests (#10107) 2020-11-04 21:56:54 +01:00
Diego Heras 14fdea164c
core: generate magnet link from infohash and vice versa. resolves #8590 (#10087)
* global list of public trackers
* infohash => magnet link (only in public trackers)
* magnet link => infohash
2020-11-02 17:43:13 +01:00
Diego Heras 6413ad8fd4
core: refactor results post processing: filter and fixing results (#10082) 2020-11-02 14:20:13 +01:00
Diego Heras 1d7ea48505
core: add custom cats in indexers with string categories. resolves #9746 (#10060)
* When category ids in the indexer are "strings" we create a unique hash to make it compatible with Torznab
* This PR also fix several issues related to custom cats
2020-11-02 13:42:00 +13:00
Diego Heras 7a2e52659a
core: rewrite category code from scratch. resolves #8049 (#10031)
* Core: Categories are stored in a real tree
* Sorting: First Torznab categories sorted by Id and then custom cats sorted by Name
* Filtering: Results with child category are not removed when searching by parent category. Details in #8049
* Jacket UI: Add parent category when at least one child category exists
* Torznab (caps): Remove non existent children categories. Remove duplicated categories. Details in #10006
2020-11-01 12:07:24 +01:00
Diego Heras e8c0ca31cc
core: fix disabled unit test (#10028) 2020-10-31 22:11:02 +01:00
Diego Heras b63519b64b
core: add category filter tests (#10024) 2020-10-31 01:51:19 +01:00
Diego Heras 15ea7ed9f9
core: rearrange test classes (#10023) 2020-10-31 01:12:35 +01:00