Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Improvement to Refresh function #499

Closed
ajw107 opened this issue Aug 4, 2013 · 15 comments
Closed

Improvement to Refresh function #499

ajw107 opened this issue Aug 4, 2013 · 15 comments

Comments

@ajw107
Copy link

ajw107 commented Aug 4, 2013

Hi

I've been having problems with using refresh to add comic manually (especially to that old favourite, the Doctor Who/Star Trek crossover). After looking at the logs and the code, I made a few improvements that should stop this happening again. I've included the changes and the log files to show it working (all marked with ALEX so you can find them easily), or I can push my changes to you, if I remember how to do it. I've also mentioned that removing annual and the issue name may not work as intended, but I've not fixed these as I don't have any annuals, and didn't want to mess with the DB.

The changes are essentially to use the processed version of the filename (subname) when getting the issue number (at present you switch back to using the original filename). Also a few occasions where characters are added and removed, when it has already happened previously have been commented out.

All changes have comments as to why I've done it, in case you've done it that way for a reason and I break something else later on. I've also included a log file showing it working on two troublesome comics, and one that worked before.

As a side note, could you display on each comics 'info page' what you expect the filename to contain to be matched as an issue, just makes it a bit easier in the future.

Hope I haven;t overstepped any mark here.
Alex

Hmm, can't attach them, so here is the log file and a diff pasted on to the end here:


DIFF

