Commit graph

2178 commits

Author SHA1 Message Date
Prinz23
9f04beeabb Fix Events shutdown (a manual start-up is required after updating to this fix). 2018-01-04 16:47:44 +00:00
JackDandy
149ea890c6 Merge branch 'master' into develop 2018-01-02 15:37:55 +00:00
JackDandy
2536c4b7d8 Fix marking episode as to upgrade. 2018-01-02 15:35:33 +00:00
Prinz23
c4e227b583 Change improve core scheduler logic.
Add pause support to scheduler.
Add optional check_paused in scheduler that can be integrated into action classes.
Add check to config.py change events.
Change integrate check_paused into auto_post_processer, search_propers, subtitles.
Change rename _pause to _unpause to prevent confusion of meaning.
2017-12-27 18:01:00 +00:00
JackDandy
1cec88c5a2 Fix HD4Free provider. 2017-12-27 15:32:38 +00:00
Prinz23
6da32a5ed0 Add log message for not found on indexer when adding a new show.
Fix upgrade once ARCHIVED setting by postProcessor.
Fix determination of is_first_best_match.
Change improve smart selection of categories in manual and failed search modes.
Change refactor wantedQuality into own function that can be used in multiple places.
Change improve error resistance in neededQualities class.
Add log warning message if wantedQuality or eps_aired_in_season is missing for search.
Add check backlogitem for wantedQuality and add if missing.
Add use wantedQuality list in wantEpisode.
Change don't use wantedQualities for multipart.
2017-12-27 03:14:20 +00:00
JackDandy
8d97f2664a Add ETTV and PotUK providers, fix BTScene and Lime. 2017-12-22 19:37:14 +00:00
Prinz23
f1958535d2 Change improve usage of the optional regex library.
Limit possible regex errors to 20% of extra_info up to max 3 errors.
2017-12-13 02:02:23 +00:00
JackDandy
ad63608cad Change improve multi episode release search. 2017-12-13 01:41:34 +00:00
JackDandy
3848569fe4 Fix MediaBrowser Season##\metadata. 2017-12-11 16:36:10 +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
JackDandy
cceb010e0e Fix metadata Season Posters and Banners. 2017-12-10 20:19:58 +00:00
Prinz23
610ced28b8 Fix wanted episodes. 2017-12-07 15:28:54 +00:00
JackDandy
c3a4e12746 Fix setting items to Failed on Manage/Episode Status page.
Fix history page provider icons in Layout Detailed.
2017-12-06 18:28:04 +00:00
JackDandy
a6ce206c88 Change, decouple files exist count from status set as downloaded count.
Change displayShow to include all qualities in snatch/download/archived counts.
2017-12-05 17:00:47 +00:00
JackDandy
22ce0203cf Add quality tag to archived items, improve displayShow/"Change selected episodes to".
Use to prevent "Update to" on those select episodes while preserving the downloaded quality.
Change group "Downloaded" status qualities into one section.
Add "Downloaded/with archived quality" to set shows as downloaded using quality of archived status.
Add "Archived with/downloaded quality" to set shows as archived using quality of downloaded status.
Add "Archived with/default (min. initial quality of show here)".
Change when settings/Post Processing/File Handling/Status of removed episodes/Set Archived is enabled, set status and quality accordingly.
Add downloaded and archived statuses to Manage/Episode Status.
Add quality pills to Manage/Episode Status.
Change Manage/Episode Status season output format to be more readable.
Change add SNATCHED_ANY and ARCHIVED, refactor accordingly.
2017-12-04 19:27:50 +00:00
Prinz23
0311b2777d Change implement the __ne__ none equality method into the ParseResult class. 2017-12-04 17:17:14 +00:00
JackDandy
ab0f8576c9 Change simplify use of provider parameter scene/process_name. 2017-12-04 15:22:06 +00:00
JackDandy
47eab61c01 Add Blutopia torrent provider. 2017-12-04 13:42:33 +00:00
JackDandy
f6f0323248 Change parse 1080p Bluray AVC/VC1 to a quality instead of unknown. 2017-12-04 13:06:27 +00:00
Prinz23
8aa2889537 Change if a newly added show is not found on indexer, remove already created empty folder. 2017-12-02 20:54:39 +00:00
JackDandy
f1e9249f59 Fix NotifierFactory attribute enabled_ondownloadsubtitles should be enabled_onsubtitlesdownload. 2017-12-02 19:44:51 +00:00
Prinz23
0216658231 Add db.mass_upsert_sql
Example usage:
my_db = db.DBConnection()
cl = []
for i in list:
	cl.extend(db.mass_upsert_sql(
		'tablename',
		{'fieldname': 'some value'},
		{'where clause field(s)': 'value'}))
