evilhero / mylar

An automated Comic Book downloader (cbr/cbz) for use with SABnzbd, NZBGet and torrents
GNU General Public License v3.0
976 stars 172 forks source link

Alternate name for War of the Realms - Uncanny X-Men #1 is War of the Realms #1? #2276

Closed claym closed 3 years ago

claym commented 5 years ago

Running on latest develop (7696edbc8b6fd893550965a0ea892143e53e23bd)

Manual Post Processing for War of the Realms - Uncanny X-Men #1, which is a StoryArc wanted book.

Post Processor seems to think: Alternate series naming detected: War of the Realms

Debug Logs:

11-May-2019 22:16:19 - INFO    :: mylar.post_process.818 : CP Server Thread-4 : Starting postprocessing for : Manual Run
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.358 : Thread-37 : [POST-PROCESSING] nzb name: Manual Run
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.359 : Thread-37 : [POST-PROCESSING] nzb folder: /downloads/nzbs/nzbget/completed/mylar
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.380 : Thread-37 : [POST-PROCESSING] Manual Run Post-Processing enabled.
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.399 : Thread-37 : [POST-PROCESSING] Manual Run initiated
11-May-2019 22:16:19 - INFO    :: mylar.traverse_directories.1407 : Thread-37 : there are 1 files.
11-May-2019 22:16:19 - DEBUG   :: mylar.listFiles.146 : Thread-37 : [FILENAME]: War of the Realms - Uncanny X-Men 01 (of 03) (2019) (Digital) (Zone-Empire).cbr
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.226 : Thread-37 : [CORRECTION] Sub-directory found. Altering path configuration.
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.228 : Thread-37 : [SUB-PATH] Checking Folder Name for more information.
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.230 : Thread-37 : [SUB-PATH] Original Path : /downloads/nzbs/nzbget/completed/mylar
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.231 : Thread-37 : [SUB-PATH] Sub-directory : /downloads/nzbs/nzbget/completed/mylar/War.of.the.Realms-Uncanny.X-Men.01.of.03.2019.Digital.Zone-Empire
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.244 : Thread-37 : [SUB-PATH] subpath set to : War.of.the.Realms-Uncanny.X-Men.01.of.03.2019.Digital.Zone-Empire
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.287 : Thread-37 : Scanner group tag discovered: Zone-Empire
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.360 : Thread-37 : checking now: the
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.394 : Thread-37 : NEWLY SPLIT REORGD: ['War', 'of', 'the', 'Realms', '-', 'Uncanny', 'X-Men', '01', '(of 03)', '(2019)', '(Digital)']
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.504 : Thread-37 : Mini-Series Count detected. Maximum issue # set to : 3
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.507 : Thread-37 : Issue Number SHOULD BE: 01
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.429 : Thread-37 : checking date : 2019
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.432 : Thread-37 : date: 2019
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.759 : Thread-37 : datecheck: [{'date': '2019', 'position': 9, 'mod_position': 45}]
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.765 : Thread-37 : sctd: 2019
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.774 : Thread-37 : year verified as : 2019
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.780 : Thread-37 : year verified as: 2019
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.811 : Thread-37 : highest_series_position: 9
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.816 : Thread-37 : possible_issuenumbers: [{'position': 7, 'validcountchk': False, 'number': '01', 'mod_position': 34}]
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.822 : Thread-37 : hyphen located at position: 18
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.824 : Thread-37 : yearposition: 9
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.859 : Thread-37 : issue number :01
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.888 : Thread-37 : issue_position: 7
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.905 : Thread-37 : issue verified as : 01
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.1016 : Thread-37 : ALT-SERIES NAME [ISSUE TITLE]: War of the Realms [Uncanny X-Men]
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.1032 : Thread-37 : sf_highest_series_pos: ['War', 'of', 'the', 'Realms', '-', 'Uncanny', 'X-Men']
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.1077 : Thread-37 : series title possibly: War of the Realms - Uncanny X-Men
11-May-2019 22:16:19 - DEBUG   :: mylar.parseit.1090 : Thread-37 : Alternate series / issue title: War of the Realms [Uncanny X-Men]
11-May-2019 22:16:19 - INFO    :: mylar.Process.407 : Thread-37 : I have located 1 files that I should be able to post-process. Continuing...
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.456 : Thread-37 : [POST-PROCESSING] Alternate series naming detected: War of the Realms
11-May-2019 22:16:19 - INFO    :: mylar.Process.541 : Thread-37 : Now checking: War of the Realms [118154]
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.726 : Thread-37 : [POST-PROCESSING][ISSUE-VERIFY] Now checking against War of the Realms - 118154
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.801 : Thread-37 : [POST-PROCESSING][ISSUE-VERIFY][Lone Volume MATCH] Volume label of None indicates only volume for this series on your watchlist.
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.809 : Thread-37 : [POST-PROCESSING][ISSUE-VERIFY][Issue Year MATCH] Issue Year of 2019 is a match to the year found in the filename of : 2019
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.823 : Thread-37 : [POST-PROCESSING][SUB: War.of.the.Realms-Uncanny.X-Men.01.of.03.2019.Digital.Zone-Empire][CLOCATION: /downloads/nzbs/nzbget/completed/mylar]
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.959 : Thread-37 : [POST-PROCESSING] Now Checking if 1 issue(s) may also reside in one of the storyarc's that I am watching.
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.1063 : Thread-37 : [POST-PROCESSING][ARC ISSUE-VERIFY] Now checking against War of the Realms - 118154
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.1117 : Thread-37 : datematch: True
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.1118 : Thread-37 : temploc: 1000
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.1119 : Thread-37 : arcissue: 1000
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.1155 : Thread-37 : [POST-PROCESSING][ARC ISSUE-VERIFY][Issue Year MATCH] Issue Year of 2019 is a match to the year found in the filename of : 2019
11-May-2019 22:16:19 - INFO    :: mylar.Process.1171 : Thread-37 : [STORY-ARC POST-PROCESSING] IssueID 705490 exists in your watchlist. Bypassing Story-Arc post-processing performed later.
11-May-2019 22:16:19 - DEBUG   :: mylar.Process.1318 : Thread-37 : [POST-PROCESSING] There are 1 files found that match on your watchlist, 0 files are considered one-off's, and 0 files do not match anything
11-May-2019 22:16:19 - INFO    :: mylar.duplicate_filecheck.2140 : Thread-37 : [DUPECHECK] Duplicate check for /downloads/nzbs/nzbget/completed/mylar/War.of.the.Realms-Uncanny.X-Men.01.of.03.2019.Digital.Zone-Empire/War of the Realms - Uncanny X-Men 01 (of 03) (2019) (Digital) (Zone-Empire).cbr
11-May-2019 22:16:19 - INFO    :: mylar.duplicate_filecheck.2171 : Thread-37 : [DUPECHECK] Existing Status already set to Downloaded
11-May-2019 22:16:19 - INFO    :: mylar.duplicate_filecheck.2200 : Thread-37 : [DUPECHECK] Existing file within db :War of the Realms (2019) 001.cbr has a filesize of : 253156936 bytes.
11-May-2019 22:16:19 - DEBUG   :: mylar.duplicate_filecheck.2215 : Thread-37 : [DUPECHECK] Based on duplication preferences I will retain based on : filesize
11-May-2019 22:16:19 - INFO    :: mylar.duplicate_filecheck.2263 : Thread-37 : [DUPECHECK-FILESIZE PRIORITY] [#1] Retaining currently scanned in filename : War of the Realms (2019) 001.cbr
11-May-2019 22:16:19 - INFO    :: mylar.Process.1663 : Thread-37 : [POST-PROCESSING] Manual post-processing completed for 1 issues.
evilhero commented 5 years ago

It's because it can't find the match on your watchlist (as you don't have it added to your watchlist), that it checks the alternate naming it's parsed, which just happens to be on your watchlist and matches against that.

The easy fix for this, is to just add the series to your watchlist - and then it will post-process accordingly.

In order for this to work, need to code it so that if it doesn't exist on your watchlist - to check against the story arcs before assuming the initial match based on the alternate name is correct, in a case like this where the issue resides on the arc only but not on your watchlist, and the alternate series for the issue matches up to an item on your watchlist.