Commit graph

588 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Prinz23
3f3907324a Add status SNATCHED_BEST to missing places. 2017-10-31 20:49:04 +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
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
b6806359cf Merge branch 'master' into develop 2017-09-29 00:40:26 +01:00
JackDandy
a087a464eb Fix Media Providers/Custom Newznab tab action 'Delete' then 'Save Changes'. 2017-09-29 00:20:06 +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
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
35b282e797 Change add new zoneinfo_priority parameter to all gettz() calls. 2017-08-22 13:18:12 +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
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
JackDandy
9e7ad9f5b2 Add persistent hide/unhide cards to Add show/Trakt and Add show/IMDb Cards.
Change simplify dropdowns at all Add show/Cards.
2017-05-20 10:47:03 +01:00
Prinz23
9cdf57f989 Add Trakt watchlist to Add show/Trakt Cards.
Change revoke application access at Trakt when account is deleted in SG.
Add support for 'DELETE' and 'PUT' requests in libtrakt.
Fix use 'GET', 'POST' method in Trakt lib upgrade.
2017-05-20 10:47:02 +01:00
JackDandy
44c44d9351 Merge branch 'master' into develop 2017-04-24 18:54:36 +01:00
JackDandy
8e9ec6c334 Change add filter for thetvdb show overview and remove SpeedCD 'inspeed_uid' cookie requirement. 2017-04-24 18:51:35 +01:00
JackDandy
0e27335f26 Add option to limit WebDL propers to original release group under Config/Search/Media Search.
Background: Identical episodes can originate from multiple WEBDL sources, e.g. NF, AMZN, iTunes, TV networks. An episode without issue from one source may have a release 'Proper'd from another which leads to the good file being overwritten. This option is enabled by default to limit overwriting WEBDL media to releases that only come from the original release group.
2017-02-17 05:33:56 +00:00
JackDandy
fc5e0df46c Merge branch 'master' into develop 2017-02-17 05:11:53 +00:00
JackDandy
d97bb7174d Remove Torrentshack.
Change improve provider title processing.
Change improve handling erroneous JSON responses.
Change improve find show with unicode characters.
Change improve result for providers Omgwtf, SpeedCD, Transmithenet, Zoogle.
Change validate .torrent files that contain optional header data.
Fix case where an episode status was not restored on failure.
Add raise log error if no wanted qualities are found.
Change add un/pw to Config/Media providers/Options for BTN API graceful fallback (can remove Api key for security).
Change only download torrent once when using blackhole.
Add Cloudflare module 1.6.8 (be0a536) to mitigate CloudFlare (IUAM) access validator.
Add Js2Py 0.43 (c1442f1) Cloudflare dependency.
Add pyjsparser 2.4.5 (cd5b829) Js2Py dependency.
2017-02-17 04:48:49 +00:00
Prinz23
87e608f277 Add scheduled backlog switch. 2017-02-15 00:51:52 +00:00
JackDandy
08854942aa Change add IPv4 config option when enabling IPv6. 2017-02-09 20:48:46 +00:00
JackDandy
3337e77466 Merge branch 'master' into develop 2017-01-16 17:21:59 +00:00
JackDandy
160f7a552b Change TD search URL and fix saving Media Providers when either Search NZBs/Torrent is disabled. 2017-01-16 16:52:37 +00:00
JackDandy
9cdc03c55e Add display unaired season 1 episodes of a new show in view modes regular and pro I. 2017-01-01 18:07:46 +00:00
JackDandy
f356099293 Change Config/Media Providers/Custom Newznab "Extra categories..." for disabled nzb providers. 2016-12-21 19:46:51 +00:00
Prinz23
2b27e3bb74 Change don't fetch caps for disabled usenet providers. 2016-12-21 19:42:00 +00:00
JackDandy
0bcc2c03e6 Change fanart images to not use cache as cache is not required.
Change rename "Manual Post-Processing" menu item to "Process Media".
Change rename "Search Providers" -> "Media Providers".
Change rename "Manage Searches" -> "Media Search".
Change rename "Episode Status Management" -> "Episode Status".
Change rename "Mass Update" -> "Bulk Change".
Change indicate default home on "Shows Menu".
Change relocate "Episodes" menu to "Shows"/"Episode Schedule".
Change relocate "History" menu to "Shows"/"History".
Change remove restart/shutdown buttons from "Show List".
Change remove superfluous buttons from all submenus.
2016-12-18 22:17:40 +00:00
JackDandy
6fcf80c02d Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-12-16 21:03:14 +00:00