if cl:
	my_db.mass_action(cl)
2017-11-15 17:23:13 +00:00
JackDandy
5df78383b3 Change reenable Trakt Notifier to update collections at end of PP.
Change add tips for what to use for Growl notifications on Windows.
2017-11-15 10:53:39 +00:00
JackDandy
efd9095f3f Merge branch 'master' into develop 2017-11-12 18:45:53 +00:00
Prinz23
cda654a17b Change improve .nzb handling.
Remove release group requirement from nzbSplitter.
Add optional lxml import and remove cElementTree requirement.
Skip none string tags in nzb.
2017-11-12 18:42:10 +00:00
Prinz23
23a77fb88c Change use value of "Update shows during hour" in General Settings straight after it is saved instead of after restart. 2017-11-10 23:58:47 +00:00
JackDandy
eb459d8f50 Merge branch 'master' into develop 2017-11-01 12:28:44 +00:00
JackDandy
b8ddf97b11 Change qBittorent to handle the change to its API success/fail response.
qB changed how it responds to API action from '' to 'Ok.' and 'Fails.', therefore breaking apps.
2017-11-01 12:27:26 +00:00
Prinz23
3f3907324a Add status SNATCHED_BEST to missing places. 2017-10-31 20:49:04 +00:00
Prinz23
406c9ad6c6 Change reduce number of DB calls for extra_info_no_name.
Add parse repack, proper level to recent search flow.
2017-10-31 20:35:57 +00:00
JackDandy
6f12be2340 Change get_size to return zero for a dir that doesn't exist. 2017-10-31 00:32:52 +00:00
JackDandy
914606449b Change use scantree for helpers get_size. 2017-10-30 22:32:21 +00:00
Prinz23
05758bb75e Change overhaul handling of PROPERS/REPACKS/REAL.
Add restriction to allow only same release group for repacks.
Change try all episode names with 'real', 'repack', 'proper'.
Add flags table to store when one-off operations have been performed.
Change update history.tbl with action SNATCHED_PROPER on existing items.
Change save proper snatches as action SNATCHED_PROPER + quality into history.tbl
Add optional regex lib with fuzzy (errors ~20% of alpanum chars) for extra_info_no_name.
Add tip to search settings/media search about improved matching with optional regex library.
2017-10-30 22:21:55 +00:00
JackDandy
42db53f114 Change Bulk Changes and Notifications save to be web_root setting aware.
Change subtitle addons no longer need to be saved before Search Subtitles is enabled as a forbidden action to reuse an exited FindSubtitles thread is no longer attempted.
Fix tools menu not opening for some browsers.
2017-10-29 09:42:05 +00:00
JackDandy
32abe37dd9 Change a link to include webroot for "plot overview for this ended show". 2017-10-28 18:55:02 +01:00
JackDandy
3fa750651c Change overhaul Notifications, add Notifier Factory and DRY refactoring.
Notifiers are now loaded into memory on demand.
Add bubble links to Notifications config tabs.
Add Discordapp notifier to Notifications config/Social.
Add Gitter notifier to Notifications config/Social.
Change order of notifiers in Notifications config tabs.
Remove Pushalot notifier.
Remove XBMC notifier.

