1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00
Commit Graph

66 Commits

Author SHA1 Message Date
echel0n
9a33ddf85c Fix for issue #946 - Adding of shows via webAPI was failing.
Improvements made to Indexer's API modules, better error handling for missing or incomplete shows, shows that don't have actor or banner info are now properly error handled as well.
2014-11-24 18:47:14 -08:00
echel0n
1003e342ca Improved WebAPI interface:
sb.searchindexers searches ALL indexers
sb.searchtvrage searches TVRage indexer
sb.searchtvdb searches TVDB indexer
2014-11-24 11:31:22 -08:00
echel0n
1cd91e6cc5 Fix for issue #942 - Previous code update borked webapi code for show's cmd 2014-11-24 09:53:31 -08:00
echel0n
3c70ef6f04 WebAPI now supports tvrageid, tvdbid, and indexerid options for passing in the indexer id when trying to add shows 2014-11-23 08:42:34 -08:00
echel0n
47ef5bf2b2 Fixed backlog webapi issue 2014-11-23 04:53:31 -08:00
echel0n
607a91ce50 Merge pull request #932 from Hellowlol/addmoretoapi
Add location, filesize, subtitles and releasename
2014-11-22 09:04:00 -08:00
Fernando
6002722c7e Fix invalid continuation byte for webapi
I get this error when using API:
{"result":"error", "message": "error while composing output: "utf8 : terça 9:00  : error 3 : error 4 : invalid continuation byte"}

There's a special char "TERÇA"

Don't know why this happens. I had a special date style and even after change it to "yyyy-mm-dd" this error still happens. Don't know why the api builder is still using the translated week day. Also timezone is set to "network"

This error only happens when missing/future has "terça" - Tuesday and "sábado" - saturday weekdays. The other week days there's no special char.
2014-11-22 11:49:19 -02:00
John
13ecfd027a Add location, filesize, subtitles and releasename
to Show.Seasons
2014-11-21 22:10:19 +01:00
Prinz23
732009fd98 Change how the "local/network" setting is handled to address some issues.
Move local/network setting datetime convert into it's own function.
Function parse_date_time() now returns when possible a correct timezone aware datetime.
Change webapi to use new converter.
Fix Daily Searcher.
Fix saving old DateTime setting.
Add safety check if network_dict is already loaded.
2014-11-11 18:15:25 +00:00
JackDandy
477b0806b0 Fix API response header for JSON content type and the return of JSONP data.
The API should return application/json Content-Type for JSON data instead of application/html. Tornado expects a dict in order to JSON encode and send header "Content-Type:application/json". SR already encodes data plus it supports JSONP. So, the encoded string data is wrapped into a dict, and a test is added at Tornado def write() to unwrap and skip encoding, in order to set the correct content-header and also use JSONP.

Added file HACKS.txt to serve as a reminder for anyone updating the library.
2014-11-11 13:22:03 +00:00
Adam
16b146284d Fix invalid responses when using sickbeard.searchtvdb api command 2014-11-07 08:19:27 +08:00
tehspede
ae94ab6d80 Change API now uses Timezone setting at General Config/Interface/User Interface/ at relevant endpoints 2014-11-04 00:26:22 +02:00
John
f185c1fee0 add subtitle to cmd show and shows 2014-10-30 22:24:08 +01:00
John
6fe49066c8 add postprocess to api 2014-10-01 01:13:04 +02:00
echel0n
59675f27ac Fixed failed download handling.
Improved search queue code.
2014-09-06 21:36:23 -07:00
RoostayFish
25f57b26fe Added indexerid to CMD_Show(ApiCall) 2014-08-26 15:44:15 +01:00
echel0n
b8b5947ae6 Fix for trakt.tv issues when adding/removing/syncing shows.
Fix for indexer mapper to return a result no matter what.
2014-07-30 16:33:28 -07:00
echel0n
534104b8b0 Changed how SickRage determins its branch version which will resolve issues with app switching back to master branch by mistke on startup. 2014-07-28 21:43:28 -07:00
echel0n
14c354b551 Added proxy support to Indexer APIs.
Provider getURL and downloadResult functions now removed and replaced with ones from helpers.py to help slim the code down plus allow more better control over request sessions.

Removed TVTumbler code.

Fixed HDBits provider.

Fixed config settings that were ment to be booleans but instead where set as str or int, should help resolve random html errors.

XEM Refresh check re-coded.

NameParser code for creating show object has been changed to only attempt at the very end once its found the bestMatch result, helps on resources and performance.
2014-07-27 03:59:21 -07:00
echel0n
de5db9be64 Added ability to set a default indexer for trakt notifier used for adding shows from watch list so that SickRage knows what indexer to set the show as.
Indexer mapping now uses indexer api calls to gather its information and then stores it to a new table called indexer_mapping for instant lookups later on.

Fixed trakt related issues for adding new shows and syncing.

Centered items at bottom of pages to just look a little nicer and fit properly.
2014-07-23 22:07:01 -07:00
echel0n
d02c0bd6eb Fixed issues with editing/saving custom scene exceptions.
Fixed charmap issues for anime show names.

Fixed issues with display show page and epCat key errors.

Fixed duplicate log messages for clearing provider caches.

Fixed issues with email notifier ep names not properly being encoded to UTF-8.

TVDB<->TVRAGE Indexer ID mapping is now performed on demand to be used when needed such as newznab providers can be searched with tvrage_id's and some will return tvrage_id's that later can be used to create show objects from for faster and more accurate name parsing, mapping is done via Trakt API calls.

Added stop event signals to schedualed tasks, SR now waits indefinate till task has been fully stopped before completing a restart or shutdown event.

NameParserCache is now persistent and stores 200 parsed results at any given time for quicker lookups and better performance, this helps maintain results between updates or shutdown/startup events.

Black and White lists for anime now only get used for anime shows as intended, performance gain for non-anime shows that dont need to load these lists.

Internal name cache now builds it self on demand when needed per show request plus checks if show is already in cache and if true exits routine to save time.

Schedualer and QueueItems classes are now a sub-class of threading.Thread and a stop threading event signal has been added to each.

If I forgot to list something it doesn't mean its not fixed so please test and report back if anything is wrong or has been corrected by this new release.
2014-07-14 19:00:53 -07:00
echel0n
84fe4f0aeb Added back tvrage_name and tvrage_id to mirror show_name and indexer_id so that other apps that need those values have them available.
Cleaned up video html in display shows.
2014-07-11 18:38:22 -07:00
echel0n
13f12b2635 Fixed issue with WEB Api and setting episode statuses for backlog searches. 2014-07-11 18:01:55 -07:00
echel0n
6a3c6a5be4 Added anime and scene params to WEBApi for adding new shows. 2014-07-11 10:45:45 -07:00
echel0n
be6c884a40 Fixed WEBApi issues for adding new shows. 2014-07-11 10:42:42 -07:00
echel0n
933fad20c7 Unable to parse filename errors are now set to show via DEBUG logs only to prevent unicode chars from causing misc beeping sounds ... 2014-07-10 23:44:36 -07:00
echel0n
d6225dd8d3 Updated next episode airdate function to be run once at startup and then each time after that with show update schedualer 2014-07-09 00:49:05 -07:00
echel0n
dbe22b570b NextEpisode code modified to return the airdate ordinal instead of a ep object, faster. 2014-07-08 23:07:26 -07:00
echel0n
58788f52e5 Corrected API to work with new nextepisode function code changes. 2014-07-08 22:53:51 -07:00
echel0n
74f73bcc34 New event queue system in place, currently handles shutdown and restart calls.
Fixed ctrl-c issues with new event queue system.
Added a sleep timer to the NameParser class to help lower cpu usage spikes.
2014-07-08 15:26:26 -07:00
echel0n
2e8c8a262f Fix for api builder. 2014-06-30 09:37:42 -07:00
echel0n
75f69396d4 Reverted some changes. 2014-06-30 08:57:32 -07:00
echel0n
5e507b3849 More memory reductions and cleanups 2014-06-30 04:44:36 -07:00
echel0n
96fa0953e3 Fixed issues with popup notifications. 2014-06-29 20:58:34 -07:00
echel0n
7e0bb651b2 Database now closes connection after each query and reconnects if closed to ensure no more connection and locked database problems.
Fixed more internal 500 errors.
2014-06-21 15:46:59 -07:00
echel0n
784b8d7179 Fixed webAPI, function arguments updated to reflect previous code changes. 2014-06-19 15:46:41 -07:00
echel0n
07685f4295 Fixed issues with webroot settings and reverse proxies.
Fixed issues with WebAPI and WebAPI builder.
2014-06-19 08:47:28 -07:00
echel0n
acadce4d96 Fix for setting status via episode status manager 2014-06-19 01:37:44 -07:00
echel0n
0ae8b5429b WebAPI showPosters fixed! 2014-06-18 10:06:06 -07:00
echel0n
bd582d18d0 Fix for showPoster() api calls 2014-06-18 09:28:03 -07:00
echel0n
0e962f83cb Fix for feedcache logging.
Fix for adding new and existing shows.
Fix for static content.
2014-06-18 08:06:50 -07:00
echel0n
d8358882de Fixed issues with restarts and updates. 2014-06-15 22:45:52 -07:00
echel0n
23e2a483b5 Fixed API code to work with tornado. 2014-06-15 14:45:09 -07:00
echel0n
d73cc1cbbd Replaced cherrypy with tornado which helped resolve our memory leak issue. 2014-06-14 20:56:15 -07:00
echel0n
997896a540 Fix for transactionals and None Types in sql lists 2014-05-30 04:42:31 -07:00
echel0n
70e7f1bfce Fixed issues with scene numbering being overwritten by ep objects.
Converted more object saves to database to use transactionals, better performance.
2014-05-30 03:01:49 -07:00
echel0n
3b6534ca1d Fix for issues relating to webAPI and episode searching. 2014-05-23 10:05:44 -07:00
echel0n
7391a6e454 App name change in code. 2014-05-23 05:37:22 -07:00
echel0n
1398c38275 Fix for manual and backlog download/search issues.
Removed multi-threading as it was more problems then usefull for now.

Added in match & snatch, any quality from initial quality settings gets downloaded first and does not continue searching, if archive qualities exist it'll stop once it hits max quality from said list.
2014-05-11 05:51:39 -07:00
Nils Vogels
17171dba8b Simplifying expressions 2014-05-02 13:33:06 +02:00