Commit Graph

92 Commits

Author SHA1 Message Date
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 e4d384158a Revert "core: refactor http webclient part 3 #8529 (#7659)"
This reverts commit 823ed8522c.
2020-09-21 08:04:15 +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 263b5b5433 Revert "core: refactor http webclient part 5 #8529 (#7661)"
This reverts commit 4a11a770d7.
2020-09-21 08:04:06 +02:00
ngosang db0d14822f Revert "core: refactor http webclient part 6 #8529 (#7690)"
This reverts commit 0f431471cd.
2020-09-21 08:04:02 +02:00
ngosang 5f457fcb29 Revert "core: refactor http webclient part 7 #8529 (#7689)"
This reverts commit 79fa3b9e0d.
2020-09-21 08:03:27 +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 94feb875f7 Revert "core: refactor http webclient part 9 #8529 (#7727)"
This reverts commit c8b91bece6.
2020-09-21 08:03:18 +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 90d31a9b8e Revert "core: refactor http webclient part 11 #8529 (#7728)"
This reverts commit e0ef6bc8a8.
2020-09-21 08:03:08 +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 e0ef6bc8a8 core: refactor http webclient part 11 #8529 (#7728)
Remove redundant NetCore classes and update client selection logic
2020-09-19 18:39:33 +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 c8b91bece6 core: refactor http webclient part 9 #8529 (#7727)
Move identical functions up to base WebClient instance. Replay #7691
2020-09-19 18:38:46 +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 79fa3b9e0d core: refactor http webclient part 7 #8529 (#7689)
Move web-result encoding logic to internal lazy evaluation
2020-09-19 18:37:56 +02:00
Cory 0f431471cd core: refactor http webclient part 6 #8529 (#7690)
Add implicit string result conversion
2020-09-19 18:37:27 +02:00
Cory 4a11a770d7 core: refactor http webclient part 5 #8529 (#7661)
Update standard clients to X509Certificate2
2020-09-19 18:36:56 +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 823ed8522c core: refactor http webclient part 3 #8529 (#7659)
Move encoding for results into BaseWebResult to prepare for class merging
2020-09-19 18:35:44 +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 c02a782b95
core: fix cloudflare iuam. resolves #8539 (#8617) 2020-05-13 00:04:47 +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
Diego Heras 4741902ade
core: remove unused classes (#8012) 2020-04-04 01:03:26 +02:00
Cory fc74b9ebcf
core: Remove non-null extention classes. (#7979) 2020-04-03 13:31:39 +13:00
Cory 06315470c4
core: remove enumerable related extensions (#7842) 2020-03-26 22:13:38 -05:00
Cory b5a6aab894
core: prefer object initializers (#7342) 2020-03-26 17:15:28 -05:00
Cory 8fbcbf25c3
core: Remove reflection in Nullable TryParse extension (#7844) 2020-03-26 06:56:22 +13:00
Cory 707298b0d7
core: Add enumerable extension FirstIfSingleOrDefault (#7837) 2020-03-26 06:54:51 +13:00
Cory d7dddf6009
core: remove string extensions in favor of explicit conversion (#7839) 2020-03-24 21:39:38 -05:00
Diego Heras 3f01a61510
core: update user-agent. resolves #7743 resolves #6099 (#7771) 2020-03-22 09:11:05 +13:00
Cory a89246c9a7
core: improve date parsing for today/yesterday/tomorrow. resolves #7701 (#7704) 2020-03-18 21:11:48 +13:00
Cory 5b6c9fee49
Fix proxy in all cases (#7631) resolves #7411
Co-authored-by: Diego Heras <ngosang@hotmail.es>
2020-03-14 17:53:16 -05:00
Diego Heras fe3fcda356
style: improve date utils code style (#7632) 2020-03-15 05:05:10 +13:00
Cory b9b10e4e91
core: Fix IsEmptyOrNull to return true when IsNull (#7338) resolves #7333 2020-02-27 07:24:36 +13:00
Diego Heras c339d54aed
core: fix compilation warning (#7329) 2020-02-26 08:48:27 +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 62769325b4
core: increase log size to 2 MB (#7303) 2020-02-24 09:33:51 +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
Diego Heras f770596354
core: fix form encoding. resolves #4346 resolves #3061 (#6994) 2020-02-08 19:03:03 +13:00
junglebus b9dbba280b
core: Add artifact name for Windows .NET Core (#7028) 2020-02-06 15:22:54 +13:00
Diego Heras 9565469559 core: fix fuzzytime parser regression #6845. resolves #6861 (#6871) 2020-01-09 15:19:37 +13:00
Diego Heras 603001a75c core: improve fuzzytime date parser to handle week days. resolves #6832 (#6845)
Previous version works well with dates like "Yesterday 15:30" or "Today 15:30"
Now it can handle "Monday 15:30" as well (means last Monday at 15:30 h)
2020-01-07 06:34:57 +13:00