Commit graph

2235 commits

Author SHA1 Message Date
Prinz23
c6e47a9bed Fix overwriting repack where renamed filename has '-' in title.
Change prevent overwriting release_name field with filename, if already set.
2018-03-23 23:02:58 +00:00
JackDandy
ae6289695f Change notify enabled Emby, Kodi, and Plex clients to update on deleted. 2018-03-20 14:17:41 +00:00
JackDandy
f213cd9ccc Merge branch 'master' into develop 2018-03-19 13:13:19 +00:00
JackDandy
9225c84016 Change remove dead tor caches and stop searching episodes that have a magnet saved.
Change AlphaRatio provider freeleech mode; prevent spoiling user ratio from ambiguous filtered results.

The AR "Freeleech" search filter has changed to additionally return "Timed" and "Expired" freeleech items. However, this change makes results ambiguous to the point that a ratio can be ruined if an item snatched is expired or expiring. Therefore, when freeleech mode is active for this provider, all except pure *freeleech* items are discarded from results.
2018-03-19 13:11:25 +00:00
JackDandy
2155d5205b Add showRSS torrent provider. 2018-03-19 13:09:01 +00:00
JackDandy
ae7cdbd3cf Change some log messages from info to debug type. 2018-03-19 11:36:05 +00:00
JackDandy
0b14b251a2 Change add map parent folder setting at Notifications for Emby, Kodi, and Plex. 2018-03-15 14:52:16 +00:00
JackDandy
d109b752db Merge branch 'master' into develop 2018-03-13 22:05:25 +00:00
JackDandy
8d30118e14 Fix changing status from "Skipped" to "Wanted" in Manage/Episode Status. 2018-03-13 22:02:53 +00:00
JackDandy
f1768f68e8 Merge branch 'master' into develop 2018-03-12 21:29:10 +00:00
JackDandy
3ea006912d Add DrunkenSlug usenet provider and fix PiSexy torrent provider. 2018-03-12 21:25:24 +00:00
JackDandy
8d9406d5fc Add choose to delete watched episodes from a list of played media at Kodi, Emby, and/or Plex.
Add episode watched state system that integrates with Kodi, Plex, and/or Emby, instructions at Shows/History/Layout/"Watched".
Add installable SickGear Kodi repository containing addon "SickGear Watched State Updater".
Change add Emby setting for watched state scheduler at Config/Notifications/Emby/"Update watched interval".
Change add Plex setting for watched state scheduler at Config/Notifications/Plex/"Update watched interval".
Add API cmd=sg.updatewatchedstate, instructions for use are linked to in layout "Watched" at /history.
Change history page table filter input values are saved across page refreshes.
Change history page table filter inputs, accept values like "dvd or web" to only display both.
Change history page table filter inputs, press 'ESC' key inside a filter input to reset it.
Add provider activity stats to Shows/History/Layout/ drop down.
Change move provider failures table from Manage/Media Search to Shows/History/Layout/Provider fails.
Change sort provider failures by most recent failure, and with paused providers at the top.
Change remove table form non-testing version 20007, that was reassigned.
2018-03-06 02:12:45 +00:00
JackDandy
04c129be4f Merge branch 'master' into develop 2018-03-05 16:00:14 +00:00
JackDandy
a71e186973 Fix saving multiple account "Update collection" selection at config/notifications Trakt.
Change config/notifications remove redundant values being sent when saving.
2018-03-05 15:40:07 +00:00
Prinz23
ab3e6e0649 Fix Trakt, recommended and watchlist (send_oauth is now sent). 2018-03-01 15:59:17 +00:00
JackDandy
275f4f157b Merge branch 'master' into develop 2018-02-23 22:15:55 +00:00
JackDandy
a08fb81b40 Fix sending notification on snatch or download to Kodi/Emby.
Fix config/notifications/Pushover priority selector.
Remove NZB.is and HD4Free providers.
2018-02-23 22:13:58 +00:00
JackDandy
1d09d1f4da Merge branch 'master' into develop 2018-02-19 00:00:26 +00:00
JackDandy
02c6eb1f56 Add Paramount Network icon.
Change strict modes for a couple of subliminal cases.
2018-02-18 23:52:44 +00:00
JackDandy
875530ce5a Merge branch 'master' into develop 2018-02-07 16:04:23 +00:00
JackDandy
16d7c032b4 Change add handling for where requesting disk freespace is denied permission on some Linux distros. 2018-02-07 15:59:55 +00:00
JackDandy
d89c8a0fb3 Add non standard multi episode name parsing e.g. S01E02and03 and 1x02and03and04. 2018-02-07 02:00:33 +00:00
JackDandy
50b7551d91 Fix API typo and a regression 'archivefirstmatch'. 2018-02-06 00:18:01 +00:00
Prinz23
6f9db7f3b4 Add SickGear-NZBGet dedicated post processing script, see.. \autoProcessTV\SickGear-NG\INSTALL.txt 2018-02-05 23:51:37 +00:00
JackDandy
f7f59f2aac Merge branch 'master' into develop 2018-02-03 22:57:44 +00:00
JackDandy
fae9ae6bb7 Change terminology around the custom quality selection to improve clarity.
Change restrict changing custom download qualities to reasonable selections.
Add upgrade to quality selections on Add show page and Import existing show page.
2018-02-03 22:41:52 +00:00
Prinz23
8df50c6cdf Change remove some non-release group stuff from newnab results. 2018-02-02 04:25:37 +00:00
JackDandy
9abc7e0105 Change DRY the browse_trakt function that was duplicated with slight changes for API. 2018-02-02 03:42:11 +00:00
Prinz23
fe1aabca00 Change overhaul and add API functions
Change API version... start with 10
Change set application response header to 'SickGear' + add API version
Change return timezone (of network) in API
Add indexer to calls
Add SickGear Command tip for old SickBeard commands
Add warning old sickbeard API calls only support tvdb shows
Add "tvdbid" fallback only for sickbeard calls
Add listcommands
Add list of all commands (old + new) in listcommand page at the beginning
Change hide 'listcommands' command from commands list, since it needs the API builder CSS + is html not json
Add missing help in webapi
Add episode info: absolute_number, scene_season, scene_episode, scene_absolute_number
Add fork to SB command
Add sg
Add sg.activatescenenumbering
Add sg.addrootdir
Add sg.checkscheduler
Add sg.deleterootdir
Add sg.episode
Add sg.episode.search
Add sg.episode.setstatus
Add sg.episode.subtitlesearch
Add sg.exceptions
Add sg.forcesearch
Add sg.future
Add sg.getdefaults
Add sg.getindexericon
Add sg.getindexers to list all indexers
Add sg.getmessages
Add sg.getnetworkicon
Add sg.getrootdirs
Add sg.getqualities
Add sg.getqualitystrings
Add sg.history
Add sg.history.clear
Add sg.history.trim
Add sg.listtraktaccounts
Add sg.listignorewords
Add sg.listrequiedwords
Add sg.logs
Add sg.pausebacklog
Add sg.postprocess
Add sg.ping
Add sg.restart
Add sg.searchqueue
Add sg.searchtv to search all indexers
Add sg.setexceptions
Add sg.setignorewords
Add sg.setrequiredwords
Add sg.setscenenumber
Add sg.show
Add sg.show.addexisting
Add sg.show.addnew
Add sg.show.cache
Add sg.show.delete
Add sg.show.getbanner
Add sg.show.getfanart
Add sg.show.getposter
Add sg.show.getquality
Add sg.show.listfanart
Add sg.show.ratefanart
Add sg.show.seasonlist
Add sg.show.seasons
Add sg.show.setquality
Add sg.show.stats
Add sg.show.refresh
Add sg.show.pause
Add sg.show.update
Add sg.shows
Add sg.shows.browsetrakt
Add sg.shows.forceupdate
Add sg.shows.queue
Add sg.shows.stats