Refactor update_library, notify, test notify and test results functions.
Change most IDs and vars consistent for HTML, CSS, JS, and Python - related to notifications, camelCase for JS, underscore separated lower_case for python, hyphen separated-lowercase for CSS. A couple of exceptions have been left untouched in this clean up.
Change commented out some unused vars in preparation for later removal.
2017-10-25 16:51:44 +01:00
JackDandy
5299dd3702 Merge branch 'master' into develop 2017-10-25 16:14:01 +01:00
JackDandy
6edefc84ca Change improve TVChaos parser. 2017-10-25 16:10:57 +01:00
JackDandy
ee70efe082 Add file name to possible names in history lookup post processing.
Add garbage name handling to name parser.
2017-10-25 04:34:24 +01:00
Prinz23
7518837d4f Add file_name to possible names in history lookup post processing.
Add is_basedir check, default to True.
Assume multiple shows during pp as default.
2017-10-15 19:20:44 +01:00
JackDandy
6484d9f013 Change after SG is updated, don't attempt to send a Plex client notifications if there is no client host set.
Fix error after SG is updated and where Slack notifier is not enabled.
2017-10-15 19:13:41 +01:00
JackDandy
e35b67e06f Change enable TorrentBytes provider and improve handling of relative download links from providers. 2017-10-15 02:05:33 +01:00
JackDandy
cdc3a7c2df Merge branch 'master' into develop 2017-10-13 03:25:13 +01:00
JackDandy
ac98b3e202 Change improve handling of torrent auth failures. 2017-10-11 23:12:30 +01:00
JackDandy
a61d80c843 Merge branch 'master' into develop 2017-10-11 02:08:40 +01:00
JackDandy
d125563e2b Change improve PA torrent access. 2017-10-11 02:05:58 +01:00
JackDandy
977f52c2f8 Merge branch 'master' into develop 2017-10-06 23:00:48 +01:00
JackDandy
6796059e1b Change improve handling of connection failures for metadata during media processing. 2017-10-06 22:58:23 +01:00
JackDandy
b6806359cf Merge branch 'master' into develop 2017-09-29 00:40:26 +01:00
Prinz23
df7938a516 Fix enforce value API expects for paused show flag. 2017-09-29 00:37:14 +01:00
JackDandy
a087a464eb Fix Media Providers/Custom Newznab tab action 'Delete' then 'Save Changes'. 2017-09-29 00:20:06 +01:00
JackDandy
208c284e6b Merge branch 'master' into develop 2017-09-17 09:08:31 +01:00
JackDandy
6ae5491476 Fix provider nCore.
Change .torrent checker due to files created with qB 3.3.16 (affects nCore and NBL).
2017-09-17 09:06:26 +01:00
JackDandy
87ac49322a Change improve Slack notifier. 2017-09-16 15:04:31 +01:00
Brett Pemberton
c2fcf37498 Add Slack Notifications. 2017-09-16 00:25:39 +01:00
JackDandy
b203fb588e Change improve indication of abandoned IDs.
Add warn icon indicator of abandoned IDs to "Manage" menu bar and "Manage/Show Processes" menu item.
Add shows that have no replacement ID can be ignored at "Manage/Show Processes", the menu bar warn icon hides if all are ignored.
2017-09-12 01:43:35 +01:00
Prinz23
75f59d717e Change add switchIgnoreWarning and log_num_not_found_shows to PageTemplate. 2017-09-11 17:12:39 +01:00
Prinz23
749f7bcd91 Change prevent showing 'Mark download as bad and retry?' dialog when status doesn't require it 2017-09-11 16:59:34 +01:00
JackDandy
23fd0bb3a9 Add changeable master Show ID when show no longer found at TV info source.
Add guiding links to assist user to change TV Info Source ID.
Change Edit Show/Other to expose editing of master ID field *when* required.
Change add feature to search for a replacement master ID *when* required.
2017-09-05 00:23:18 +01: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
JackDandy
11711b2238 Change show search, add options to choose order of search results.
Add option to sort search results by 'A to Z' or 'First aired'.
Add option to sort search results by 'Relevancy' using Fuzzywuzzy lib.
Change search result anchor text uses SORT_ARTICLE setting for display.
Change add server side search result ordering.
Change use iteritems instead of items to improve performance.
Change existing shows in DB are no longer selectable in result list.
Change add image to search result item hover over.
Change improve image load speed on browse Trakt/IMDb/AniDB pages.
Change PEP8.
2017-09-04 02:41:25 +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
JackDandy
292312636e Merge pull request #980 from JackDandy/feature/FixTvdbV2
Fix image not loaded from tvdb_api if there is only one poster/banner.
2017-08-27 02:04:05 +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
JackDandy
253f2237cc Merge branch 'master' into develop 2017-08-26 18:20:00 +01:00
Prinz23
11d283910e Change prevent indexer specific release name parts from fudging search logic. 2017-08-26 18:15:06 +01:00
JackDandy
16d012cfb2 Add TorrentVault torrent provider. 2017-08-25 18:13:08 +01:00
JackDandy
64e12fd28a Add WorldOfP2P torrent provider. 2017-08-25 14:04:16 +01:00
JackDandy
1e4562a39d Add SceneHD torrent provider. 2017-08-24 12:36:23 +01:00
JackDandy
297c4a2785 Add MagnetDL torrent provider.
DRY refactor download_file with getURL.
2017-08-24 02:40:28 +01:00
JackDandy
92ef777f2b Merge branch 'master' into develop 2017-08-22 19:03:31 +01:00
JackDandy
d3f8be8c3d Change add a generic ping function, enabled by update_freq. 2017-08-22 18:16:25 +01:00
Prinz23
9d9dee175f Add optional start and stop ping threads, during start, shutdown and saving providers. 2017-08-22 18:16:24 +01:00
Prinz23
4d84bacb5b Change don't allow none strings for episode names.
Change add log message if dirtysetter doesn't set a property.
2017-08-22 14:29:50 +01:00
JackDandy
f97dac58b7 Change episodes older than 1970 may already exist.
Change compare file mtime as int to epoch.
Change handle datetime_to_epoch error.
2017-08-22 13:18:13 +01:00
Prinz23
a74f022ea3 Change file modify date of episodes older than 1970 can be changed to airdate, log warning on set fail. 2017-08-22 13:18:13 +01:00
Prinz23
35b282e797 Change add new zoneinfo_priority parameter to all gettz() calls. 2017-08-22 13:18:12 +01:00
George Hafiz
7557f51d3c Change post processor, ignore symlinks found in process_dir. 2017-08-20 14:59:37 +01:00
JackDandy
5e558ecadd Merge branch 'master' into develop 2017-08-20 13:09:06 +01:00
Prinz23
1bd9cf863e Fix infinite loop loading network_timezones.
Change add optional "stack_size" setting as integer to config.ini under "General" stanza.
Change prevent too many retries when loading network timezones, conversions, and zoneinfo in a short time.
Update to UnRar 5.50 beta 6.
2017-08-20 13:05:25 +01:00
JackDandy
fa62eedfa7 Change improve ABD releases post processing.
Change add p2p 720HD tag to file name quality parse.
Change add month name support to uk date parse.
Change add short year support to uk date parse.
Change add part/pt number pairing with episode name from tv info source.
Fix fetch db history item in check_name.
2017-08-20 03:26:39 +01:00
Prinz23
33a36432d8 Change improve newnab autoselect categories.
Change add nzb.org BoxSD and BoxHD categories.
Change improve category exclude logic for newznab.
Change add WEB-DL category to autoselect categories for newznab.
Change comment out HEVC category parsing since it's not auto selected.
2017-08-19 15:53:59 +01:00
JackDandy
5203784f36 Merge branch 'master' into develop 2017-08-01 21:36:14 +01:00
JackDandy
cbe8b6b37c Remove provider SceneAccess. 2017-08-01 21:32:48 +01:00
JackDandy
74bd52681d Merge branch 'master' into develop 2017-07-31 20:53:55 +01:00
Prinz23
b0890ae17f Fix copy post process method on posix. 2017-07-31 20:51:46 +01:00
Prinz23
3e9a9095a6 Change make indexer lookup optional in NameParser, and deactivate during searches. 2017-07-21 22:39:08 +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
6f5100c541 Change showupdate add integrity safeguards and improve image processing. Add an episode view filter, improve WEB PROPER selection.
Change show update, don't delete any ep in DB if eps are not returned from indexer.
Change prevent unneeded error message during show update.

