Closed BrokenRSA closed 7 years ago
This had been a fairly long outstanding issue, and you're right in that it's not matching due to the fact that it has the issue title / miniseries name in the filename. Mylar basically starts from right to left looking for the issue number, when it finds it it assumes everything from that point to the very beginning is the series title. So you can understand how it's not matching based on what it's being given.
I need to rework a good portion of that logic in order to allow for the handling of issue titles, along with the fact that it has to be able to filecheck them as well. And unfortunately it's not an easy fix - although I have started noticing this in some othet popular series (ie. original sin), so I'll have to look into this again and see what can be done to accommodate these types of situations.
I can imagine this specifically is a pain in the backside to handle, what with all the various scenarios out there. I'm happy to help test anything if you need assistance.
Just a quick update - I've gotten it to accept the issue name within the filename now for searching patterns. There's a little problem I'm working on that involves issue names with part# but the filename just has #, but it should be relatively easy to fix.
I'll update in abit with hopefully a commit that can be tested out..
Mylar does not seem to be finding any for the B.P.R.D or Abe Sapien comics. There might be others that have the same problem. I suspect it has to do with the miniseries name in the title. Here's an extract of the log:
30-Aug-2014 13:51:36 - DEBUG :: Thread-13 : comicid: 59507 30-Aug-2014 13:51:36 - INFO :: Thread-13 : nzbprov: newznab 30-Aug-2014 13:51:36 - DEBUG :: Thread-13 : search-url: http://www.usenet-crawler.com/api?t=search&q=abe%20sapien%2015%20&o=xml&cat=7030&apikey=xUDONTNEEDTOKNOWTHISx 30-Aug-2014 13:51:36 - INFO :: Thread-13 : pausing for 60 seconds before continuing to avoid hammering 30-Aug-2014 13:51:36 - DEBUG :: CP Server Thread-4 : Weekly pull list present - retrieving pull-list date. 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : checking search result: B.P.R.D. Hell on Earth 122 - The Broken Equation 01 (of 02) (2014) (digital) (Son of Ultron-Empire) 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : size given as: 43.9 MB 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : Thu, 21 Aug 2014 08:22:31 +0200 is after store date of 2014-08-20 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : Entry: B.P.R.D. Hell on Earth 122 - The Broken Equation 01 (of 02) (2014) (digital) (Son of Ultron-Empire) 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : Cleantitle: b p r d hell on earth 122 - the broken equation 01 (of 02) (2014) (digital) (son of ultron-empire) 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : Cleantitle: b p r d hell on earth 122 - the broken equation 01 (of 02) (2014) (digital) (son of ultron-empire) 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : 0. Bracket Word: b p r d hell on earth 122 - the broken equation 01 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : Comic: b p r d hell on earth 122 - the broken equation 01 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : UseFuzzy is : 0 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : ComVersChk : 0 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : Series version detected as V1 (only series in existance with that title). Bypassing Year/Volume check 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : 1. Bracket Word: of 02 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : 3. Bracket Word: 2014 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : year detected: 2014 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : year looking for: 2014 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : 2014 - right years match baby! 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : 5. Bracket Word: digital 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : digital edition detected 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : 7. Bracket Word: son of ultron-empire 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : mini-series detected : son of ultron-empire 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : Scanner detected: son of ultron-empire 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : original nzb comic and issue: b p r d hell on earth 122 - the broken equation 01 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : adjusted nzb comic and issue: b p r d hell on earth 122 the broken equation 01 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : adjusting from: b p r d hell on earth 122 the broken equation 01 to: 01 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : ['b', 'p', 'r', 'd', 'hell', 'on', 'earth', '122', 'the', 'broken', 'equation', '01'] nzb series word count: 11 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : ['b', 'p', 'r', 'd', 'hell', 'on', 'earth'] watchlist word count: 7 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : incorrect comic lengths...not a match 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : THE word detected in found comic...attempting to adjust pattern matching 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : comic is now : ['b', 'p', 'r', 'd', 'hell', 'on', 'earth', '122', 'broken', 'equation', '01'] 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : splitst : 10 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : len-watchcomic : 7 30-Aug-2014 13:52:14 - DEBUG :: Thread-14 : incorrect comic lengths after removal...not a match.