Change sickbeard to sickgear
Change sickbeard_call to property
Change sg.episode.setstatus allow setting of quality
Change sg.history, history command output
Change sg.searchtv to list of indexers
Add uhd4kweb to qualities
Add upgrade_once to add existing shows
Add upgrade_once to add new show
Add upgrade_once to show quality settings (get/set)
Add 'ids' to Show + Shows
Add ids to coming eps + get tvdb id from ids
Add 'status_str' to coming eps
Add 'local_datetime' to comming eps + runtime
Add X-Filename response header to getbanner, getposter
Add X-Fanartname response header for sg.show.getfanart

Add missing fields to sb.show
Add missing fields to sb.shows
Change sb.seasons
Change overview optional
Change make overview optional in shows
Add setscenenumber to API builder
Change move set_scene_numbering_helper into scnene_numbering for use in web interface and API
Change use quality_map instead of fixed list
Add eigthlevel for API/builder page
Change limit indexer param to valid values
Fix wrong parameter in existing apiBuilder.tmpl that prevents javascript from continuing + add console error message for it
Fixed: filter missed shows correctly
Add @gen.coroutine
2018-02-02 03:12:07 +00:00
Prinz23
6c3f70c2fe Fix web type detection for new propers. 2018-01-31 19:56:14 +00:00
Prinz23
8bc048c784 Add support for a testing.db version (>=100000).
A testing.db has a one time stand-alone version number.
None matching test db to required db will always downgrade to release db (after that the normal up/downgrade db process is run).
Add TEST_BASE_VERSION to all db's, used by test versions and set to the base production db version that the test db is based on.
Add a unit_test to make sure a test_base_version is set for test db's.
Change load rollback module only once.
2018-01-30 17:57:15 +00:00
JackDandy
555a69597d Change TBy prov add UHD cat. 2018-01-30 17:38:46 +00:00
JackDandy
e630cc0fdf Change layout of quality custom to improve clarity.
Change tweak text of SD DVD to include BD/BR.
2018-01-29 19:26:52 +00:00
Prinz23
dca5bc6856 Fix load web dl types from db if url fetching fails. 2018-01-27 19:33:12 +00:00
JackDandy
56d8fffb9f Change UI footer tweaks + only display footer propers time if option is actually enabled. 2018-01-27 17:00:52 +00:00
Prinz23
6e2788fd8e Change integrate proper search into recent search.
Add webdl types/sources.
Add basic tests for get_webdl_type() in properfinder.
Add properFinder _get_codec tests.
2018-01-27 16:16:34 +00:00
JackDandy
3c0d0f5b00 Add footer icon button to switch time layouts. 2018-01-26 21:27:09 +00:00
JackDandy
2d858f452e Fix save option display freespace. 2018-01-26 10:45:07 +00:00
JackDandy
57851d63b7 Merge branch 'master' into develop 2018-01-26 10:38:01 +00:00
JackDandy
4bfca483af Fix saving config general. 2018-01-26 10:33:07 +00:00
JackDandy
0ead7771de Change improve the manage searches error stats UI and backend functions.
Add the improved error handling to torrent providers.
Change cache_db to always include db upgrade statements when running SG for the first time.
Change split newznab limit logic into a reusable function, hit_limit_update() and use in BTN prov.
Change tweak CSS to make things a little neater with button spacings.
Add the actual time when current limit will expire to the UI.
Change instead of terminology "errors", use "failures".
Change improve BTN error handling.
Change ensure provider name is output to log at times where it wasn't.
Change ensure failed request URLs and POST params are output to log.
Add time of last failure + type to should_skip log message.
Change code DRY and simplification for improved readability.
Change occurrences of "error" to "fail" for consistency.
Add tmr limit handling to omg and change log_failure_url level to warning.
Change log the failed URL when an API hit limit is reached.
Change "hit" to the more universally generic "tmr" - Too Many Requests.
Change Db columns containing "hit_" are renamed "tmr_"
2018-01-26 01:35:02 +00:00
Prinz23
f9cc6ed330 Add provider error table to page Manage/Media Search.
Add failure handling, skip provider for x hour(s) depending on count of failures.
Add detection of api hit limit reached.
Add failure count to omgwtfnzbs.
Change improve categories selection (manual search for example).
2018-01-25 20:48:24 +00:00
JackDandy
09d0157f67 Add option "Display disk free" to general config/interface page (default enabled). 2018-01-25 20:22:34 +00:00
JackDandy
c1b1b36c3f Merge branch 'master' into develop 2018-01-25 19:59:01 +00:00
JackDandy
4dea2ad022 Add config/general/web interface/send security headers (default enabled).
Change use bare minimum requests for all usenet_crawler search modes.
Change use RSS endpoint for usenet_crawler in cache mode.
Fix ensure remaining unicode shownames are correctly 'UTF-8' and url encoded.
Fix omgwtf test of invalid auth, issue when enabling propers, and updating cache.
Change refactor shownames list into reusable show_name_helper methods.
Add season specific naming exceptions to nzb + btn.
2018-01-25 19:49:28 +00:00
Prinz23
11dfd66efd Fix ensure url unicode shownames are correctly 'UTF-8' and urlencoded.
Refactor shownames list into generic provider method, reusable in multiple providers.
Add remove English at the end of release names (drunkenslug).
2018-01-25 16:14:39 +00:00
JackDandy
e16f30a43f Merge branch 'master' into develop 2018-01-19 00:44:59 +00:00
Prinz23
2f182860e5 Fix setting episode status when testing for if it should be deleted.
Restrict setting newly added old episodes to WANTED to the last 90 days, older are set to SKIPPED.
2018-01-19 00:39:48 +00:00
JackDandy
16965960db Merge branch 'master' into develop 2018-01-16 01:18:56 +00:00
JackDandy
9ba8a206e3 Remove provider TorrentVault. 2018-01-16 01:11:46 +00:00
JackDandy
302121503c Merge branch 'master' into develop 2018-01-15 17:37:29 +00:00
JackDandy
cf40431bfb Fix issue fetching data in a rare case. 2018-01-15 17:35:27 +00:00
JackDandy
a730f41d46 Add 'PB', 'EB', 'ZB', 'YB' to recognised output sizes. 2018-01-15 03:00:07 +00:00
JackDandy
1f057a4f3c Change improve media process to parse anime format 'Show Name 123 - 001 - Ep 1 name'. 2018-01-12 22:12:34 +00:00
JackDandy
c9802126d9 Add free space stat (if obtainable) of parent folder(s) to footer. 2018-01-09 23:47:36 +00:00
JackDandy
f628f26027 Merge branch 'master' into develop 2018-01-08 17:19:02 +00:00
Prinz23
e58436e85d Fix "Upgrade once" for wanted qualities.
Fix criteria selection for "Upgrade once" shows: manual searches and/or if episode is set to unwanted quality.
Add unit test of wantedQualities to common_tests.py
2018-01-08 17:16:11 +00:00
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