Commit Graph

25 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 c7e9d4e72b
indexers: set indexer details as properties (#14131) 2023-03-09 16:06:12 +02:00
Bogdan eb63aecf8b
apisearch: parse season/episode only if it's at the end of the query (#14007) 2023-02-13 12:31:37 +02:00
ilike2burnthing c8ae183d68
cardigann: add tvmaze support (#13389)
Follow up to:
#13385
#13387

Includes a couple of fixes for the latter.
2022-07-21 17:43:56 +01:00
ilike2burnthing e34e70040b
core: enable trakt and douban queries (#13387)
related #13385
2022-07-21 10:59:02 +01:00
Diego Heras aca4a16bae
ci/cd: fix whitespaces (#11749) 2021-05-16 20:13:54 +02:00
Diego Heras 456338399b
core: remove rss feed image (legacy code) #324 (#10837) 2021-01-17 13:42:52 +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 2030d9cf13
core: follow torznab specs about categories. resolves #10120 (#10147) 2020-11-08 23:27:54 +01:00
Diego Heras 2ea22af9ef
core: rename comments field to details #10092 (#10135) 2020-11-08 15:11:27 +13:00
Diego Heras c5dd37b836
core: rename banner field to poster #10092 (#10134) 2020-11-08 12:43:33 +13:00
Diego Heras 2cf78fe4fd
core: add missing torznab attributes. resolves #10118 (#10122)
* add coverurl
* rename tvdb and tmdb
2020-11-06 22:03:25 +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 15ea7ed9f9
core: rearrange test classes (#10023) 2020-10-31 01:12:35 +01:00
Diego Heras 767700d6bb
core: categories cleanup (#10006)
* core: categories cleanup
* swap categories 2050 Movies/BluRay / 2060 Movies/3D
* swap categories 6050 XXX/Pack / 6070 XXX/Other
* swap categories 7010 Books/Mags / 7020 Books/EBook / 7030 Books/Comics
* category validation is case sensitive
* renamed some categories to follow Newznab specs
2020-10-29 08:00:48 +13:00
Diego Heras 861655395b
core: move categories code into a new class (#10005) 2020-10-27 22:17:03 +01:00
Diego Heras 74d08c937f
core: add more unit tests (#9907) 2020-10-19 22:22:41 +02:00
Diego Heras da0761406f
core: refactor book-search (#9897) 2020-10-19 21:26:43 +02:00
Diego Heras 1e42016546
core: refactor music-search (#9895) 2020-10-18 23:20:08 +02:00
Diego Heras 56a260f0d7
core: disable tv-search by default (#9893)
* Disable tv-search in music trackers
* Add TVRage search in Cardigann
2020-10-18 22:47:36 +02:00
Diego Heras 9cdad3de64
core: separate categories from movie-search (#9862)
* Categories and Torznab movie-search are separated
* Movie-search parameters are validated
* Fixed some bugs in Cardigann indexers
2020-10-18 19:26:22 +02:00
Diego Heras 886de069a7
core: add tests for torznab categories (#9821) 2020-10-12 23:07:21 +02:00
Diego Heras 2654ba808c
core: relocate test classes (#9817) 2020-10-12 13:35:09 +02:00