FIX: fix for post-processing story-arc issues that were snatched via DDL from within the story arc pages

This commit is contained in:
evilhero 2019-03-12 15:10:36 -04:00
parent 8f96431820
commit f174eae716
2 changed files with 11 additions and 4 deletions

View File

@ -1420,11 +1420,14 @@ class PostProcessor(object):
if self.oneoffinlist is False:
self.oneoff = False
if any([self.issueid is not None, self.issuearcid is not None]):
if self.issueid is not None:
s_id = self.issueid
else:
if self.issuearcid is not None:
s_id = self.issuearcid
else:
s_id = self.issueid
nzbiss = myDB.selectone('SELECT * FROM nzblog WHERE IssueID=?', [s_id]).fetchone()
if nzbiss is None and self.issuearcid is not None:
nzbiss = myDB.selectone('SELECT * FROM nzblog WHERE IssueID=?', ['S'+s_id]).fetchone()
else:
nzbname = self.nzb_name
#remove extensions from nzb_name if they somehow got through (Experimental most likely)

View File

@ -2323,7 +2323,11 @@ def searcher(nzbprov, nzbname, comicinfo, link, IssueID, ComicID, tmpprov, direc
sent_to = None
t_hash = None
if mylar.CONFIG.ENABLE_DDL is True and nzbprov == 'ddl':
ggc = getcomics.GC(issueid=IssueID, comicid=ComicID)
if all([IssueID is None, IssueArcID is not None]):
tmp_issueid = IssueArcID
else:
tmp_issueid = IssueID
ggc = getcomics.GC(issueid=tmp_issueid, comicid=ComicID)
sendsite = ggc.loadsite(nzbid, link)
ddl_it = ggc.parse_downloadresults(nzbid, link)
if ddl_it['success'] is True: