Commit Graph

31 Commits

Author SHA1 Message Date
chibidev 9e3076dde6 I have a feeling I'm breaking the world and bringing the apocalypse
It's quite hard to encapsulate something this large. This refactor
contains multiple attacks on the current architecture and is changing
things that were probably created quite a while back then. Luckily this
was done in increments so it mustn't be that impossible to recall what
has been done. I just need to relax my memory a little bit.

So the basic idea was quite simple. Let's distingush metas and normal
indexers a little bit more. Both of them were originating from
BaseIndexer, however very little of the functionality was actually
shared between them. Actually quite a few things made it even harder to
implement a different kind of indexer, especially for a newcomer for
both Jackett and C#.

Then in order to further reduce whatever was encapsulated in
any kind of, a couple things had to be changed. Like CardigannIndexer,
which probably had quite a mindshift change. IndexerManager and the
configuration management were also encapsulated and refactored, and now
I have a feeling that although the code could be improved, at least the
responsibilities of services and what they actually do is now clearer.

Anyhow, it would be safe to assume that I will not be able to go
step-by-step and define everything that has been changed. I'm sorry.
2017-07-11 21:53:46 +02:00
chibidev 4a0d2dcc57 Feature/metaindexer torrent download improvement (#1517)
* Line endings...

* Improve download handling of torrents in metas

Until now, downloads were handled by metas, however they had to "guess"
which indexer the result was originating from and resolve to that
indexer. While this has been working without an issue, it really
shouldn't be considered stable.

Therefore indexers now link themselves to the results they provide. In
order to keep my sanity and automate this as much as possible, I had to
slightly modify the interface (sorry, everyone).
2017-07-03 07:15:47 +02:00
chibidev 345602926e Feature/cleaning up aggregate indexer fallback (#1507)
* Line endings...

* Refactoring how MetaIndexers handle fallbacks

Originally this modification was part of a much larger refactoring,
however for the sake of reviewability I split it into smaller chunks.
Sadly it is still quite large.
I wanted to split it even more, however after a certain point there was
really no value in creating smaller chunks. The biggest part of this
modification would be still huge.

So all in all, there're 3 aspects of this modification
- It modifies BaseIndexer so that it now implements IIndexer (will be
very useful later on)
- Resolving most of the warnings currently in Jackett (the only ones
remaining are related to Autofac, however if I could I would just burn
Autofac altogether rather than fix the warnings. Will open discussion on
this.)
- Biggest part: refactoring how MetaIndexers handle fallbacks and how
they provide the final result set

MetaIndexers now accept any kind of fallback and filtering mechanism
that implements the necessary interface, so that in the future IMDB
fallback and filtering won't be the only one. I know there are not a lot
of unit tests around Jackett at the moment, however this renders the
class much more unittestable as well.

* Autofac started complaining... I don't understand...
2017-06-28 07:31:38 +02:00
kaso17 8bd7233756 Rarbg: add support for unknown IMDB IDs 2017-06-25 17:37:33 +02:00
kaso17 d8e6f0ec57 Rarbg: increase requestDelay 2017-06-03 16:14:19 +02:00
kaso17 b4948c924d rarbg: strip ' from search 2017-06-03 16:13:05 +02:00
kaso17 7c36d3a892 Rarbg: strip ' from search 2017-06-03 16:12:38 +02:00
flightlevel f2def1f615 Normalise Line endings (#1284)
* Add .gitattributes

* Normalise line endings
2017-04-15 18:45:10 +10:00
kaso17 49a97e2e25 Rarbg: use IWebClient rate limiter 2017-03-09 15:04:59 +01:00
kaso17 e24f70fc7b RARBG: make episode_info optional 2017-01-31 19:48:37 +01:00
kaso17 d703488ccc RARBG: change to torrentapi.org 2017-01-31 19:37:28 +01:00
WhatFox 61a8585e43 Only allow private trackers 2015-11-18 20:00:26 +00:00
unknown 674be2843d RARBG API request throttling 2015-08-22 15:21:29 -06:00
unknown 748d85f32f Implemented indexer configuration result status to prevent double query test on some indexers 2015-08-22 14:57:13 -06:00
unknown 30ba1793c0 Fix RARBG magnet link 2015-08-19 18:31:51 -06:00
unknown 324bb48543 Re-implemented RARGB 2015-08-16 17:24:06 -06:00
unknown dd549b703c Remove support for RARBG (official support now in Sonarr, and recently broke in Jackett anyway) 2015-08-02 12:12:32 -06:00
KZ 37cf3e569c Fix AnimeBytes caps, Change to 4.5 #117, change all trackers to retry failed requests 2015-07-29 18:47:51 +01:00
KZ ea069810a5 Add indexer: Immortalseed. Add category mapping framework. 2015-07-29 00:10:04 +01:00
KZ 51042e91fc Indexer refactor complete. This is going to need lots of testing! 2015-07-28 00:06:49 +01:00
unknown a9f1daac73 Implemented torznab capabilities feature 2015-07-19 17:05:30 -06:00
KZ f045a1f350 Bug fix 2015-07-19 18:23:29 +01:00
KZ 75f0cce064 Change indexers to use new api 2015-07-19 18:18:54 +01:00
KZ e1c70b1e30 Reinstate changes from merge 2015-07-19 15:22:26 +01:00
KZ 1359ad16f0 Refactor done 2015-07-19 14:22:50 +01:00
KZ 33a97b148f Refactor 2015-07-19 01:27:41 +01:00
unknown 7f2aa4ccad Refactored to use the RageID lookup disabled, removed Sonarr API setup 2015-07-18 14:35:02 -06:00
ThomasAmpen f2f38605bf BrowserUtil, tryparse added 2015-07-12 19:52:32 +02:00
zone117x 976f42b48c Log parsing errors for rarbg 2015-05-25 17:53:43 -06:00
zone117x 489c900e00 Do not use https for rarbg 2015-05-04 22:38:01 -06:00
zone117x c0a7d00ffc Added RARBG 2015-05-04 22:24:39 -06:00