Commit graph

69 commits

Author SHA1 Message Date
Prinz23
6d0bcddd03 Change improve handling tvdb_api data when adding upcoming shows with unfilled data.
Change handle exceptions raised while creating show or episode metadata.
Fix shows with no episode data (prevent exception).
2018-05-14 01:06:21 +01:00
JackDandy
bd8f0a7b61 Change when adding a show, display show title instead of '[]'.
Change consolidate show data validator into base class.
Change move validator test to inside the respective tvinfo source getter for future proofing.
2018-04-07 20:49:12 +01:00
Prinz23
410251eaf2 Change improve tvinfo source meta handling for cases where server is either down, or no results are returned. 2018-04-07 00:14:13 +01:00
JackDandy
a2908a62a9 Change improve metadata handler during postprocessing when tvinfo source is down.
Fix Torrentz2 filter spam.
2018-04-06 13:27:40 +01:00
JackDandy
a1566c7418 Change improve thetvdb api response handling. 2018-02-13 13:02:32 +00:00
Prinz23
68fa29e77a Change restore fetching metadata episode thumbs.
Add get_episode_data in tvdb_api v2

Usage:
lINDEXER_API_PARMS = sickbeard.indexerApi(show.indexer).api_params.copy()
t = sickbeard.indexerApi(show.indexer).indexer(**lINDEXER_API_PARMS)
ep_data = t.get_episode_data(episodeid)
2017-12-10 20:23:45 +00:00
Prinz23
3bd392e671 Add count of failed show updates
Change add warning message to Display Show and Edit Show page if show no longer found at TV info source due to an ID change, the last successful date of show update with current ID is also displayed.
Add "Shows not found previously" to Manage/Show Processes Page to highlight which shows can adjust their show IDs in order to sustain TV info updates.
Add "Shows from defunct indexers" to Manage/Show Processes page to highlight which shows can be switched to a different default TV info source.
Shows not found on an indexer for over 7 days will only be retried once a week.
Change improve show not found detection in Tvdb_Api lib.
Change add tv_shows_not_found db table.
Change add cleanup of orphaned not found shows during startup.
Change add UI Notification when MasterID is not changed because a show with that ID already exists in DB.
2017-09-04 22:39:28 +01:00
Prinz23
07d72e05f1 Add Fuzzywuzzy lib to sort search results.
Change remove search results filtering from tv info source.
Change suppress startup warnings for Fuzzywuzzy and Cheetah libs.
Change show name aliases get a score -1 to give the main names priority.
Change replace findCertainShow with find_show_by_id for mapped multi-indexer.
Change add Trakt info source search interface.
Change directly send image after it's been cached.
Fix loading CachedImages images with TVDB API v2 changes.
2017-09-04 01:23:30 +01:00
Prinz23
29683acc96 Fix image not loaded from tvdb_api if there is only one poster/banner.
Add new parameter 'poster' to indexer api.
Add optional tvdb_api load season image: lINDEXER_API_PARMS['seasons'] = True.
Add optional tvdb_api load season wide image: lINDEXER_API_PARMS['seasonwides'] = True.
Change prevent setting show/episode attr to None from indexer data.
2017-08-27 01:46:23 +01:00
Prinz23
653a717f42 Change increase performance by reducing TVDb API requests with a global token.
Change raise tvdb_error if any of the episodes pages return an error instead of an incomplete episode list.
Handle expired token.
2017-07-21 22:03:52 +01:00
Prinz23
574dbb60b5 Change improve TVDB data handling.
Add handling of None type for actors, fanart, and banners.
Change handle exception with no data due to connection error.
Fix check for number in show obj in tvdb_api.
2017-07-12 17:43:36 +01:00
Prinz23
06599ac708 Change use TVDb API v2.
Add complete actor parsing into _actors.
Make returned _banners compatible with old v1 api lib.
Add all poster + fanart loading (optional) into poster, fanart subdicts of _banners subdict.
Depending on requested image_type set fanart or banners to true.
Readd banners parameter to tvdb lib.
Add new parameter fanart to tvdb lib.
If no firstaired for an episode return None.
Remove old imports.
2017-06-14 21:56:36 +02:00
JackDandy
487a773ed1 Change add guidance when using the "unknown" quality selection. Pep8. 2016-11-16 22:18:48 +00:00
JackDandy
7b656dca02 Change factor TVDb lib artwork url to one function to remove duplicity issues. 2016-11-05 17:10:35 +00:00
Prinz23
44241a61a2 Fix TVDb search issue when only 1 result is returned. 2016-11-01 18:19:55 +00:00
JackDandy
b8c5eac61f Fix "error trying to retrieve image" from TVDb due to attempts made when there is no image to fetch. 2016-10-29 18:06:50 +01:00
JackDandy
145301e275 Change only show unaired episodes on Manage/Backlog Overview and Manage/Episode Status Management where relevant.
Change display show page, can mark unaired items with a date to "Wanted" to trigger a manual active backlog search provided search setting "Unaired episodes" is enabled.
2016-09-25 02:18:48 +01:00
Prinz23
9b3af8b84a Change optimise TheTVDB processes, 40% to 66% saved adding new and existing shows, 40% to 50% saved per show update.
Change improve shows with more episodes gain largest reductions in time spent processing.
Change when using "Add new show" reduce search time outs.
Change always allow incomplete show data.
Remove redundant config/general/"Allow incomplete show data".
2016-09-24 02:09:53 +01:00
JackDandy
9540ff3b52 Update TvDB API library 1.09 with changes up to (35732c9) and some pep8 and code cleanups. 2015-10-17 21:51:35 +01:00
Adam
e06e671d67 Fix to correctly load local libraries instead of system installed libraries
This fix correctly places the local libraries at the start of the sys.path such that they are loaded instead of any libraries that may already exist on the users system. This prevents the issue where a system library that isn't supported by SickGear is loaded and causes errors during operation.
2015-06-05 18:12:05 +08:00
JackDandy
f463ad5705 Fix issue, when adding an existing show set its default group to ensure it appears on the show list page. 2015-05-10 01:32:57 +01:00
JackDandy
837265b6f6 Change no longer fetch xml and zip and adjust code inline with library updates. 2015-04-29 02:09:06 +01:00
JackDandy
58d5452dc3 Change to gracefully handle some "key not found" failures when TVDB or TVRage return "Not Found" during show updates. 2015-03-19 15:40:12 +00:00
JackDandy
4ceee9a803 Fix typo for commit "ShowData handler" i.e. SHA-1:3eec217. 2014-11-21 00:55:41 +00:00
JackDandy
64bb3d53dc Fix a handler when EpisodeData is not available in tvdb and tvrage APIs
Addresses Traceback TypeError: list indices must be integers, not str. Is sometimes raised when doing a Force Full Update.
2014-11-20 21:25:44 +00:00
JackDandy
3eec21704a Fix a handler when ShowData is not available in tvdb and tvrage APIs.
"KeyError:<show_id>" Traceback is addressed.
2014-11-20 18:46:17 +00:00
adam
af1c16c4da Fix parsing utf8 data from tvdb and tvrage 2014-11-10 10:07:47 +08:00
JackDandy
6c8d72b9c1 Revert "Added gui for IMDB watchlists in Config General."
The main core of this code was lifted from Trakt code and not developed enough to be suitable for purpose given that the Trakt code isn't fully developed either. An issue found leading to this decision was that show statuses were set false instead of the expected default, however, worse was that users had no way of choosing shows to add, was not informed of what was actually going on once a URL was added to the UI, and was not offered options prior to adding shows like the normal add new show work-flow does. Basically, there are too many issues and this feature is too immature for inclusion.
2014-10-24 17:03:32 +01:00
KontiSR
7165df7405 Added gui for IMDB watchlists in Config General.
Used regex checks with javascript popup, for checking if valid imdb csv watchlist.
Added test/test_tvdb_api.py for testing the tvdb api for retrieving shows by IMDB id.

