Commit Graph

14397 Commits

Author SHA1 Message Date
kaso17 51aa4f35bd AnimeBytes: stop emulating browser 2017-08-11 16:53:49 +02:00
kaso17 fc55882f16 IndexerManagerService: create own IWebClient instance for each indexer 2017-08-11 16:53:27 +02:00
kaso17 d03cbefa57 IWebClient: add EmulateBrowser flag 2017-08-11 16:52:58 +02:00
kaso17 e079c90535 Torrent Downloads: don't ask for user/password and fix empty search 2017-08-11 16:05:19 +02:00
kaso17 8591add0bf FileList: use full title if available 2017-08-11 15:57:55 +02:00
kaso17 fbbe4f9c45 FileList: don't use FL token DL link 2017-08-11 15:48:34 +02:00
kaso17 289c5cd24f encrypt original path in download links and move apikey to parameters 2017-08-11 15:14:40 +02:00
flightlevel 84a45737d3 Revert "Fixes #1606 " (#1649)
* Revert "Pretome: Attempted parsing fix (#1648)"

This reverts commit d083cf774a.

* Revert "t411 v2 (#1620)"

This reverts commit f2ce167bbf.

* Revert "Fixes #1606  (#1625)"

This reverts commit 4e04bbbcf4.
2017-08-11 22:29:15 +10:00
flightlevel d083cf774a Pretome: Attempted parsing fix (#1648)
* Pretome: Attempted parsing fix
2017-08-11 21:54:44 +10:00
Francis Noel f2ce167bbf t411 v2 (#1620)
* New nextorrent URL

Change url to : http://www.nextorrent.cx
Fix search url

* new cpasbien url

Change to : http://cpabien.cc

* Add zetorrents tracker

* t411 v2 + remove maniatorrent

* Update Jackett.Updater (remove maniatorrent)

* fix the formatting

Change TAB with SPACE
2017-08-11 21:45:49 +10:00
Benoît Sauvère 4e04bbbcf4 Fixes #1606 (#1625)
* Fixed the TorrentPotato requests with the indexers that does not support imdbid requests

* Fixed the "CanHandleQuery" which was not working if we make the request only with an imdbid (and a valid OMDB key)

* Fixed the "CanHandleQuery" which was not working if we make the request only with an imdbid (and a valid OMDB key)

* Removed PotatoController.cs
2017-08-11 21:41:50 +10:00
garfield69 7f5d00e89f torrents-search.php -> search-torrents.php (#1642)
KAT seem to have changed the name of the search php
2017-08-10 22:03:41 +10:00
flightlevel f777114644 Pretome: Attempted parsing fix (#1644) 2017-08-10 22:01:41 +10:00
flightlevel 7c63a6b8f2 ArcheTorrent: Update categories (#1643)
Fixes https://github.com/Jackett/Jackett/issues/1614
2017-08-10 21:51:59 +10:00
aurelien f0140999bf 2 Fixes (#1637)
* lower case for search term

* fix thanksyou call before download torrent file
2017-08-10 08:23:19 +02:00
Khogniak 6f0a249503 YGG config update (#1635)
* YGG config update

* Followed gprime44 on seeder/leecher selector #1634
2017-08-10 08:21:12 +02:00
mueslo 2e79500f50 Improve season query logic for bB (#1632)
* Tweak BB indexer

Remove explicit tracker URL
Add tracker-specific season query

* Query for "S##" and "Season #" simultaneously on bB

* Fix tabs/spaces

* Rewrite title from "Season #" to "S##"

* Fix bug

Fix bug where searching for whole shows would rewrite Season # to S00, since no season was specified.

* Add new categories mappings

So that e.g. headphones can correctly query bB for music
2017-08-10 08:19:27 +02:00
chibidev 720b5971d3 Feature/new api (#1584)
* Introducing API v2

There were multiple inconsistencies in the old API and I have been
toying with the idea to replace it. This will suck for everyone who was
building on top of the Jackett API, however as it was probably too
painful to do so I'd say no one really tried.

Now API v2.0 should be much more constistent as it uses DTObjects, and
instead of manually constructing a json response it is handled by the
ASP.NET web api. It is much more RESTful than it was, proper GET
endpoints are introduced, and updating resources are now done via POST -
it might be improved by introducing other type of REST methods.

I know this sucks as completely breaks backward compatibility, however
it'll probably make it easier to maintain and build on top of in the
long run.

* Use DELETE method to unconfigure an indexer

* Remove debugging format from NLog

* Fixing an null exception

* Properly implementing IExceptionFilter interface

* Enable adding public indexers without configuration

* Fix missing manual search results

* Basic modularization of the JS API

* Introduce API versioning

* Fix redirects to the dashboard

* Cleaning up a little bit

* Revamping Torznab and Potato as well

* Move preconditions to FilterAttributes and simplify logic

* Remove legacy filtering... will move to IResultFilter

* Minor adjustment on results interface

* Use Interpolated strings in ResultsController

* DTO-ify

* Remove fallback logic from potato results

* DTO everywhere!!!

* DTO-ify everything!

* I hope this is my last piece of modification to this PR

* Remove test variables...

* Left out a couple conflicts... It's late
2017-08-08 17:02:16 +02:00
chibidev dba63857e4 Improve results and fix download link on AnimeTosho 2017-08-08 09:27:21 +02:00
danmed b05ee653d3 Update skytorrents.yml (#1626) 2017-08-08 01:19:04 +02:00
chibidev 84df60368c Improve response time of metaindexers 2017-08-07 22:33:23 +02:00
chibidev 76102ac171 Fix exception in BaseNewznabIndexer in some cases... Might not catch all of them. 2017-08-06 20:44:22 +02:00
Francis Noel 3c6e77a2ca Fix issue : #1615 (#1619)
* New nextorrent URL

Change url to : http://www.nextorrent.cx
Fix search url

* new cpasbien url

Change to : http://cpabien.cc

* Add zetorrents tracker
2017-08-06 10:41:53 +10:00
flightlevel f6272032a6 MoreThanTv: Improve Number parsing (#1618)
Fixes #1616
2017-08-05 11:20:50 +10:00
Florentin Le Moal 41fb5e89b4 Fixed little typo (#1609) 2017-08-05 10:46:03 +10:00
Indrek Ardel 42c9967844 Use local time for dates in TorrentBytes (#1586)
TorrentBytes allows changing timezone in settings, which makes listed dates to be more likely local time than UTC.
2017-08-05 10:45:38 +10:00
chibidev e740e2434d Fix selector on World of P2P 2017-07-29 14:02:04 +02:00
chibidev 057df28d1b Fixing a null exception when searching AnimeTosho
AnimeTosho failed to populate the Origin field of the results when
searching thereby creating an issue upon creating the proxy link. This
was mainly because an IEnumerable can contain a deferred LINQ query as
well (e.g. in the case of AnimeTosho a Select) that will re-execute
every single time. So when iterating over IEnumerables we cannot really
pose any assumption on what we are dealing with, so either explicitly
force an execution (e.g. via ToList), or use LINQ queries as well. Since
the second is probably more performant, let's stick with that.
2017-07-29 13:20:10 +02:00
Indrek Ardel 6fbc4b6904 Use only one request on Torrentbytes to search (#1587)
To get a larger number of results, users should increase the number on the website, similar to how it's implemented for TorrentLeech. Since TorrentBytes can be slow at times, making one large request will not be that much slower from one small request, but will nearly half the time taken compared to two smaller requests.
2017-07-27 23:49:20 +02:00
chibidev cab608f0ec Adding the ability to launch a search from with a URL
You can now pass a parameter to the dashboard which will immediately pop
the search box and start searching for the results.
This should be what #1345 and #1577 wants, or at least a basic version
of it.
2017-07-23 02:08:19 +02:00
Ben Houshmand f5592d04e2 Added yts.ag as an indexer. (#1579) 2017-07-23 01:12:12 +02:00
chibidev 5138496436 Display the master branch build status rather than any branch 2017-07-21 17:57:41 +02:00
chibidev bcc1e5ff6c Fix OMDB key handling (#1581) 2017-07-21 17:56:29 +02:00
chibidev 7eb57d8e9a Minor fixes for Anime Tosho 2017-07-21 00:32:57 +02:00
chibidev 929c12ccc6 Implementing Anime Tosho - introducing feed based indexers 2017-07-20 23:55:42 +02:00
chibidev 1ba1b91b8e Very basic range check for port number 2017-07-19 22:25:01 +02:00
chibidev d90a2613fc #1573 - Handle Potato IMDB queries without fallback 2017-07-19 19:31:07 +02:00
chibidev 0d25ed2921 #1575 - Fix invalid URL handling 2017-07-19 19:24:32 +02:00
thebluepotato a07bffa773 Update KAT definition for real login test, error handling and indexer testing logic (#1569)
* Update KAT definition for real login test

* Add error handling to KAT definition's login

* Even better error handling...

Sorry for the inelegant successive commits

* Add better test behaviour for KAT

Added some logic so tests return results. Previously did a search with an empty string which would return no results. NB : it does test with "torrents.php?search=%22%22" but that's not an issue, the parameter is ignored on that page.
2017-07-19 19:11:29 +02:00
chibidev f0da6ce247 #1535 - Using a real User-Agent with AnimeBytes 2017-07-16 13:24:14 +02:00
Guizzoni 32d0a8d703 Add "Torrent Downloads" tracker (#1563)
* Add "Torrent Downloads" tracker

Add "Torrent Downloads" tracker as requested on "Issue #1559"

* Update README.md

Added "Torrent Downloads" to the list.

* Update torrentdownloads.yml
2017-07-16 13:16:09 +02:00
kaso17 6e2087d5dc attempt to fix blackhole dirs with reverse proxies 2017-07-14 08:18:36 +02:00
Guizzoni 82f330f4af Add B2S-Share tracker (#1562)
* New definition for indexer "B2S-Share"

I made a new definition for this indexer.
B2S-Share is a general Brazilian tracker.

This tracker does not support multiple category search, so i left it searching in all categories.

* Update README.md

Added B2S-Share to the private tracker list.
2017-07-14 07:43:47 +02:00
Khogniak 14f86107e1 YGG Fix: Removed stage settings. Added https. Added login headers (just in case). (#1561) 2017-07-14 07:42:40 +02:00
Guizzoni 845faf9066 Add Manicomio Share tracker (#1558)
* New definition for indexer "Manicomio Share"

I made a new definition for this indexer.
Manicomio Share is a general Brazilian tracker.

A few known issues:
1 - The tracker does not show the "release date" unless i click on another button with a "onclick="expand(584941,event)"". So i left it without date.
2 - I wasn't able to configure the "login: post" method, since there's no dedicated login page. I used Cookies instead.

* Add Manicomio Share to Private Tracker list

Add Manicomio Share to Private Tracker list

* Updated manicomioshare.yml

Updated line 229 in manicomioshare.yml so it's more flexible in case the URL changes. (Thanks kaso17)

* Tracker doesn't support multiple categories search

Tracker doesn't support multiple categories search, removed the "range .Categories" line
2017-07-14 07:42:04 +02:00
chibidev 7c2b801ee9 Feature/remove autofac from indexer manager (#1549)
* Line endings...

* Remove Autofac and all its shenanigans from IndexerManager

I'm starting my warpath against Autofac. For the next couple PRs I want
to focus on refactoring things rather than creating new things. This
includes introducing LINQ extensions wherever possible as well as
removing Autofac/Automapper dependencies in classes (or any other
dependency, there's a great chance that most of the classes that use
Jackett.Services wouldn't need so many of them). All this is order to
boost performance and eventually reach testability. Can't stop, won't
stop.

* Remove unnecessary extension

* Modify test project

* As per @kaso17, iterating through iterator types rather than allocating them manually

* Cleaning up a little

* Adjusting interface in tests
2017-07-14 07:39:52 +02:00
kaso17 f96dca5653 Merge branch 'master' of https://github.com/Jackett/Jackett 2017-07-13 07:20:09 +02:00
kaso17 0e4e9f4253 AnimeTorrents: use IWebClient 2017-07-13 07:19:04 +02:00
chibidev dc38f8c041 Bugfix/fix nyoo indexer (#1547)
* Line endings...

* Adjusting selectors
2017-07-12 06:34:14 +02:00
chibidev 17f544be36 Bugfix/1532 1539 fix manual search circular reference (#1543)
* Line endings...

* Encoding Encoding in a reasonable way

Sadly Encoding contains a self-reference somewhere, which makes it
really hard for the json serializer to automatically encode it...
Probably there's no value in sending it over especially since no one is
using it, however just for the sake of the argument, let's just
serialize it in a reasonable way. Maybe someday there will be someone
expecting this. Or we clearly separate DTOs and models...

- Fixes Jackett/Jackett#1532
- Fixes Jackett/Jackett#1539

* Seriously... Please port this to dotnet Core so that I can use something other than @drunkvs on my MacBook

* Fix autofac registration after merge

* "Implement" new function of interface in test project
2017-07-11 22:32:56 +02:00