Commit Graph

89 Commits

Author SHA1 Message Date
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 dcf339a6eb
core: remove default categories in c# trackers (#9831) 2020-10-13 22:17:26 +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
Diego Heras a1108bc5a2
core: fix invalid characters in xml/rss. resolves #9118 (#9636) 2020-09-25 02:40:13 +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
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
Diego Heras aa6d8962de
core: update dependencies (#9527) 2020-09-14 00:56:07 +02:00
Diego Heras 2c4ca6be1f
core: update jackett dependencies (#8977) 2020-06-14 13:25:51 +02:00
morpheus133 cd4e5de8f4
Add support of IMDBid search for ncore indexer (#7847) 2020-04-17 17:45:26 -05: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 9cbc78b1c2
core: fix cookie parsing (part 2) (#8150)
* core: fix cookie parsing (part 2)

After fixing cookie storage in #8133 I noticed that I still have a lot of '.json.bak' files in the Jackett configuration folder. After deleting them they were created again in each request. The cause was we were parsing bad the cookies with '=' character in the value. Most Cloudflare cookies include if so we were sending bad cookies and solving the callenge in each request.

This PR should increase performance in several ways: we are not solving the challenge again (it takes time), we are not making extra requests and we are not updating the Jackett configuration in each request (both files '.json' and '.json.bak').

Tested with the client HttpWebClient2NetCore only. Please do some tests with the site 1337x.
2020-04-13 06:22:50 +02:00
Cory 937aa6b370
Add multi value processing to GetQueryString (#7915) 2020-04-09 23:18:10 -05:00
Cory 6dc00de864
Re-run dotnet format and enable style enforcement. (#8053) 2020-04-07 11:17:17 -05:00
junglebus 7a35701d12
Core: Package Update (#7800) 2020-03-23 04:05:17 +13:00
junglebus 38fddab2ad
Pipeline: Add code coverage (#7799) 2020-03-22 18:40:58 +13:00
Cory a89246c9a7
core: improve date parsing for today/yesterday/tomorrow. resolves #7701 (#7704) 2020-03-18 21:11:48 +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
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
junglebus 67750982bc
core: Allow unit tests to run in non-Windows environments (#7022) 2020-02-06 15:21:48 +13:00
junglebus 620a09858c Make tests run on .NET Core as well (#6997)
* Make tests run on .NET Core as well

* Only run net461 tests against full framework build

* Add support for running full framework tests on linux
2020-01-23 06:42:23 +13:00
junglebus e4a511347c Minor csproj tidy up (#6878) 2020-01-10 07:18:08 +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
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
flightlevel 08ab66a447 Package update 2019-03-25 19:27:28 +11:00
flightlevel ca4f08a030 Package update 2019-03-13 20:32:48 +11:00
flightlevel caf583a684 Package update 2019-03-03 15:23:33 +11:00
flightlevel 7a9adc283b Update to .NET Core 2.2 2018-12-23 21:54:02 +11:00
flightlevel 7a5407d2c4 Revert "Package update"
This reverts commit eaf53e0f4c.
2018-12-23 21:25:13 +11:00
flightlevel eaf53e0f4c Package update 2018-12-23 21:16:09 +11:00
flightlevel cc3ebbe1ae Package update 2018-09-15 15:28:50 +10:00
flightlevel 795c896abe Tests: Remove dependency on Jackett.dll 2018-08-18 17:27:35 +10:00
flightlevel 7d759917e6 Package updates 2018-08-14 20:02:54 +10:00