Commit Graph

227 Commits

Author SHA1 Message Date
Diego Heras bd13e1256f
core: Implement /health endpoint (healthcheck). Resolves #12784 (#12798) 2022-01-09 23:15:50 +01:00
Diego Heras 1f0751f634
core: make FlareSolverr Max Timeout configurable. resolves #12750 (#12795) 2022-01-09 19:38:14 +01:00
Diego Heras 03c9e3036c
core: Update .Net 6.0 (#12562) 2021-11-17 18:06:27 +13:00
Diego Heras 2b1f138d6f
Update AutoMapper dependency (#12568) 2021-11-16 19:17:10 +01:00
Diego Heras 64a78c4965
Fix Docker detection (#12565) 2021-11-16 17:42:38 +01:00
Diego Heras b492c24647
Fix typo in SecurityService (#12563) 2021-11-16 14:06:07 +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
Casper Verswijvelt e964a983c5
Use 'Tracker[]' parameter only as secondary filter for CurrentIndexer (#10266) 2021-03-15 19:07:47 +13:00
Michaël Fortin 6fba522075
Fix BlackholeController exception when torrent name is very long (#10889) 2021-01-25 19:50:31 +01:00
Diego Heras 456338399b
core: remove rss feed image (legacy code) #324 (#10837) 2021-01-17 13:42:52 +01:00
Diego Heras edce56f363
core: remove unused cli argument -j (ProxyConnection). resolves #9467 (#10608) 2020-12-22 18:37:16 +01:00
Diego Heras 5a6fe668d6
core: validate flaresolverr url. resolves #10527 (#10571) 2020-12-19 20:13:23 +01:00
Diego Heras ebe05267b2
core: FlareSolverr integration. Bypass Cloudflare protection (#9028) 2020-12-13 21:42:10 +01:00
Diego Heras 13baa27656
core: fix .net core 5.0 warnings. resolves #10433 (#10485) 2020-12-12 21:38:33 +01:00
Diego Heras f8d3781f7a
core: search cache optimizations #10382 (#10484)
* Empty cache when user changes proxy configuration
* Reduce the CPU needed to clean up results that exceed the limit per indexer
2020-12-12 18:44:08 +01:00
Diego Heras 443057f156
core: remove .net core 5.0 compilation warnings #10433 (#10478) 2020-12-12 01:19:51 +01:00
Diego Heras 0e12f35082
core: remove legacy cryptographic code. #10433 (#10477)
Legacy code was deprecated on May 30, 2018
e73ae99e38
2020-12-12 01:09: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
airhawk777 65ca4d7478
Update to .NET 5 (#10346)
* Update to .NET 5

.NET 5 brings many performance (especially regex) improvements
https://devblogs.microsoft.com/dotnet/announcing-net-5-0/

Can look at bringing the packages upto date and using a single file executable in a future PR if the maintainers are interested

* Dotnet restore before building

* Restore on Windows only

* Out of ideas

* Update framework for windows specific apps

* Don't upgrade Microsoft.Extensions.Configuration

* drop mono from the dotnet linux build instructions

* Fix logic to get app runtime

* readme: add windows .net prereq link

* Update README.md

* azure-pipeline: bump minorversion to 17

Co-authored-by: garfield69 <garfieldsixtynine@gmail.com>
Co-authored-by: Diego Heras <ngosang@hotmail.es>
Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
2020-12-08 21:10:34 +13:00
Diego Heras 38f09900ca
core: fix version number to match github release tag. resolves #10249 (#10413) 2020-12-07 00:14:23 +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 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 fa317b1329
core: disable debug log level when the server restarts. resolves #8315 (#9665) 2020-09-27 01:19:46 +02:00
Diego Heras 41afd9f61b
core: add an option to disable proxy. resolves #8138 (#9660) 2020-09-26 22:28:29 +02:00
Diego Heras 7279edf354
core: fix ignoresslerrors cli option (#9657) 2020-09-26 19:50:58 +02:00
Diego Heras b212169dc2
core: code cleanup, exception messages (#9631) 2020-09-24 22:02:45 +02:00
ngosang 5ad1c9c87c core: refactor http webclient part 15 #8529
Fix Mono 5.x and Automapper bugs
2020-09-21 18:21:48 +02:00
ngosang 27fa37e220 core: refactor http webclient part 14 #8529
Remove old http webclients references
2020-09-21 18:13:34 +02:00
Cory 41dd2dcad5 core: refactor http webclient part 8 #8529 (#7725)
Replay Remove automapper commit after rebase
2020-09-21 18:13:12 +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 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 ede3f77e6a Revert "core: refactor http webclient part 4 #8529 (#7653)"
This reverts commit c605c9a7ae.
2020-09-21 08:04:11 +02:00
ngosang 08c41c6daa Revert "core: refactor http webclient part 8 #8529 (#7725)"
This reverts commit 1184a9285a.
2020-09-21 08:03:23 +02:00
ngosang 9d5636cc19 Revert "core: refactor http webclient part 14 #8529"
This reverts commit 4b983162fc.
2020-09-21 08:02:41 +02:00
ngosang 4b983162fc core: refactor http webclient part 14 #8529
Remove old http webclients references
2020-09-19 19:16:13 +02:00
Cory 1184a9285a core: refactor http webclient part 8 #8529 (#7725)
Replay Remove automapper commit after rebase
2020-09-19 18:38:21 +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 0bdcfd1e7b core: refactor http webclient part 1 #8529 (#7652)
Rename WebClientStringResult.Content to WebClientStringResult.ContentString
2020-09-19 18:33:39 +02:00
Diego Heras aa6d8962de
core: update dependencies (#9527) 2020-09-14 00:56:07 +02:00
Diego Heras 9c08612c04
core: hide deprecation warning (#9526) 2020-09-14 00:35:48 +02:00
Diego Heras b4c097fd97
core: show docker image version in the startup traces (#9521)
https://github.com/linuxserver/docker-jackett/pull/105
2020-09-13 22:46:16 +02:00
Qstick f8ad109b78
cardigann: Add TVDbId, TMDbId Query Support (#9102) 2020-08-17 10:07:04 +12:00
Diego Heras 878aa1aab9
core: fix magnet link encoding. resolves #8889 (#9020) 2020-06-21 09:13:22 +02:00
Diego Heras 2c4ca6be1f
core: update jackett dependencies (#8977) 2020-06-14 13:25:51 +02:00
Diego Heras af9224ccbe
core: improve updater to detect errors. resolves #8631 (#8661) 2020-05-16 11:43:42 +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
Diego Heras 47454e4c1e
test: add unit test to validate all cardigann definitions (#8165)
* test: add unit test to validate all cardigann definitions

Error while parsing Cardigann definition 4thd.yml
YamlDotNet.Core.YamlException: (Line: 13, Col: 9, Idx: 240) - (Line: 13, Col: 9, Idx: 240): Exception during deserialization
 ---> System.Runtime.Serialization.SerializationException: Property 'dec' not found on type 'Jackett.Common.Models.CategorymappingBlock'.
2020-04-13 09:34:45 +02:00
Diego Heras 5d47cf060a
core: fix links in rss, torznab and potato feeds (#8141) 2020-04-12 18:06:39 +02:00
Cory 6dc00de864
Re-run dotnet format and enable style enforcement. (#8053) 2020-04-07 11:17:17 -05:00
Diego Heras 484cc35577
core: remove unused imports (#8022) 2020-04-04 19:56:18 +13:00
Cory d7dddf6009
core: remove string extensions in favor of explicit conversion (#7839) 2020-03-24 21:39:38 -05:00
junglebus 7a35701d12
Core: Package Update (#7800) 2020-03-23 04:05:17 +13:00
Diego Heras 34dcdd3332
core: add trace running in docker (#7565) 2020-03-11 19:02:55 +13:00
Cory 3f9d182083
core: Remove warning suppression (#7513) 2020-03-06 14:57:59 +13:00
Diego Heras e55e92f9ac
Core: Fix line endings to match style guide(#7476) 2020-03-03 10:28:26 -06:00
Diego Heras b944993733
Remove CsQuery and use AngleSharp instead. Closes #7292 (#7404) 2020-03-02 07:58:14 +13:00
junglebus 1fb77a6334
Package update (#7413)
All packages except Automapper are now on latest versions
2020-03-01 15:58:46 +13:00
Cory 889a8da4e5
Convert functions and properties to expression bodies when able (#7312)
Convert functions and properties to expression bodies when able
2020-02-25 10:08:03 -06:00
Diego Heras 6067a4ff73
core: add logger trace with proxy information (#7306) 2020-02-24 09:39:49 +13:00
Diego Heras 8c344b2917
core: reduce log traces in info level. add start/stop log traces (#7305) 2020-02-24 09:38:59 +13:00
Patrick Koenig d5724f2f63
Change cookie SameSite from None to Lax (#7269) 2020-02-22 08:02:28 +13:00
junglebus 0d58b2d63f
Don't check cert store on Mono 6 (#7260) resolves #7223 2020-02-21 07:55:46 +13:00
Cory 348dddfbee
core: Apply declarations styles (#7166) 2020-02-11 11:16:19 +13:00
Cory 98541ac6f8
core: Sort and remove usings (#7159) 2020-02-10 07:08:34 +13:00
Cory c12da520a4
Run dotnet format on solution (#7145) 2020-02-09 15:35:16 +13:00
Jonas Dellinger 1715f0fda4
core: API - "configured" parameter (#7120)
Add support for a "configured" parameter in the API 2.0. Only return configured indexers if true.
2020-02-07 07:22:46 +13:00
Diego Heras 8744fd3fa1
core: fix blackhole download for relative uris. resolves #5935 (#7057) 2020-02-02 07:29:17 +13:00
junglebus e695f90c80 Remove COM reference for .NET Core (#6975)
* Remove COM reference for .NET Core

Removing only COM reference to get closer to having Jackett to run on .NET Core for Windows

* Handle resources

https://github.com/microsoft/msbuild/issues/4704

* Remove GenerateResourceUsePreserializedResources

* Remove System.Resources.Extensions
2020-01-20 06:50:12 +13:00
Diego Heras 7a1c8f9419 core: add rss url decode in download controller. resolves #4617 #6589 #4760 #6397 #5752 (#6936) 2020-01-13 07:14:36 +13:00
junglebus dc87b36ae0 Package update (#6916)
4 packages updated -> Jackett is now using the latest version of all packages except for AutoMapper -> Will have a go at that another day -> There is a few changes needed

-Minor code changes made to support newer version of YamlDotNet and BencodeNET
-Logic update for AssemblyName as I've been experiencing restore 'weirdness'  https://stackoverflow.com/questions/208084/how-to-use-a-different-assembly-name-for-different-configurations
2020-01-12 07:04:24 +13:00
morpheus133 a89c7dedeb ImdbTVSearchSupport added for c# based indexers (#5791) 2020-01-09 16:32:02 +13:00
junglebus d4f873e46f Update to .NET Core 3.1 (#6857)
Minor update from .NET Core 3.0. .NET Core 3.1 is the LTS version
2020-01-08 20:51:00 +13:00
Diego Heras 45b205ddc3 core: security fix, authorization first in download / blackhole links (#6825) 2020-01-05 19:41:01 +13:00
Diego Heras 7e93a86ae0 core: fix magnet link encoding. resolves #5372 #4761 (#6824) 2020-01-05 19:31:32 +13:00
Garfield69 d44bc93776 Revert "core: fix login redirect with nginx + admin password. resolves #4765 (#6561)"
This reverts commit 642bed1ef4.
2019-12-11 11:49:51 +13:00
Diego Heras 642bed1ef4 core: fix login redirect with nginx + admin password. resolves #4765 (#6561) 2019-12-10 08:30:12 +13:00
Garfield69 eb9bfe943d drop IgnoreSslErrors=true error msg. resolves #6229 2019-10-23 10:40:03 +13:00
junglebus 53a92446f8 Restart webhost if the user changes proxy settings resolves #6215 (#6216) 2019-10-20 15:41:51 +13:00
junglebus 64abc61893 Update to .NET Core 3.0 (#6151)
* Update to .NET Core 3.0

Updated Jackett so that it runs on .NET Core 3.0 now

.NET Core 3.0 brings the following benefits https://devblogs.microsoft.com/dotnet/announcing-net-core-3-0/
One of the benefits is the ability to create single file executables. I haven't enabled this yet, but its only a one line change to turn it on (would likely also require some changes to the updater).

This means that builds for LinuxAMDx64, LinuxARM32, LinuxARM64 and macOS will now run on .NET Core 3.0 instead of 2.2. Windows and Mono remain on full framework. Once .NET Core 3.1 is released (November) I'll look to moving Windows over to .NET Core as well

Tested on
-Windows 10 x64
-Debian running Jackett with Mono
-Debian running Jackett standalone (.NET Core)
2019-10-15 06:51:33 +13:00
Axel Antoine f05e1321b5 Fix magnet link in the blackhole controller. resolves #5843 (#5901) 2019-08-24 19:08:37 +12:00
flightlevel f86e8dd5b6 Limit IMDB searches to movies
#5124
2019-05-11 13:27:25 +10:00
flightlevel e051c13f3a Package update 2019-05-06 19:41:16 +10:00
flightlevel 02546877fd Inform Mono users that Mono is no longer required 2019-05-01 20:15:26 +10:00
flightlevel 4edcda8351 Make httpclient2netcore the default 2019-04-29 20:30:27 +10:00
flightlevel 0d4c8ba860 Inform users that Mono is no longer needed
Note: Not enabled currently, will enable at a later date
2019-04-27 20:59:33 +10:00
flightlevel fad453cf0e Add httpclient2netcore 2019-04-27 20:27:11 +10:00
flightlevel 709cafda62 Enable workstation garbage collection
Attempting to limit the amount of memory used by Jackett for users with high core CPUs  https://blog.markvincze.com/troubleshooting-high-memory-usage-with-asp-net-core-on-kubernetes/
2019-04-19 11:41:47 +10:00
flightlevel 08ab66a447 Package update 2019-03-25 19:27:28 +11:00
flightlevel a25f2016dc Make Mono.Posix usage conditional on .NET Core 2019-03-06 21:16:20 +11:00
flightlevel 6ac9555cb5 Make parameter type HttpRequest
Code tidy
2019-03-06 20:11:50 +11:00
flightlevel caf583a684 Package update 2019-03-03 15:23:33 +11:00
flightlevel a90ed2601a Add variants to the updater 2019-01-21 21:18:59 +11:00
flightlevel b67f59e865 Create separate tasks for each NetCore variant 2019-01-20 09:56:38 +11:00
flightlevel 70666c459b Change assembly name to jackett for Non-Windows .NET Core 2019-01-20 09:54:11 +11:00
flightlevel ab9d8f6403 Package update 2019-01-10 20:12:57 +11:00
flightlevel ef162f07e5 Ignore NU1605 2018-12-23 22:11:47 +11:00