Commit graph

90 commits

Author SHA1 Message Date
Prinz23
2c9509f715 Fix name_parser_tests for test_extra_info_no_name.
Add extra test for re lib if regex is installed.
Save and restore parser.regex before/after test run (for possible other tests classes).
2018-05-14 02:50:37 +01:00
Prinz23
0fe11e4d7f Change improve tolerance to parse a release title with a badly placed episode name.
Add extra_info_no_name() tests to name_parser_tests.
2018-05-14 01:01:57 +01:00
Prinz23
f8fd89baeb Fix marking episodes wanted due to parsing malformed non-anime release name as an anime season pack.
Change disallow anime regex matches for non-anime shows.
Change add unit test for invalid (numbered) show releases (non-anime show with anime numbering).
Change speed optimization, compile static name parser regexes once, instead of for every NameParser instance.
Change remove redundant create regexs log messages removing <10% log spam.
2018-04-26 01:48:23 +01:00
JackDandy
d89c8a0fb3 Add non standard multi episode name parsing e.g. S01E02and03 and 1x02and03and04. 2018-02-07 02:00:33 +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
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
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
1f057a4f3c Change improve media process to parse anime format 'Show Name 123 - 001 - Ep 1 name'. 2018-01-12 22:12:34 +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
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
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
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
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
Prinz23
4a466666ea Add detection of '1080p Remux' releases as fullhdbluray. 2017-02-15 00:16:16 +00:00
JackDandy
5bdee041ed Add UK date format handling to name parser. 2016-12-28 01:47:50 +00:00
JackDandy
b9b6f70691 Change logger to properly cleanup used resources.
Fix rTorrent auth and magnet issue.
Change only backup db when necessary.
2016-12-09 20:08:41 +00:00
JackDandy
487a773ed1 Change add guidance when using the "unknown" quality selection. Pep8. 2016-11-16 22:18:48 +00:00
JackDandy
781d93597c Change consolidate shutdown with restart, improve systemd support, bring order to on-init globals. 2016-11-13 01:52:34 +00:00
Prinz23
d3a7f0ff5e Add smart logic to reduce api hits to newznab server types and improve how nzbs are downloaded.
Add newznab smart logic to avoid missing releases when there are a great many recent releases.
Change improve performance by using newznab server advertised capabilities.
Change config/providers newznab to display only non-default categories.
Change use scene season for wanted segment in backlog if show is scene numbering.
Change combine Manage Searches / Backlog Search / Limited and Full to Force.
Change consolidate limited and full backlog.
Change config / Search / Backlog search frequency to instead spread backlog searches over a number of days.
Change migrate minimum used value for search frequency into new minimum 7 for search spread.
Change restrict nzb providers to 1 backlog batch run per day.
Add to Config/Search/Unaired episodes/Allow episodes that are released early.
Add to Config/Search/Unaired episodes/Use specific api requests to search for early episode releases.
Add use related ids for newznab searches to increase search efficiency.
Add periodic update of related show ids.
Change terminology Edit Show/"Post processing" tab name to "Other".
Add advanced feature "Related show IDs" to Edit Show/Other used for finding episodes and TV info.
Add search info source image links to those that have zero id under Edit Show/Other/"Related show IDs".
Add "set master" button to Edit Show/Other/"Related show IDs" for info source that can be changed.
Change terminology displayShow "Indexers" to "Links" to cover internal and web links.
Change add related show info sources on displayShow page.
Change don't display "temporarily" defunct TVRage image link on displayShow pages unless it is master info source.
Change if a defunct info source is the master of a show then present a link on displayShow to edit related show IDs.
Change simplify the next backlog search run time display in the page footer.
Change try ssl when fetching data thetvdb, imdb, trakt, scene exception.
Change improve reliability to Trakt notifier by using show related id support.
Change improve config/providers newznab categories layout.
Change show loaded log message at start up and include info source.
Change if episode has no airdate then set status to unaired (was skipped).

