Commit graph

72 commits

Author SHA1 Message Date
JackDandy
b124b453fe Add search crawler exclusions. 2015-08-10 22:07:55 +01:00
Adam
37496189f1 Change py2 exception clauses to py2/3 compatible clauses
Add py2/3 regression testing for exception clauses

Any new code added with old py2 style exceptions will now fail the travis test
2015-06-08 22:56:45 +08:00
JackDandy
4f4858f4e4 Change to post process files ordered largest to smallest and tidied PP logging output.
Add "then trash subdirs and files" to the Process method "Move" on the manual post process page.
Add using show scene exceptions with post processing.
Change overhaul processTV into a thread safe class.
Change postProcessor and processTV to PEP8 standards.
Change overhaul Manual Post-Processing page in line with layout style and improve texts.
Change Force Processes enabled, only the largest video file of many will be processed instead of all files.
Change visual ui of Postprocessing results to match the logs and errors view.
Change remove ugly printing of episode object during PP seen in external apps like sabnzbd.
Change to streamline output toward actual work done instead of showing all vars.
Change pp report items from describing actions about to happen to instead detail the actual outcome of actions.
Add clarity to the output of a successful post process but with some issues rather than "there were problems".
Add a conclusive bottom line to the pp result report.
2015-05-08 04:18:30 +01:00
JackDandy
e5d4269c10 Change only add valid items to save to DB. 2015-03-29 12:20:29 +01:00
Adam
71d7938fac Change webserve code to a logical layout and PEP8 2015-02-24 00:26:33 +08:00
Adam
d0326cda7e Change replace HTTP auth with a login page
Change to improve webserve code
Add logout menu item with confirmation
Add 404 error page
2015-02-22 11:54:53 +08:00
JackDandy
a461961c84 Add handling of exceptional case with missing network name (NoneType) in Episode View.
A show should always have an original broadcaster (network), however, user input errors mean that a show can get added without this fundamental detail.
2015-01-21 16:48:15 +00:00
JackDandy
ccb9bb329c Coming Episodes Overhaul.
Change Coming Episodes to "Episodes" page (API endpoint is not renamed).
Add coming episodes to episode view renaming to config migration code.
Change Layout term "Calender" to "Day by Day" on Episodes page.
Fix saving of sort modes to config file on Episodes page.
Add qTip episode plots to "Day by Day" on Episodes page.
Add article sorting to networks on Episodes page.
Add toggle sort direction and multidimensional sort to isotope on Episodes page.
Add text "[paused]" where appropriate to shows on layout Day by Day.
Simplified sort code in webserver and in template.
Change page auto refresh from 10 to 30 mins.
Add other UI tweaks.
2015-01-08 16:43:17 +00:00
JackDandy
f72229c591 Fix article sorting for Display Show, and API pages. 2014-12-04 10:28:29 +00:00
JackDandy
3cac799877 Fix article sorting for Coming Eps, Manage, Show List, and Trending Shows.
Increase article sorting strictness with a central helper function.
2014-11-27 03:34:41 +00:00
JackDandy
2808e8edf4 Add multi dimension sorting and clarify some variable naming. 2014-11-25 23:14:49 +00:00
Prinz23
fb70e80461 Fix items shown for the current week on Coming Episodes/Calendar Layout.
Other data: past and after next week isn't shown in this view.
Fix wrong sql operator being used.
Fix: convert tomorrow toordinal().
Change bring webapi inline to these changes.
2014-11-25 14:15:13 +00:00
JackDandy
f164934888 Fix API endpoint Episode.SetStatus to "Wanted". 2014-11-20 16:37:58 +00:00
Supremicus
4c8c6b21d5 Change logos, text etc. branding to SickGear. 2014-11-12 20:56:40 +00: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