StoryArc postprocessing fails

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
blakadder
Posts: 2
Joined: Tue Nov 17, 2015 6:13 pm

StoryArc postprocessing fails

Post by blakadder »

log excerpt:

Code: Select all

02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : issue#: 2
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : issueid:488594
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : issueid is now : 488594
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : Story Arc Directory set to : /i-data/md0/comics/StoryArcs/Convergence
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : iss:2
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : issueno:2
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : Zero Suppression set to : 00x
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : issue detected less than 10
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : Zero level supplement set to 00x. Issue will be set as : 002
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : Pretty Comic Issue is : 002
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : Issue Year : 2015
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : Publisher: DC Comics
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : Series: Convergence Superman: The Man of Steel
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : Year: 2015
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : Comic Location: /i-data/md0/comics/StoryArcs/Convergence
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : No version # found for series, removing from filename
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : new format: $Series $Issue ($Year)
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : not an annual - removing from filename paramaters
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : new format: $Series $Issue ($Year)
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : Altering series name due to filenaming restrictions: Convergence Superman The Man of Steel
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : New Filename: Convergence Superman The Man of Steel 002 (2015).cbr
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : Source: /i-data/3b7d53b0/torrents/Convergence - Superman - Man of Steel 002 (2015) (digital) (Minutemen-Mollylvr).cbr
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : Destination: /i-data/md0/comics/StoryArcs/Convergence/Convergence Superman The Man of Steel 002 (2015).cbr
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : [POST-PROCESSING] Renaming file to conform to configuration: /i-data/3b7d53b0/torrents/Convergence - Superman - Man of Steel 002 (2015) (digi$
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : [POST-PROCESSING] readingorder#: 57
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : [POST-PROCESSING] Destination Path : /i-data/md0/comics/StoryArcs/Convergence/057-Convergence Superman The Man of Steel 002 (2015).cbr
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : [POST-PROCESSING] Source Path : /i-data/3b7d53b0/torrents/Convergence - Superman - Man of Steel 002 (2015) (digital) (Minutemen-Mollylvr).cbr
02-Dec-2015 12:45:51 - INFO    :: Thread-90 : [POST-PROCESSING] Moving /i-data/3b7d53b0/torrents/Convergence - Superman - Man of Steel 002 (2015) (digital) (Minutemen-Mollylvr).cbr into d$
02-Dec-2015 12:45:51 - DEBUG   :: Thread-90 : [POST-PROCESSING] Removed temporary directory : /i-data/3b7d53b0/torrents
02-Dec-2015 12:45:51 - ERROR   :: Thread-90 : Uncaught exception: Traceback (most recent call last):
  File "/usr/local/zy-pkgs/ffproot/ffp/share/mylar/mylar/logger.py", line 159, in new_run
    old_run(*args, **kwargs)
  File "/ffp/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/zy-pkgs/ffproot/ffp/share/mylar/mylar/PostProcessor.py", line 624, in Process
    if 'S' in sandwich:
UnboundLocalError: local variable 'sandwich' referenced before assignment

This happens when I run manual postprocessing on downloaded storyarc issues and happens only on storyarc downloads, regular watchlist downloads get postprocessed without errors.

Running development branch on linux (Zyxel NSA325 NAS)
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: StoryArc postprocessing fails

Post by evilhero »

blakadder wrote:This happens when I run manual postprocessing on downloaded storyarc issues and happens only on storyarc downloads, regular watchlist downloads get postprocessed without errors.
Ok, so just so I can follow your workpath with this - the downloaded story arc issues were downloaded using Mylar or outside of Mylar and you're doing a manual post-processing on said issues ? If it was within Mylar, did you initiate the search/download from within the StoryArc page(s), or on the series detail page for the watchlisted' series ?

Reason I need to ask, is depending on which method you're doing - the workflow is different enough to warrant some handling differences of some items. If I were to guess, I would think you were doing the manual post-processing on issues that were downloaded outside of Mylar and they're correctly getting picked up as being part of a story-arc. If this is the case, I believe I can see in the code were it's messing things up and should be an easy fix - if it's not, then I need to do some further digging...
blakadder
Posts: 2
Joined: Tue Nov 17, 2015 6:13 pm

Re: StoryArc postprocessing fails

Post by blakadder »

StoryArcs are downloaded using Mylar via Transmission torrent client. The search for issues was initiated from the StoryArc menu with the "+grab it" command.
The postprocessing fails whether its manual or automatic via folder watching.
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: StoryArc postprocessing fails

Post by evilhero »

blakadder wrote:StoryArcs are downloaded using Mylar via Transmission torrent client. The search for issues was initiated from the StoryArc menu with the "+grab it" command.
The postprocessing fails whether its manual or automatic via folder watching.
Gotcha - Solved and fixed (ran test against some civil war issues I downloaded both using Mylar and not using Mylar). Fix will be in the next development commit :)
Post Reply