diff --git a/mylar/filechecker.py b/mylar/filechecker.py
index 316929a..c3c5da2 100755
--- a/mylar/filechecker.py
+++ b/mylar/filechecker.py
@@ -144,7 +144,7 @@ def listFiles(dir,watchcomic,AlternateSearch=None):
subname = re.sub(str(nono), ' ', subname)
nonocount = nonocount + subcnt + blspc
#subname = re.sub('[_#,/:;.-!$%+'?@]',' ', subname)

  •    modwatchcomic = re.sub('[_#\,\/:\;.-!\$\%\'\?\@]', ' ', u_watchcomic)
    
  •    modwatchcomic = re.sub('[\_\#\,\/\:\;\.\-\!\$\%\'\?\@]', '', u_watchcomic) #ALEX if you are removing the character from the count, why replace it with a space which would make the character count the same?
     detectand = False
     detectthe = False
     modwatchcomic = re.sub('\&', ' and ', modwatchcomic)
    

    @@ -189,7 +189,7 @@ def listFiles(dir,watchcomic,AlternateSearch=None):
    comiccnt+=1

         stann = 0
    
  •        if 'annual' in subname.lower():
    
  •        if 'annual' in subname.lower(): #ALEX should a substitution (annual='') not be done here, in case it appears at the start of the filename?
             logger.fdebug("Annual detected - proceeding")
             jtd_len = subname.lower().find('annual')
             cchk = modwatchcomic
    

    @@ -234,21 +234,38 @@ def listFiles(dir,watchcomic,AlternateSearch=None):

         #remove versioning here
         if volrem != None:
    
  •            jtd_len = len(cchk) + len(volrem) + nonocount + 1 #1 is to account for space btwn comic and vol #
    
  •            jtd_len = len(cchk) + len(volrem) #+ nonocount + 1 #1 is to account for space btwn comic and vol #ALEX haven't all the disallowed chars already been taken out, plus using strip is a better way of dealing with spaces, just incase there are none
         else:
    
  •            jtd_len = len(cchk) + nonocount
    
  •        if detectand:
    
  •            jtd_len = jtd_len - 2 # char substitution diff between & and 'and' = 2 chars
    
  •        if detectthe:
    
  •            jtd_len = jtd_len - 3  # char subsitiution diff between 'the' and '' = 3 chars
    
  •            jtd_len = len(cchk) #+ nonocount #ALEX haven't the disallowed characters already all been taken out?
    
  •        logger.fdebug("ALEX: nonocount [" + str(nonocount) + "] cchk [" + cchk + "] length [" + str(len(cchk)) + "]")
    

    +# if detectand: #Alex this does not take into account the number of ands removed, and is not needed if you just use subname
    +# jtd_len = jtd_len - 2 # char substitution diff between & and 'and' = 2 chars
    +# if detectthe: #ALEX same as with 'and', number of 'The's not taken into account, and not needed if just use subname
    +# jtd_len = jtd_len - 3 # char subsitiution diff between 'the' and '' = 3 chars

  •        justthedigits = item[jtd_len:]
    
  •        logger.fdebug("ALEX: final jtd_len to prune [" + str(jtd_len) + "]")
    
  •        logger.fdebug("ALEX: before title removed from FILENAME [" + str(item) + "]")
    
  •        #justthedigits = item[jtd_len:] #ALEX after doing all that processing to the filename, why ignore it?
    
  •        logger.fdebug("ALEX: after title removed from FILENAME [" + str(item[jtd_len:]) + "]")
    
  •        logger.fdebug("ALEX: creating just the digits using SUBNAME, pruning first [" + str(jtd_len) + "] chars from [" + subname + "]")
    
  •        justthedigits = subname[jtd_len:].strip()
    
  •        logger.fdebug("ALEX: after title removed from SUBNAME [" + justthedigits + "]")
    
         #remove the title if it appears
    
  •        #ALEX need to get actualy name of issue from DB here, as you already stripped all the '-' above, so this will never work
    
  •        #ALEX luckily only taking the first token below means title and extension are ignored
         findtitle = justthedigits.find('-')
         if findtitle > 0 and detneg == "no":
             justthedigits = justthedigits[:findtitle]
             logger.fdebug("removed title from name - is now : " + str(justthedigits))
    
  •            #ALEX one advantage of grabbing the issue name from the database would be that you could check that
    
  •            # the issue number and name matches if you wanted to
    
  •        #ALEX only take first token, as the rest will be extention, issue name, filename garbage, etc
    
  •        justthedigits=justthedigits.split(' ', 1)[0]
    
  •        logger.fdebug("ALEX: final justthedigits [" + justthedigits + "]")
    
         comiclist.append({
              'ComicFilename':           item,
    

LOG FILE

04-Aug-2013 18:25:54 - INFO :: Thread-14 : Now checking files for Star Trek: The Next Generation - Doctor Who: Assimilation² (2012) in /mnt/samba/Books/Comics/IDW Publishing/Star Trek The Next Generation - Doctor Who Assimilation/(2012)
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : comic: Star Trek: The Next Generation - Doctor Who: Assimilation²
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : Looking in: /mnt/samba/Books/Comics/IDW Publishing/Star Trek The Next Generation - Doctor Who Assimilation/(2012)
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : subname no brackets: Star Trek the Next Generation Doctor Who Assimilation 008.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : new modwatchcomic: star trek next generation doctor who assimilation
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : watchcomic:star trek next generation doctor who assimilation ..comparing to found file: star trek next generation doctor who assimilation 008 cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : star trek next generation doctor who assimilation - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Star Trek The Next Generation - Doctor Who Assimilation/(2012)/Star Trek the Next Generation Doctor Who Assimilation 008.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : we should remove 0 characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : detected 1 special characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : end reached. ignoring remainder.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: nonocount [0] cchk [star trek next generation doctor who assimilation] length [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [Star Trek the Next Generation Doctor Who Assimilation 008.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [tion 008.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [49] chars from [star trek next generation doctor who assimilation 008 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [008 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final justthedigits [008]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : subname no brackets: star trek the next generation - doctor who assimilation 6.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : - appears in series title.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : new modwatchcomic: star trek next generation doctor who assimilation
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : watchcomic:star trek next generation doctor who assimilation ..comparing to found file: star trek next generation doctor who assimilation 6 cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : star trek next generation doctor who assimilation - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Star Trek The Next Generation - Doctor Who Assimilation/(2012)/star trek the next generation - doctor who assimilation 6.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : we should remove 1 characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : detected 1 special characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : - appears in series title, ignoring.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: nonocount [1] cchk [star trek next generation doctor who assimilation] length [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [star trek the next generation - doctor who assimilation 6.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [lation 6.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [49] chars from [star trek next generation doctor who assimilation 6 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [6 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final justthedigits [6]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : subname no brackets: star trek next generation doctor who assimilation #5.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : new modwatchcomic: star trek next generation doctor who assimilation
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : watchcomic:star trek next generation doctor who assimilation ..comparing to found file: star trek next generation doctor who assimilation 5 cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : star trek next generation doctor who assimilation - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Star Trek The Next Generation - Doctor Who Assimilation/(2012)/star trek next generation doctor who assimilation #5.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : we should remove 1 characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : detected 1 special characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : - appears in series title, ignoring.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: nonocount [1] cchk [star trek next generation doctor who assimilation] length [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [star trek next generation doctor who assimilation #5.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [ #5.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [49] chars from [star trek next generation doctor who assimilation 5 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [5 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final justthedigits [5]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : subname no brackets: star trek the next generation - doctor who assimilation 1- assimilation squared part 1.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : - appears in series title.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : - appears in series title.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : new modwatchcomic: star trek next generation doctor who assimilation
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : watchcomic:star trek next generation doctor who assimilation ..comparing to found file: star trek next generation doctor who assimilation 1 assimilation squared part 1 cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : star trek next generation doctor who assimilation - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Star Trek The Next Generation - Doctor Who Assimilation/(2012)/star trek the next generation - doctor who assimilation 1- assimilation squared part 1.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : we should remove 2 characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : detected 2 special characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : - appears in series title, ignoring.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : - appears in series title, ignoring.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: nonocount [2] cchk [star trek next generation doctor who assimilation] length [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [star trek the next generation - doctor who assimilation 1- assimilation squared part 1.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [lation 1- assimilation squared part 1.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [49] chars from [star trek next generation doctor who assimilation 1 assimilation squared part 1 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [1 assimilation squared part 1 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final justthedigits [1]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : subname no brackets: Star Trek Next Generation Doctor Who Assimilation 7.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : new modwatchcomic: star trek next generation doctor who assimilation
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : watchcomic:star trek next generation doctor who assimilation ..comparing to found file: Star Trek Next Generation Doctor Who Assimilation 7 cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : star trek next generation doctor who assimilation - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Star Trek The Next Generation - Doctor Who Assimilation/(2012)/Star Trek Next Generation Doctor Who Assimilation 7.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : we should remove 0 characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : detected 1 special characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : - appears in series title, ignoring.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: nonocount [0] cchk [star trek next generation doctor who assimilation] length [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [Star Trek Next Generation Doctor Who Assimilation 7.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [ 7.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [49] chars from [Star Trek Next Generation Doctor Who Assimilation 7 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [7 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final justthedigits [7]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : subname no brackets: star trek next generation doctor who assimilation #4 - assimilation squared part 4.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : - appears in series title.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : new modwatchcomic: star trek next generation doctor who assimilation
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : watchcomic:star trek next generation doctor who assimilation ..comparing to found file: star trek next generation doctor who assimilation 004 assimilation squared part 4 cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : star trek next generation doctor who assimilation - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Star Trek The Next Generation - Doctor Who Assimilation/(2012)/star trek next generation doctor who assimilation #4 - assimilation squared part 4.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : we should remove 2 characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : detected 1 special characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : - appears in series title, ignoring.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: nonocount [2] cchk [star trek next generation doctor who assimilation] length [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [star trek next generation doctor who assimilation #4 - assimilation squared part 4.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [ #4 - assimilation squared part 4.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [49] chars from [star trek next generation doctor who assimilation 004 assimilation squared part 4 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [004 assimilation squared part 4 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final justthedigits [004]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : subname no brackets: star trek next generation doctor who assimilation#3 - assimilation squared part 3.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : - appears in series title.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : new modwatchcomic: star trek next generation doctor who assimilation
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : watchcomic:star trek next generation doctor who assimilation ..comparing to found file: star trek next generation doctor who assimilation 3 assimilation squared part 3 cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : star trek next generation doctor who assimilation - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Star Trek The Next Generation - Doctor Who Assimilation/(2012)/star trek next generation doctor who assimilation#3 - assimilation squared part 3.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : we should remove 2 characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : detected 1 special characters
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : - appears in series title, ignoring.
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: nonocount [2] cchk [star trek next generation doctor who assimilation] length [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [49]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [star trek next generation doctor who assimilation#3 - assimilation squared part 3.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [#3 - assimilation squared part 3.cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [49] chars from [star trek next generation doctor who assimilation 3 assimilation squared part 3 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [3 assimilation squared part 3 cbr]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : ALEX: final justthedigits [3]
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : you have a total of 7 Star Trek: The Next Generation - Doctor Who: Assimilation² comics
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : temploc: 008
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 8000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 8000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 2000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 8000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 3000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 8000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 4000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 8000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 5000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 8000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 6000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 8000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 7000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 8000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 8000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : issue match - fcdigit: 8000 ... int_iss: 8000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : matched...issue: Star Trek: The Next Generation - Doctor Who: Assimilation²#8 --- 8000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : .......filename: Star Trek the Next Generation Doctor Who Assimilation 008.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : .......filesize: 23766316
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : issueID to write to db:373347
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : temploc: 6
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 6000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 6000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 2000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 6000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 3000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 6000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 4000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 6000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 5000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : fcdigit: 6000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : int_iss: 6000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : issue match - fcdigit: 6000 ... int_iss: 6000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : matched...issue: Star Trek: The Next Generation - Doctor Who: Assimilation²#6 --- 6000
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : .......filename: star trek the next generation - doctor who assimilation 6.cbr
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : .......filesize: 20318725
04-Aug-2013 18:25:54 - DEBUG :: Thread-14 : issueID to write to db:363093
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : temploc: 5
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 5000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 5000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 2000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 5000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 3000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 5000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 4000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 5000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 5000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : issue match - fcdigit: 5000 ... int_iss: 5000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : matched...issue: Star Trek: The Next Generation - Doctor Who: Assimilation²#5 --- 5000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : .......filename: star trek next generation doctor who assimilation #5.cbr
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : .......filesize: 12074354
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : issueID to write to db:358858
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : temploc: 1
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 1000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : issue match - fcdigit: 1000 ... int_iss: 1000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : matched...issue: Star Trek: The Next Generation - Doctor Who: Assimilation²#1 --- 1000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : .......filename: star trek the next generation - doctor who assimilation 1- assimilation squared part 1.cbr
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : .......filesize: 18830006
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : issueID to write to db:337741
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : temploc: 7
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 2000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 3000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 4000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 5000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 6000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 7000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : issue match - fcdigit: 7000 ... int_iss: 7000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : matched...issue: Star Trek: The Next Generation - Doctor Who: Assimilation²#7 --- 7000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : .......filename: Star Trek Next Generation Doctor Who Assimilation 7.cbr
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : .......filesize: 16834194
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : issueID to write to db:367743
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : temploc: 004
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 4000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 4000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 2000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 4000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 3000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 4000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 4000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : issue match - fcdigit: 4000 ... int_iss: 4000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : matched...issue: Star Trek: The Next Generation - Doctor Who: Assimilation²#4 --- 4000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : .......filename: star trek next generation doctor who assimilation #4 - assimilation squared part 4.cbr
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : .......filesize: 18606102
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : issueID to write to db:354075
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : temploc: 3
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 3000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 3000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 2000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : fcdigit: 3000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : int_iss: 3000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : issue match - fcdigit: 3000 ... int_iss: 3000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : matched...issue: Star Trek: The Next Generation - Doctor Who: Assimilation²#3 --- 3000
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : .......filename: star trek next generation doctor who assimilation#3 - assimilation squared part 3.cbr
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : .......filesize: 16778799
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : issueID to write to db:346329
04-Aug-2013 18:25:55 - INFO :: Thread-14 : Total files located: 7
04-Aug-2013 18:25:55 - DEBUG :: Thread-14 : I've changed the status of 0 issues to a status of Archived, as I now cannot locate them in the series directory.
04-Aug-2013 18:25:55 - INFO :: Thread-14 : I've physically found 7 issues, ignored 0 issues, and accounted for 0 in an Archived state. Total Issue Count: 7 / 8

.............

04-Aug-2013 18:39:27 - INFO :: Thread-15 : Now checking files for Orbit: The Cast of Doctor Who (2012) in /mnt/samba/Books/Comics/Bluewater Productions/Orbit The Cast of Doctor Who/(2012)
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : comic: Orbit: The Cast of Doctor Who
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : Looking in: /mnt/samba/Books/Comics/Bluewater Productions/Orbit The Cast of Doctor Who/(2012)
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : subname no brackets: Orbit The Cast of Doctor Who 001.cbr
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : new modwatchcomic: orbit cast of doctor who
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : watchcomic:orbit cast of doctor who ..comparing to found file: orbit cast of doctor who 001 cbr
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : orbit cast of doctor who - watchlist match on : /mnt/samba/Books/Comics/Bluewater Productions/Orbit The Cast of Doctor Who/(2012)/Orbit The Cast of Doctor Who 001.cbr
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : we should remove 0 characters
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : detected 1 special characters
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : end reached. ignoring remainder.
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : ALEX: nonocount [0] cchk [orbit cast of doctor who] length [24]
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : ALEX: final jtd_len to prune [24]
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : ALEX: before title removed from FILENAME [Orbit The Cast of Doctor Who 001.cbr]
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : ALEX: after title removed from FILENAME [ Who 001.cbr]
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : ALEX: creating just the digits using SUBNAME, pruning first [24] chars from [orbit cast of doctor who 001 cbr]
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : ALEX: after title removed from SUBNAME [001 cbr]
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : ALEX: final justthedigits [001]
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : you have a total of 1 Orbit: The Cast of Doctor Who comics
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : temploc: 001
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : fcdigit: 1000
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : int_iss: 1000
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : issue match - fcdigit: 1000 ... int_iss: 1000
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : matched...issue: Orbit: The Cast of Doctor Who#1 --- 1000
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : .......filename: Orbit The Cast of Doctor Who 001.cbr
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : .......filesize: 14592577
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : issueID to write to db:395968
04-Aug-2013 18:39:27 - INFO :: Thread-15 : Total files located: 1
04-Aug-2013 18:39:27 - DEBUG :: Thread-15 : I've changed the status of 0 issues to a status of Archived, as I now cannot locate them in the series directory.
04-Aug-2013 18:39:27 - INFO :: Thread-15 : I've physically found 1 issues, ignored 0 issues, and accounted for 0 in an Archived state. Total Issue Count: 1 / 1

...................................

04-Aug-2013 18:43:57 - INFO :: Thread-14 : Now checking files for Doctor Who: Prisoners of Time (2013) in /mnt/samba/Books/Comics/IDW Publishing/Doctor Who Prisoners of Time/(2013)
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : comic: Doctor Who: Prisoners of Time
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : Looking in: /mnt/samba/Books/Comics/IDW Publishing/Doctor Who Prisoners of Time/(2013)
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : subname no brackets: Doctor Who Prisoners of Time 4
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : watchcomic:Doctor Who Prisoners of Time ..comparing to found file: Doctor Who Prisoners of Time 4
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : Doctor Who Prisoners of Time - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Doctor Who Prisoners of Time/(2013)/Doctor Who Prisoners of Time 4 (2013).cbr
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : we should remove 0 characters
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: nonocount [0] cchk [Doctor Who Prisoners of Time] length [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [Doctor Who Prisoners of Time 4 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [ 4 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [28] chars from [Doctor Who Prisoners of Time 4]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [4]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final justthedigits [4]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : subname no brackets: Doctor Who Prisoners of Time 5
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : watchcomic:Doctor Who Prisoners of Time ..comparing to found file: Doctor Who Prisoners of Time 5
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : Doctor Who Prisoners of Time - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Doctor Who Prisoners of Time/(2013)/Doctor Who Prisoners of Time 5 (2013).cbr
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : we should remove 0 characters
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: nonocount [0] cchk [Doctor Who Prisoners of Time] length [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [Doctor Who Prisoners of Time 5 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [ 5 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [28] chars from [Doctor Who Prisoners of Time 5]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [5]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final justthedigits [5]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : subname no brackets: Doctor Who Prisoners of Time 6
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : watchcomic:Doctor Who Prisoners of Time ..comparing to found file: Doctor Who Prisoners of Time 6
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : Doctor Who Prisoners of Time - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Doctor Who Prisoners of Time/(2013)/Doctor Who Prisoners of Time 6 (2013).cbr
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : we should remove 0 characters
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: nonocount [0] cchk [Doctor Who Prisoners of Time] length [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [Doctor Who Prisoners of Time 6 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [ 6 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [28] chars from [Doctor Who Prisoners of Time 6]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [6]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final justthedigits [6]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : subname no brackets: Doctor Who Prisoners of Time 2
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : watchcomic:Doctor Who Prisoners of Time ..comparing to found file: Doctor Who Prisoners of Time 2
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : Doctor Who Prisoners of Time - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Doctor Who Prisoners of Time/(2013)/Doctor Who Prisoners of Time 2 (2013).cbr
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : we should remove 0 characters
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: nonocount [0] cchk [Doctor Who Prisoners of Time] length [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [Doctor Who Prisoners of Time 2 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [ 2 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [28] chars from [Doctor Who Prisoners of Time 2]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [2]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final justthedigits [2]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : subname no brackets: Doctor Who Prisoners of Time 3
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : watchcomic:Doctor Who Prisoners of Time ..comparing to found file: Doctor Who Prisoners of Time 3
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : Doctor Who Prisoners of Time - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Doctor Who Prisoners of Time/(2013)/Doctor Who Prisoners of Time 3 (2013).cbr
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : we should remove 0 characters
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: nonocount [0] cchk [Doctor Who Prisoners of Time] length [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [Doctor Who Prisoners of Time 3 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [ 3 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [28] chars from [Doctor Who Prisoners of Time 3]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [3]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final justthedigits [3]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : subname no brackets: Doctor Who Prisoners of Time 7
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : watchcomic:Doctor Who Prisoners of Time ..comparing to found file: Doctor Who Prisoners of Time 7
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : Doctor Who Prisoners of Time - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Doctor Who Prisoners of Time/(2013)/Doctor Who Prisoners of Time 7 (2013).cbr
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : we should remove 0 characters
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: nonocount [0] cchk [Doctor Who Prisoners of Time] length [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [Doctor Who Prisoners of Time 7 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [ 7 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [28] chars from [Doctor Who Prisoners of Time 7]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [7]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final justthedigits [7]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : subname no brackets: Doctor Who Prisoners of Time 1
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : watchcomic:Doctor Who Prisoners of Time ..comparing to found file: Doctor Who Prisoners of Time 1
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : Doctor Who Prisoners of Time - watchlist match on : /mnt/samba/Books/Comics/IDW Publishing/Doctor Who Prisoners of Time/(2013)/Doctor Who Prisoners of Time 1 (2013).cbr
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : we should remove 0 characters
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: nonocount [0] cchk [Doctor Who Prisoners of Time] length [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final jtd_len to prune [28]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: before title removed from FILENAME [Doctor Who Prisoners of Time 1 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from FILENAME [ 1 (2013).cbr]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: creating just the digits using SUBNAME, pruning first [28] chars from [Doctor Who Prisoners of Time 1]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: after title removed from SUBNAME [1]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : ALEX: final justthedigits [1]
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : you have a total of 7 Doctor Who: Prisoners of Time comics
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : temploc: 4
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : fcdigit: 4000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : fcdigit: 4000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : int_iss: 2000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : fcdigit: 4000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : int_iss: 3000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : fcdigit: 4000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : int_iss: 4000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : issue match - fcdigit: 4000 ... int_iss: 4000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : matched...issue: Doctor Who: Prisoners of Time#4 --- 4000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : .......filename: Doctor Who Prisoners of Time 4 (2013).cbr
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : .......filesize: 46490271
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : issueID to write to db:397574
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : temploc: 5
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : fcdigit: 5000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : fcdigit: 5000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : int_iss: 2000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : fcdigit: 5000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : int_iss: 3000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : fcdigit: 5000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : int_iss: 4000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : fcdigit: 5000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : int_iss: 5000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : issue match - fcdigit: 5000 ... int_iss: 5000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : matched...issue: Doctor Who: Prisoners of Time#5 --- 5000
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : .......filename: Doctor Who Prisoners of Time 5 (2013).cbr
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : .......filesize: 16524053
04-Aug-2013 18:43:57 - DEBUG :: Thread-14 : issueID to write to db:406997
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : temploc: 6
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 6000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 6000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 2000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 6000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 3000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 6000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 4000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 6000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 5000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 6000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 6000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : issue match - fcdigit: 6000 ... int_iss: 6000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : matched...issue: Doctor Who: Prisoners of Time#6 --- 6000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : .......filename: Doctor Who Prisoners of Time 6 (2013).cbr
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : .......filesize: 21610399
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : issueID to write to db:413686
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : temploc: 2
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 2000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 2000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 2000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : issue match - fcdigit: 2000 ... int_iss: 2000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : matched...issue: Doctor Who: Prisoners of Time#2 --- 2000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : .......filename: Doctor Who Prisoners of Time 2 (2013).cbr
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : .......filesize: 47904709
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : issueID to write to db:388589
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : temploc: 3
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 3000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 3000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 2000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 3000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 3000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : issue match - fcdigit: 3000 ... int_iss: 3000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : matched...issue: Doctor Who: Prisoners of Time#3 --- 3000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : .......filename: Doctor Who Prisoners of Time 3 (2013).cbr
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : .......filesize: 22772761
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : issueID to write to db:394722
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : temploc: 7
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 2000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 3000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 4000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 5000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 6000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 7000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 7000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : issue match - fcdigit: 7000 ... int_iss: 7000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : matched...issue: Doctor Who: Prisoners of Time#7 --- 7000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : .......filename: Doctor Who Prisoners of Time 7 (2013).cbr
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : .......filesize: 24579215
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : issueID to write to db:419982
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : temploc: 1
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : fcdigit: 1000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : int_iss: 1000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : issue match - fcdigit: 1000 ... int_iss: 1000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : matched...issue: Doctor Who: Prisoners of Time#1 --- 1000
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : .......filename: Doctor Who Prisoners of Time 1 (2013).cbr
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : .......filesize: 13987333
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : issueID to write to db:382812
04-Aug-2013 18:43:58 - INFO :: Thread-14 : Total files located: 7
04-Aug-2013 18:43:58 - DEBUG :: Thread-14 : I've changed the status of 0 issues to a status of Archived, as I now cannot locate them in the series directory.
04-Aug-2013 18:43:58 - INFO :: Thread-14 : I've physically found 7 issues, ignored 0 issues, and accounted for 0 in an Archived state. Total Issue Count: 7 / 7

@evilhero
Copy link
Owner

evilhero commented Aug 5, 2013

Looks like the code is good - although a few commits behind so I had to just make a minor change for it to work with the Uncanny X-Men (remove the '-' from the re.sub routine). Unfortunately, I just tried it with the dreaded 'AU' issues (Avengers Assemble series). I have 4 files of differing names (on purpose for testing lol):

Avengers Assemble 014AU (2013) (digital) (Son of Ultron-Empire).cbz
Avengers Assemble 015 AU (2013).cbz
Avengers Assemble V2013 016 - Hybrid, Part 1.cbz
Avengers Assemble 017 (2013).cbz

The V2013 was giving a problem, so I removed the versioning character reduction which fixed that poriton:

            if volrem != None:
                jtd_len = len(cchk)# + len(volrem)# + nonocount + 1 #1 is to account for space btwn comic an....

The 14AU worked fine, however the '015 AU' messed up because it's considered 2 strings and it pulls down just the 015.

04-Aug-2013 23:54:15 - DEBUG   :: Thread-13 : ALEX: nonocount [0] cchk [Avengers Assemble] length [17]
04-Aug-2013 23:54:15 - DEBUG   :: Thread-13 : ALEX: final jtd_len to prune [17]
04-Aug-2013 23:54:15 - DEBUG   :: Thread-13 : ALEX: before title removed from FILENAME [Avengers Assemble 015 AU (2013).cbz]
04-Aug-2013 23:54:15 - DEBUG   :: Thread-13 : ALEX: after title removed from FILENAME [ 015 AU (2013).cbz]
04-Aug-2013 23:54:15 - DEBUG   :: Thread-13 : ALEX: creating just the digits using SUBNAME, pruning first [17] chars from [Avengers Assemble 015 AU]
04-Aug-2013 23:54:15 - DEBUG   :: Thread-13 : ALEX: after title removed from SUBNAME [015 AU]
04-Aug-2013 23:54:15 - DEBUG   :: Thread-13 : ALEX: final justthedigits [015]

I'm looking at this now, but tbh I'm not quite sure how this would work.

Edit: Ok, got it to work with spaces and without (15AU, 15 AU, etc)...hopefully this will work for everyone now and that the errors will subside in this regards - thanks much Alex for all the work in this code and working through my mess of a ..well mess :)

@DGMayor
Copy link

DGMayor commented Aug 5, 2013

So I just did a manual refresh on Superior Spider-Man (one with the AU issues) and it choked. I have 1-14 including 6 AU and it shows 1-5 downloaded, 6, 6AU-10 skipped, and 11-14 as wanted.

Exact same thing for Uncanny Avengers. downloaded up to the issue before the # with an AU, skipped those, wanted for the rest. (1-7 downloaded, 8/8 AU skipped, 9 & 10 wanted). I have them all.

@ajw107
Copy link
Author

ajw107 commented Aug 5, 2013

Hi
Sorry for the delay, been a busy morning. I have to admit, I wasn't
aware of the AU special case. If it's just AU we are looking for, I
could check the second token and see if it matches AU (if a space is
separatingthem) or use python to separate the numbers from the letters
first (i.e. check to see if issue number has letters in it) then
separate that into two tokens and check for AU.
At the same time, I may do a few other things, if it's okay:

  1. I was thinking about getting the script to remove more punctuation,
    so that it can actually find files once it renames them (at present
    apostrophise, exclamation marks, etc mess it up)
  2. Do a 'replace table' which looks for naughty characters, such as
    'squared', etc which are not NTFS/SAMBA friendly, and replaces them with
    something better (such as 2)so the rename function does not error out
    there either
  3. I was also wanting to look at the database code to make it so that it
    catches any 'unknown' or empty values and handles them appropriately (so
    no more manually fiddling with the DB contents if not all info for a
    comic is available, especially with dates). This should also stop some
    comics from being in a perpetual 'Loading...' state, as well as top the
    python error pages popping up.

Not sure when I'll get it all done, but does that sound okay?
Alex

On 05/08/2013 05:03, evilhero wrote:

Looks like the code is good - although a few commits behind so I had
to just make a minor change for it to work with the Uncanny X-Men
(remove the '-' from the re.sub routine). Unfortunately, I just tried
it with the dreaded 'AU' issues (Avengers Assemble series). I have 4
files of differing names (on purpose for testing lol):

|Avengers Assemble 014AU (2013) (digital) (Son of Ultron-Empire).cbz
Avengers Assemble 015 AU (2013).cbz
Avengers Assemble V2013 016 - Hybrid, Part 1.cbz
Avengers Assemble 017 (2013).cbz
|

The V2013 was giving a problem, so I removed the versioning character
reduction which fixed that poriton:

| if volrem != None:
jtd_len = len(cchk)# + len(volrem)# + nonocount + 1 #1 is to account for space btwn comic an....
|

The 14AU worked fine, however the '015 AU' messed up because it's
considered 2 strings and it pulls down just the 015. I'm looking at
this now, but tbh I'm not quite sure how this would work.


Reply to this email directly or view it on GitHub
#499 (comment).

@evilhero
Copy link
Owner

evilhero commented Aug 5, 2013

DGMayor: can you post the logfile for the filechecker portion for one of those series ? It may depend on how the filename is - but the logfile would show a much better breakdown of the information.I came across this this morning, that any series having an annual in it's list will error out - I have it working for basic detection on my test box and will commit up the change shortly.

Alex: All of those improvements sound fine to me.

  • if you look in the new code from last night's commit, I have an exception list of "alpha's" to test for (AI, AU, A, B, C) which isn't exhaustive by any means, but those are some common alphanumerics within issue #s. I have it testing for the character following the next space (and following the 1st character) - since it was able to find issues when the alpha's were all together, I concentrated on the space portion atm.
  1. Good - I hate punctuation and it's always been a problem - anything that can be done to improve the process for everyone is most welcome.

  2. Right now it just ignores any 'special' characters based on their ascii code, but replacing is good too - I just could never get it to flow properly because of the unicodes.

3)The empty dates shouldn't be a problem any more - especially since moving to ComicVine only data. The 'loading' though I know is a problem, and it's tricky because if there isn't any data in the DB when it tries to load the page after an add series, it will error since it needs some type of data. I haven't had much of a chance to revisit this as of late.

@DGMayor
Copy link

DGMayor commented Aug 5, 2013

http://paste2.org/tN1pkFJO It might contain a recheck files twice, I just grabbed everything but it was this morning and don't remember if I tried it twice or not ;)

@evilhero
Copy link
Owner

evilhero commented Aug 5, 2013

Exact what I needed to see! I can see why it's messing up - in both cases it's a matter of removing the extension prior to it getting passed :) I submit up the fix today. Thanks again for the log snapshot DG Mayor!

@DGMayor
Copy link

DGMayor commented Aug 5, 2013

Happy to help!

evilhero added a commit that referenced this issue Aug 6, 2013
… IMP:(#499) Annuals will now filecheck, Alphanumeric Issues should work now, IMP:Added nzblog wipe button to History page - will Wipe the nzblog table for those having problems with post-processing and the .1 folders.
@DGMayor
Copy link

DGMayor commented Aug 6, 2013

We're very close. It won't detect the AU files unless there's no space between the # and AU, however when you tell it to rename the files, it adds a space, and then ends up flagging the AU issue as archived because it's renamed it to a format it no longer sees.

Also seems to be having an issue with .1 issues - 15.1, 13.1 etc.

@evilhero
Copy link
Owner

evilhero commented Aug 6, 2013

Hmm ok, that's weird again - the AU (space / no space) works for me....as well as decimal issues. With the decimal issues, have you done a refresh series prior to doing the recheck? It uses a new schema for figuring out issue numbers and is used from that point forward for all matches, so if you have the wrong schema in the db - your matches are all gonna be outta whack for non-normal issues.

Maybe I'll look at the renamer again and update it so it's inline with the post-processor (seperate calls, although probably can junk it and just call the pp now) - perhaps a rename option to have the issue be 15AU vs 15 AU ?

@DGMayor
Copy link

DGMayor commented Aug 6, 2013

Yeah, I refreshed prior.
http://paste2.org/Y4y1LhaO
That's Avenging Spider-Man which has issue 15.1. I have all issues to date.

@evilhero
Copy link
Owner

evilhero commented Aug 6, 2013

Ahh ok, I see it - it's removing the '.' from the issue # well before it even gets to the part where it splits the titles to determine the issue....this could be a bit tricky. I wonder why it worked for me though, and not you ?

@DGMayor
Copy link

DGMayor commented Aug 6, 2013

Windows vs Linux? Only thing I can think of :)

@evilhero
Copy link
Owner

evilhero commented Aug 6, 2013

Nope I figured out the difference....I always have the year in my titles, your series didn't:

Avenging Spider-Man 015.1.cbr

vs..

Avenging Spider-Man 015.1 (2011).cbr

Now just need to figure out a way to get it to work as intended :)

@DGMayor
Copy link

DGMayor commented Aug 6, 2013

Ah ok, yeah I only put the year in the folder name.

@evilhero
Copy link
Owner

I can't recall if this is working now (old age is a b*tch). Can you verify on your end when you get a moment?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants