Commit Graph

89 Commits

Author SHA1 Message Date
Diego Heras aca4a16bae
ci/cd: fix whitespaces (#11749) 2021-05-16 20:13:54 +02:00
Alessio Gogna 993116c96f
[enhancement] Handle optional field without exceptions (#11669)
In the optional fields parsing, it is no exceptional case that the selector finds nothing.
Return null value instead throwing exception increase the performance.
2021-05-04 07:59:37 +12:00
XYZJR b7341b20f4
Add all configuration item types to GetBaseTemplateVariables (#11332) resolves #11328 2021-03-18 02:01:58 +13:00
XYZJR eaf0513605
Core: rewrite of configuration items. Resolves #2114 (#11104) 2021-03-17 12:29:26 +13:00
Diego Heras 6e527823b5
core: clean up cardigann parser guid #10092 (#10609) 2020-12-22 18:49:59 +01:00
Diego Heras de8f36bf8c
core: cardigann add headers in test and download requests (#10590)
* Allow GoTemplates in search.headers
* Send search.headers in login.test and download requests
2020-12-20 19:56:19 +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
Garfield69 c854a91b99 cardigannindexer: add tmdbid as auto-optional field 2020-11-13 08:38:25 +13: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 ed9d0a8328
core: remove recaptcha legacy code. resolves #8268 (#10111) 2020-11-05 15:19:09 +13:00
Diego Heras f10d132e54
core: add infohash parameter in cardigann definition (#10091)
* core: add infohash parameter in cardigann definition

#8590 #10087

* linuxtracker: refresh categories

add date TZ
code tidy
2020-11-04 09:45:02 +13:00
Diego Heras 13f0698388
core: remove some cardigann traces (#10085) 2020-11-03 07:21:46 +01:00
Alexandre Beloin 4b743e4040
Cardigann: add check for redirect when pulling login page (#9984) 2020-10-28 10:00:18 +13:00
Diego Heras 8bc765eaae
core: code cleanup. part 2 (#9909) 2020-10-19 23:19:10 +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 c991d27b85
core / firebit: fix download referer. resolves #9758 (#9789) 2020-10-08 22:21:40 +02:00
Garfield69 aef813b8e2 cardigann: drop default MR and MST
only some private (and a few semi-private) sites have requirements for ratio and seedtime in which case they are specified in their respective indexers.
Public site have not such requirements.
2020-09-27 11:19:54 +13:00
ngosang 621a47338d core: refactor http webclient part 16 #8529
Rename RequestWithCookiesAsync method
2020-09-21 19:06:32 +02:00
Cory ac0ba0f9b1 core: refactor http webclient part 13 #8529 (#8941)
Merge string/byte request code
2020-09-21 18:13:30 +02:00
Cory 67c7b4ca70 core: refactor http webclient part 12 #8529 (#8939)
Merge web results classes into single class and update usages
2020-09-21 18:13:27 +02:00
Cory 125298425a core: refactor http webclient part 10 #8529 (#7729)
Move WebResult String and Byte properties to base class
2020-09-21 18:13:19 +02:00
Cory 4dd6da4f6e core: refactor http webclient part 4 #8529 (#7653)
Change byte result name to ContentBytes in preparation for merge
2020-09-21 18:12:00 +02:00
Cory 4531a876eb core: refactor http webclient part 2 #8529 (#7654)
Use base class when not looking at content variable
2020-09-21 18:11:53 +02:00
Cory d760350dc0 core: refactor http webclient part 1 #8529 (#7652)
Rename WebClientStringResult.Content to WebClientStringResult.ContentString
2020-09-21 18:11:48 +02:00
ngosang 1271ecaa4c Revert "core: refactor http webclient part 1 #8529 (#7652)"
This reverts commit 0bdcfd1e7b.
2020-09-21 08:04:26 +02:00
ngosang 9c492c5dcb Revert "core: refactor http webclient part 2 #8529 (#7654)"
This reverts commit 7c071b32ee.
2020-09-21 08:04:21 +02:00
ngosang ede3f77e6a Revert "core: refactor http webclient part 4 #8529 (#7653)"
This reverts commit c605c9a7ae.
2020-09-21 08:04:11 +02:00
ngosang 2d0b378545 Revert "core: refactor http webclient part 10 #8529 (#7729)"
This reverts commit 3a0ece162f.
2020-09-21 08:03:14 +02:00
ngosang a8d055f0d5 Revert "core: refactor http webclient part 12 #8529 (#8939)"
This reverts commit 22bced9ca3.
2020-09-21 08:02:58 +02:00
ngosang ca61f965e9 Revert "core: refactor http webclient part 13 #8529 (#8941)"
This reverts commit 4d63fa81d5.
2020-09-21 08:02:53 +02:00
Cory 4d63fa81d5 core: refactor http webclient part 13 #8529 (#8941)
Merge string/byte request code
2020-09-19 18:43:06 +02:00
Cory 22bced9ca3 core: refactor http webclient part 12 #8529 (#8939)
Merge web results classes into single class and update usages
2020-09-19 18:40:08 +02:00
Cory 3a0ece162f core: refactor http webclient part 10 #8529 (#7729)
Move WebResult String and Byte properties to base class
2020-09-19 18:39:12 +02:00
Cory c605c9a7ae core: refactor http webclient part 4 #8529 (#7653)
Change byte result name to ContentBytes in preparation for merge
2020-09-19 18:36:33 +02:00
Cory 7c071b32ee core: refactor http webclient part 2 #8529 (#7654)
Use base class when not looking at content variable
2020-09-19 18:35:26 +02:00
Cory 0bdcfd1e7b core: refactor http webclient part 1 #8529 (#7652)
Rename WebClientStringResult.Content to WebClientStringResult.ContentString
2020-09-19 18:33:39 +02:00
Garfield69 1aa5c18f0c cardigann: debug the requestblock link 2020-09-19 17:05:43 +12:00
Diego Heras 652dac4163
core: change seeds/leechers type to long. resolves #6558 (#9505)
There are several sites with wrong seeds/leechers like 4,294,967,295
We can fix that by increasing the variable to long (to avoid casting error)
and then set a valid value (0 seeds/leechers)
2020-09-12 16:32:38 +02:00
Qstick f8ad109b78
cardigann: Add TVDbId, TMDbId Query Support (#9102) 2020-08-17 10:07:04 +12:00
ta264 df91bd4573
Add support for book-search (#9306) 2020-08-17 09:44:12 +12:00
ta264 37a9d6b393
Fixed: Unset variable in CardigannIndexer if it's missing in the row (#9305) 2020-08-12 18:01:59 +12:00
Diego Heras 6156ad0cd5
core: allow renaming & merging of trackers with config (part 1 #8355) (#8608)
core: allow renaming & merging of trackers with config (part 1 #8355) (#8608)

* rename site field to id in yaml indexers
* add id field in c# indexers
* use id field instead of class name in c#
2020-05-11 21:59:28 +02:00
Cory c9aec23304
Cardigann: Add .Today.Year to template variables. Resolves #8258 (#8269) 2020-04-20 12:16:19 +12:00
Cory fa0842c1c8
Cardigann: Add template functions eq/ne (#8214) 2020-04-17 08:52:54 +12:00
Cory 0fc36236cd
Cardigann: Add query url separator option (#8128) 2020-04-12 19:55:56 +12:00
krt- f355db6788
CardigannIndexer: Fix andmatch filter to respect keywordsfilters resolves #7988 (#8007) 2020-04-11 14:02:00 -05:00