Change improve performance, don't fetch episode list when retrieving a show image.
Change don't remove episodes from DB with status: SNATCHED, SNATCHED_PROPER, SNATCHED_BEST, DOWNLOADED, ARCHIVED, IGNORED.
Change add additional episode removal protections for TVDb_api v2.

Change filter SKIPPED items from episode view.
Change improve clarity of various error message by including relevant show name.
Change extend WEB PROPER release group check to ignore SD releases.
2017-07-21 11:34:32 +01:00
Prinz23
dd7d5bcfec Change improve post processing by using more snatch history data.
Add try to match .nzb or .torrent name in history for pp, fallback to dirname.
Add showObj lookup to scheduled pp.
Add a debug log message for snatched shows found in history during post processing.
Add use filename of largest video file for history lookups.
2017-07-21 03:02:11 +01:00
JackDandy
8b384e22d7 Merge branch 'master' into develop 2017-07-18 16:57:01 +01:00
Prinz23
6d8b665149 Remove obsolete tvrage_api lib. 2017-07-18 16:55:04 +01:00
JackDandy
873485f02e Merge branch 'master' into develop 2017-07-13 20:25:20 +01:00
JackDandy
9e32a1521d Fix "Server failed to return anything useful" when should be using cached .torrent file.
Fix displayShow 'Unaired' episode rows change state where appropriate.
Change displayShow to stop requiring an airdate for checkboxes.
2017-07-13 20:23:13 +01:00
Prinz23
39b162419c Change editshow saving empty scene exceptions.
Change replace invalid scene exceptions table season column with -1.
Fix already saved invalid scene_exceptions.
2017-07-12 12:54:18 +01:00
Prinz23
09f511c710 Change only use newznab Api key if needed. 2017-07-12 11:56:48 +01:00
JackDandy
ea1ccbdc98 Merge branch 'master' into develop 2017-06-20 00:38:39 +01:00
JackDandy
62b68375d4 Change provider Bit-HDTV user/pass to cookie. 2017-06-20 00:35:25 +01:00
JackDandy
f1a17ea879 Merge branch 'master' into develop 2017-06-15 04:24:25 +01:00