1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00
Commit Graph

84 Commits

Author SHA1 Message Date
echel0n
c6c0f9600b Fix UI notification issues with auth 2014-12-07 18:24:30 -08:00
echel0n
7cb60236de Fixed WebAPI - Code needed re-doing to intergrate properly with new WebUI code. 2014-12-07 16:36:51 -08:00
echel0n
e7de90f688 Merge remote-tracking branch 'origin/develop' into develop
Conflicts:
	sickbeard/webapi.py
2014-12-07 15:57:32 -08:00
echel0n
5f58282260 Added new WebUI login interface 2014-12-07 12:58:41 -08:00
Michael Pauley
890b56aed6 webserve.py has no attribute 'MainHandler'
MainHandler was renamed to WebHandler
2014-12-07 13:36:29 -05:00
John
7bc422d199 Add removefiles to api show.delete 2014-12-07 01:59:11 +01:00
echel0n
e6389e47b1 Improved RSS feedparser/feedcache code for better performance and reliability.
Removed Shove module and depends.

Logging now automatically omits sensitive data such as usernames, passwords, and api keys and replaces them with asterisks in both log file and console.

Fixed versionChecker module to confirm it created a updater class before attempting to execute functions to avoid NoneType errors.
2014-12-02 11:09:53 -08:00
echel0n
8674a61039 Merge remote-tracking branch 'origin/develop' into develop 2014-12-02 03:21:40 -08:00
echel0n
33e094a9aa Fix for issue #971 and issue #1007 - defaults to a status of UNKNOWN if a empty result is returned 2014-12-02 03:21:23 -08:00
Fernando
7e1fc5e83f Fix error in webapi causing "No Shows" in NZB360
https://sickrage.tv/forums/forum/help-support/bug-issue-reports/13208-shows-list-is-empty-in-nzb360
2014-12-01 23:06:33 -02:00
John
586bdeacb3 added snatched episodes to shows.stats api command 2014-11-30 23:26:26 +01:00
John
48530fbd1a Add more info to api command show 2014-11-28 02:23:50 +01:00
echel0n
a0aa479b91 Merge remote-tracking branch 'origin/develop' into develop 2014-11-27 04:39:41 -08:00
echel0n
71d95b463e Fixed webapi jsonp response code 2014-11-27 04:24:38 -08:00
echel0n
f13cffc24d Reverted changes made to Tornado source code, caused a bad file descriptor error 2014-11-27 03:45:41 -08:00
Tab Bennedum
1e8c0abac4 Added backlog API. 2014-11-25 14:31:44 -05:00
Tab Bennedum
924dc04a07 Added failed download API. 2014-11-25 13:33:33 -05:00
Tab Bennedum
a3c733d686 Removed redundant call to helpers.mapIndexersToShow. 2014-11-25 13:19:39 -05:00
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