Commit graph

199 commits

Author SHA1 Message Date
Prinz23
050b823f2b Change try to use folder name when filename does not contain show name.
Add analyse filename with a previously found showobj from folder name.
2018-09-13 04:19:28 +01:00
Prinz23
6f84d1fee6 Change garbage_name regex. 2018-06-03 21:54:43 +01:00
Prinz23
7a1524f136 Fix anime parser and anime PROPER level. 2018-05-25 00:40:16 +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
JackDandy
a6f7ab47e2 Merge branch 'master' into develop 2018-04-26 15:32:07 +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
Prinz23
c1d3487a21 Change increase namecache size and fix deleting items from it when at capacity.
Add thread lock to NameParserCache.
Add exception handling for add to cache.
Change increase NameParserCache to 1000 entries.
Change NameParserCache to OrderedDefaultdict.
Add move_to_end to OrderedDefaultdict class (backported from python 3).
Add first_key, last_key to OrderedDefaultdict.
Change use much faster first_key in NameParserCache.
Change remove import of python pre 2.7 OrderedDict.
2018-04-17 23:59:20 +01:00
JackDandy
d89c8a0fb3 Add non standard multi episode name parsing e.g. S01E02and03 and 1x02and03and04. 2018-02-07 02:00:33 +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
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
Prinz23
0311b2777d Change implement the __ne__ none equality method into the ParseResult class. 2017-12-04 17:17:14 +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
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
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
3e9a9095a6 Change make indexer lookup optional in NameParser, and deactivate during searches. 2017-07-21 22:39:08 +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
5bdee041ed Add UK date format handling to name parser. 2016-12-28 01:47:50 +00: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
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
Prinz23
6dd434fcba Add CPU throttling preset "Disabled" to config/General/Advanced Settings and centralise the function. 2016-02-11 19:25:35 +00:00
JackDandy
a574012c38 Change increase the scope and number of non release group text that is identified and removed. 2015-10-16 14:03:19 +01:00
Adam
3695766df4 Remove unnecessary call to indexers during nameparsing 2015-09-20 19:40:03 +08:00
JackDandy
7b3f4356c7 Change reduce aggressive use of scene numbering that was overriding user preference where not needed.
Change set "Scene numbering" checkbox and add text to the label tip in third step of add "New Show" if scene numbers are found for the selected show in the search results of the first step.
Change label text on edit show page to highlight when manual numbering and scene numbers are available.
Fix disabling "Scene numbering" of step three in add "New Show" was ignored when scene episode number mappings exist.
Fix don't use scene episode number mappings everywhere when "Scene numbering" is disabled for a show.
Fix width of legend underlining on the third step used to bring other display elements into alignment.
Change when downloading magnet or nzb files, verify the file in cache dir and then move to blackhole.
Change to consistent use of properties is_anime and is_sports in providers.
Change name_parser pep8 and code conventions.
2015-08-16 16:42:33 +01:00
Adam
fb5e3ba952 Change to consolidate scene exceptions and name cache code 2015-06-11 19:03:12 +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
4f4858f4e4 Change to post process files ordered largest to smallest and tidied PP logging output.
Add "then trash subdirs and files" to the Process method "Move" on the manual post process page.
Add using show scene exceptions with post processing.
Change overhaul processTV into a thread safe class.
Change postProcessor and processTV to PEP8 standards.
Change overhaul Manual Post-Processing page in line with layout style and improve texts.
Change Force Processes enabled, only the largest video file of many will be processed instead of all files.
Change visual ui of Postprocessing results to match the logs and errors view.
Change remove ugly printing of episode object during PP seen in external apps like sabnzbd.
Change to streamline output toward actual work done instead of showing all vars.
Change pp report items from describing actions about to happen to instead detail the actual outcome of actions.
Add clarity to the output of a successful post process but with some issues rather than "there were problems".
Add a conclusive bottom line to the pp result report.
2015-05-08 04:18:30 +01:00
vergessen
d0ccf9f27a Fix release group not recognised from manually downloaded filename. 2015-03-18 21:37:08 +00: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
Supremicus
4c8c6b21d5 Change logos, text etc. branding to SickGear. 2014-11-12 20:56:40 +00:00
Adam
d2077453b6 Fix ABD regex for certain filenames 2014-10-13 19:19:33 +08:00
echel0n
90356544cd Sports regex updated 2014-09-01 00:04:41 -07:00
Adam
6b8a22898b Fix ABD shows manual and backlog searches 2014-08-25 14:54:22 +08:00
echel0n
dbb3b75d6e Updated sports regex pattern for more accurate matches and to filter out pre-event episodes 2014-08-22 23:11:21 -07:00
echel0n
94ec9e6e6b Adds additional scoring for series number and series event name parser matches to help determine valid show info 2014-08-22 08:43:38 -07:00
echel0n
0fddbac1c4 Fix for No episode number found error for air-by-date/sports shows 2014-08-22 08:26:41 -07:00
echel0n
ca4fe51b97 Added scene_sports_format regex pattern to help match sports shows 2014-08-22 01:06:37 -07:00
echel0n
be17ed122b Fix for air-by-date and sports shows issues with parsing results. 2014-08-22 00:21:37 -07:00
Adam
49a8df0cac Fix for ABD shows 2014-08-17 12:28:55 +08:00
Brian Hartvigsen
37e35754c4 Add fixing name_parser/parse.py too... 2014-08-11 17:38:37 -06:00
echel0n
e98418ba8d Small code change 2014-08-09 11:36:14 +00:00
echel0n
f1c45a596d Code typo fixed 2014-08-09 11:30:36 +00:00
echel0n
3ae4c13104 Code fix 2014-08-09 11:28:22 +00:00
echel0n
6a5567d040 Another minor code fix 2014-08-09 11:22:56 +00:00
echel0n
f5725f4402 Minor code correction. 2014-08-09 11:20:24 +00:00
echel0n
17906539ae Fixed improper line indentation 2014-08-09 11:16:55 +00:00
echel0n
1ee64ced4d If we fail to find season/episode info for air-by-date shows via DB query we attempt via indexerAPI calls 2014-08-09 11:14:51 +00:00
echel0n
dfc18b8d54 Small code change for parsing air-by-date shows to get season/episode info 2014-08-09 10:59:39 +00:00
nielsenj
88a3444db2 Changes "no_season" regex to support XofX naming
Previous version would allow for:

Britannia The Great Elizabethan Journey - 1 of 3 (19th May 2012) [HDTV 720p (x264)]

But disallow (because of no spaces around "of"):

Britannia The Great Elizabethan Journey - 1of3 (19th May 2012) [HDTV 720p (x264)]

Also previous extra_info changes from:
of 3 (19th May 2012) [HDTV 720p (x264)]

To:
(19th May 2012) [HDTV 720p (x264)]
2014-08-06 21:45:38 -07:00