Technical
Change move scene_exceptions table from cache.db to sickbeard.db.
Add related ids to show obj.
Add use of mapped indexer ids for newznab.
Add indexer to sql in wanted_eps.
Add aired in (scene) season for wanted episodes.
Add need_anime, need_sports, need_sd, need_hd, need_uhd to wanted episodes and added as parameter to update_providers.
Add fix for lib lockfile/mkdirlockfile.
Add set master TV info source logic.
Change harden ui input validation.
Add per action dialog confirmation.
Change to reload page under more events.
Change implement "Mark all added episodes Wanted to search for releases" when setting new info source.
2016-09-21 17:50:27 +01:00
JackDandy
05a9dc62f1 Add Torrentz2 provider.
Change handle when a torrent provider goes down and its urls are cleared.
Add handler for when rar files can not be opened during post processing.
2016-09-12 17:07:22 +01:00
Prinz23
a54b89e8ed Add handling for 'part' numbered new releases and also for specific existing 'part' numbered releases. 2016-08-21 21:31:18 +01:00
JackDandy
1e8edb80b7 Change improve handling of SIGINT CTRL+C, SIGINT CTRL+BREAK(Windows) and SIGTERM. 2016-07-11 18:16:00 +01:00
Prinz23
835dc08c7a Add 2160p UHD 4K WEB quality. 2016-06-13 20:24:41 +01:00
JackDandy
c65d29adeb Merge branch 'master' into develop 2016-04-07 19:22:23 +01:00
JackDandy
60a97ca397 Add support for SD mkv container. 2016-04-07 19:18:00 +01:00
Prinz23
503b7b5af5 Add scene qualities WEB.h264 to SDTV, 720p.WEB.h264 to WEB DL 720p, and 1080p.WEB.h264 to WEB DL 1080p. 2016-03-12 00:50:25 +00:00
Prinz23
50292eed3a Fix rare NameParser case where numeric episode name was parsed as episode number.
Change parse .nfo file for Add Existing page.
2016-03-06 00:58:34 +00:00
JackDandy
43778d8edd Change providers, add some, remove one, fix a snatch issue, rework ignore/require words, refactor code.
Add BitMeTV torrent provider.
Add TVChaosUK torrent provider.
Add HD-Space torrent provider.
Add Shazbat torrent provider.
Remove Animenzb provider.
Change use tvdbid for searching usenet providers.
Change consolidate global and per show ignore and require words functions.
Change "Require word" title and notes on Config Search page to properly describe its functional logic.
Add "Reject Blu-ray M2TS releases" to BTN provider.
Add regular expression capability to ignore and require words by starting wordlist with "regex:".
Add list shows with custom ignore and require words under the global counterparts on the Search Settings page.
Fix failure to search for more than one selected wanted episode.
2015-12-02 01:31:50 +00:00
Adam
1392d65254 Fix removal of non-release groups such that anime qualities are not trimmed from name 2015-11-28 19:34:39 +08:00
Adam
03defe0219 Change test code to follow quotation standards 2015-08-16 11:02:44 +08:00
Adam
a6eedd3c75 Bump release version 2015-08-05 15:04:58 +01:00
JackDandy
9f7b6cda11 Change accept SD titles that contain audio quality. 2015-07-24 15:24:34 +01:00
JackDandy
2051268891 Change refactor, PEP8, code convention cleanse for nzb/torrent code and remove newzbin remnants. 2015-07-15 19:19:39 +01:00
Adam
b7dbd87625 Change py2 octal literals into the new py2/3 syntax 2015-06-11 19:50:04 +08:00
Adam
fb5e3ba952 Change to consolidate scene exceptions and name cache code 2015-06-11 19:03:12 +08:00
Adam
a3c717becd Change py2 print statements to py2/3 compatible functions 2015-06-09 19:33:03 +08: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
fed5e11532 Change first run after install to set up the main db to the latest schema instead of upgrading.
Change don't create a backup from an initial zero byte main database file, PEP8 and code tidy up.
Change move the previous InitialSchema into migration_tests to preserve migration development.
2015-06-06 06:21:17 +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
Adam
6a6f3d7ad8 Change helpers doctests to unittests 2015-05-09 20:47:20 +08:00
Prinz23
4ae30ab6ad Add option "Search for unaired episodes" to config/Search Settings
* Change reduce time to search recent result list by searching only once for a best result
* Fix replacing episodes that have a lower quality than what is selected in the initial and archive quality list
* Fix to include episodes marked Failed in the recent and backlog search processes
* Fix display of search status for an alternative release after episode is manually set to "Failed" on the Display Show page
* Change handle more varieties of media quality
* Change to prevent another scheduled search when one of the same type is already running
2015-04-24 20:45:45 +02:00
adam
2dab61478e Remove various unused code 2015-03-16 23:13:20 +08:00
Adam
a1e8d21614 Fix name parser unit tests and regex
Add anime unit test cases (port from lad1337/sickbeard)
Fix normal tv show regex (port from midgetspy/sickbeard)
Fix anime regex (port from lad1337/sickbeard)
2015-01-02 07:14:43 +08:00
Adam
f579b90d7c Add database migration code 2014-12-09 20:34:44 +08:00
Adam
711898aa46 Add failed database to unit tests tear down function
Fix purging of database files in tear down function during unit tests
2014-11-22 22:15:35 +08:00
Adam
b06576a6a1 Fix failing travis tests
Remove a test from scene helpers test suite
Remove unnecessary test from post processing test suite
Fix unicode test by catching InvalidShowException in  name parser test suite
2014-11-20 00:41:11 +08:00
Supremicus
4c8c6b21d5 Change logos, text etc. branding to SickGear. 2014-11-12 20:56:40 +00:00
Adam
f4ea244dc9 Fixes some unittests 2014-10-30 23:50:15 +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