Commit Graph

46 Commits

Author SHA1 Message Date
Crys c332129ffd
ncore: change domain *.pro (#10955) 2021-01-29 00:27:52 +00: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 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 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 5d1b84f215
assorted c#: enable music and book search in several trackers (#9910) 2020-10-20 13:38: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
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 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 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 0bdcfd1e7b core: refactor http webclient part 1 #8529 (#7652)
Rename WebClientStringResult.Content to WebClientStringResult.ContentString
2020-09-19 18:33:39 +02:00
morpheus133 0c1bc1ab3b
ncore: Correct link seen in name (#8633) resolves #8630 2020-05-15 10:30:14 +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 162ad104ef
ci/cd: exclude indexers from code coverage (#8448) 2020-05-03 18:35:52 -05:00
morpheus133 cd4e5de8f4
Add support of IMDBid search for ncore indexer (#7847) 2020-04-17 17:45:26 -05:00
Diego Heras c07c4f0682
Ncore: fix error caused by #7378 Resolves #7444 (#7470) 2020-03-03 10:34:46 +13:00
Cory 3aedbc7baf
Ncore: Fix parse errors caused by #7378 Resolves #7444 (#7445) 2020-03-02 18:46:08 +13:00
Diego Heras 3f19e6becf
ncore: fix error caused by #7378 Resolves #7430 (#7431) 2020-03-02 08:02:25 +13:00
Cory e3bb63aac4
Convert NCore to AngleSharp (#7378) 2020-03-01 08:03:51 +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 c12da520a4
Run dotnet format on solution (#7145) 2020-02-09 15:35:16 +13:00
Diego Heras 26564cdfbd set default value for MinimumRatio / MinimumSeedTime. resolves #6811 (#6921) 2020-01-12 07:07:19 +13:00
morpheus133 d7af20d4f6 ncore: add offset support (#4792) resolves #4778
* add offset support to ncore indexer
* small correction related to add .hun tag to torrents
* DivideByZeroException  at torrent_per_page
2019-03-01 07:23:00 +13:00
morpheus133 89eeee5939 Correction for #4199 (#4206)
After the last page a new link was appeared for premium action.
Now it will not parsed as page link
2018-11-23 12:01:39 +13:00
morpheus133 c846eb4330 Second part of correction #3997 (#4017)
- try/catch block for torrent parsing
Sonarr test button was failed because an invalid torrent.
2018-10-17 19:09:33 +13:00
kaso17 5b6d1ccc7b NCore: fix test (limit=0) 2018-10-15 17:17:42 +02:00
morpheus133 2a17783a9c - Add pagination support for ncore (#3943)
- Correct handling of Descriptions
- Add hun tag to torrent title if it contains hungarian audio but not visible in title
2018-10-10 06:30:00 +13:00
morpheus133 11c7015c17 NCore: fix title generation (#3270) 2018-06-22 16:12:22 +02:00
kaso17 5ee6833610 NCore: fix else 2018-06-14 17:53:46 +02:00
morpheus133 c998ba3762 Additional fix for #1450 (#3227)
* Additional fix for #1450
Sonarr is search for a tilte if the result title is different it reject it.
So it is not enough that Jackett give the result it must give with the same language.

Workaround create a new title from the original one and from the title.
It also make some fine tunning:
if title not contains the language we add it from category

* Make decision safer
2018-06-14 17:44:22 +02:00
kaso17 2492f1b797 NCore: add comment 2018-06-11 17:31:46 +02:00
kaso17 d6781f67b2 NCore: improve search fix 2018-06-11 17:28:24 +02:00
morpheus133 2e0c22eb6d NCore: fix for #1450 (#3220)
Some workoround to "Ncore - not forward all search results to Sonarr, Radarr"
In case of TV shows if nothing is founded, retry the search without SxxExx after the show name.
This will list all torrent also if their title or description are changed.
Than add the result only if it contains the skipped SxxExx
2018-06-11 17:15:21 +02:00
flightlevel 3e5e48c3a0
Change namespace to Jackett.Common (#2691)
Really hope I don't break anything with this
Went to have a go at .NET core and it just became too confusing for me with 'Jackett' namespace referring to both Jackett.Common and Jackett
2018-03-10 19:05:56 +11:00
Nathan Holland 571c52a0f2 Feature/netcore preparation (#2072)
* Use platform detection that works on mono 4.6+

* Move to use package reference for restoring nuget packages.

* DateTimeRoutines does not have Nuget packages that support .NET Standard (and therefore .NET Core). We will have to include them for now until we can get rid of this dependency.

* Start spliting some interfaces into their own files - this will help by allowing us to split them out in the future into a seperate project so the actual implementations can stay within their respective architectures when required

* Move out common libraries

* Few more tidy up tasks to get things working with .NET Standard

* Restructure the solution layout

* Encoding work to reduce rework later on platforms without Windows codepages (or require compliance with RFC1345)

* Move folder structure around to have more natural layout of the solutions

* DI server configuration to get rid of "temporary" hack and dependency circle for serverservice

* Make all encoding consistent to match the expected encoding casing for earlier versions of mono.
2017-11-05 20:42:03 +11:00
Renamed from src/Jackett/Indexers/NCore.cs (Browse further)