TODO: Help for assisting users in getting the correct IMDB url.
maybe, make interval configurable

First changes for imdb watchlist checker

Thrown the couch code overboard and created my own version of an imdb watchlist scraper

Added IMDB thread and test values with an IMDB csv url. These values should be replaced by front end UI settings.

- Removed some tracelogs when unable to download watchlist
- Added settings for enabling and setting of the watchlist csv url
TODO:
- create UI for setting from frontend
- Implement frontend and backend checks for validating the csv url

Default interval is 1 hour.
2014-09-30 12:25:11 +02:00
echel0n
67bd1a9e98 Fix for daily searches and high cpu usage plus increases search speed 2014-09-15 01:28:11 -07:00
echel0n
442631105b Fix for TypeError: list indices must be integers, not str in Indexer API code 2014-09-14 18:24:08 -07:00
echel0n
00a1ebfee3 Fixed TypeError: string indices must be integers error when mapping indexer id's
Added full delete feature to mass update, removes show from SR and deletes show folder from hard drive. Remove will just delete show from SR without deleting files from hard drive

Fixed XML errors for TVRage indexer api
2014-08-29 10:05:15 -07:00
echel0n
7cb2296b6a Fixed issue with reverts to master on startup due to bug in version checker.
Fixed issues with indexerApi caching code, seemed TVRage was really the only one experiancing the problems but has been corrected for theTVDB just in case.
2014-07-28 09:03:07 -07:00
echel0n
7dc89c084f Added ability to switch branches from general settings/advanced, will perform a forced checkout of whatever branch you choose and restart automatically.
Git updates are now forced to overwrite locale changes to avoid needing to manually stash uncommited changes before being able to proceed with a update.

