-
- Downloads
Changes the BTN provider to support backlog searches
The new provider uses BTN's API to search for torrents in stead of using the RSS. The regular "RSS" searches are emulated by an API request for the torrents added since the last successful request. Because the BTN API is accessed using a JSON-RPC interface, the library jsonrpclib is added. The source of this is https://github.com/joshmarshall/jsonrpclib, I copied it with only some minor changes to fix import errors without having to change the library paths used in Sick Beard. The version used is from 20th of August 2011. I have also added the jsonrpclib to the list of libraries as listed in the readme.md. Some changes had to be made to the way whole seasons are treated because torrents cannot be split like NZB's can. This has been solved by checking if the provider of the season file is BTN, if so the whole season is added as a multi-ep result. Because BTN often uses the name "tvrip" to identify SDTV (non-scene) rips, I have added that to the name checking regex.
Showing
- data/interfaces/default/config_providers.tmpl 2 additions, 20 deletionsdata/interfaces/default/config_providers.tmpl
- lib/jsonrpclib/SimpleJSONRPCServer.py 229 additions, 0 deletionslib/jsonrpclib/SimpleJSONRPCServer.py
- lib/jsonrpclib/__init__.py 6 additions, 0 deletionslib/jsonrpclib/__init__.py
- lib/jsonrpclib/config.py 38 additions, 0 deletionslib/jsonrpclib/config.py
- lib/jsonrpclib/history.py 40 additions, 0 deletionslib/jsonrpclib/history.py
- lib/jsonrpclib/jsonclass.py 145 additions, 0 deletionslib/jsonrpclib/jsonclass.py
- lib/jsonrpclib/jsonrpc.py 556 additions, 0 deletionslib/jsonrpclib/jsonrpc.py
- readme.md 3 additions, 1 deletionreadme.md
- sickbeard/__init__.py 4 additions, 13 deletionssickbeard/__init__.py
- sickbeard/common.py 1 addition, 1 deletionsickbeard/common.py
- sickbeard/providers/btn.py 333 additions, 72 deletionssickbeard/providers/btn.py
- sickbeard/search.py 31 additions, 17 deletionssickbeard/search.py
- sickbeard/webserve.py 2 additions, 5 deletionssickbeard/webserve.py
Loading
Please register or sign in to comment