Fixed indexer mapping when unable to locate show on indexer that we are trying to map to.
2014-07-27 11:39:02 -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
2c98a5a448 Fixed "show must be added to list", regexes now check if numbers following after the series name is a date or part of the series name to properly parse and return correct show object.
Fixes TVDB and TVRAGE cache_location variable.
2014-06-29 23:20:19 -07:00
echel0n
f247499289 Fix for _parseactors function in theTVDB Indexer API 2014-06-28 14:29:58 -07:00
echel0n
9685696e36 Fix for "TypeError: 'NoneType' object is unsubscriptable" in Indexer API code 2014-06-19 10:43:51 -07:00
echel0n
97a1693abf Fixes for TVDB and TVRage API search issues. 2014-06-07 17:43:58 -07:00
echel0n
cfcc35ebcc Upgraded IMDBpy and improved performance of it.
Fixed TVDB Indexer API issues.
2014-06-07 08:33:18 -07:00
echel0n
24dfbc3f15 Quality is now set during parsing of results.
Fixed more anime regex bugs.
Fixed Indexer API issues for anime shows and unicode problems.
2014-06-07 04:06:21 -07:00
echel0n
e7170328aa Fix for Indexer API issues 2014-06-03 22:20:54 -07:00
echel0n
8ac0b79986 Fixes originally aired dates and times issues. Please perform a mass update of all shows after updating to this new commit to have changes take affect. 2014-06-03 21:18:21 -07:00
echel0n
e62d5ad50c Fix for nonetype being returned when trying to load data from TVDB Api for actors. 2014-06-01 22:21:09 -07:00
echel0n
00f38a7157 Fix for new show searches 2014-05-29 07:00:41 -07:00
echel0n
e1ee01579d Fixed issues with TVDB retrieving banners and posters.
Fixed unicode issues with Indexer API's
Fixed issues with scene numbering.
Fixed issues with black and white lists for anime shows when editing a show.
2014-05-29 06:27:05 -07:00
echel0n
2dcd26e69c Update imdbpy libs to v5.0
Fixed invalid indexer id issues for TVRage shows.

Fixed issues for getting posters and backdrops for TVRage shows.

We now convert XML straight to a dict object for Indexer APIs, improved overall performance api's

Fixed issues with TVRage shows and displaying genre's properly.
2014-05-28 23:09:38 -07:00
Nils Vogels
ab89084688 tvdb_api update, backport from midgetspy
* Skip episodes which are missing SeasonNumber or Episode Number (or DVD_season or DVD_episodenumber)
* Avoid excessive calls to the ShowContainer garbage collection
* fix ShowContainer cache resizing
2014-05-03 00:28:36 +02:00
echel0n
a71ed25b19 Fixes issues with searches and importing existing shows 2014-04-25 14:22:31 -07:00