mirror of https://github.com/evilhero/mylar
FIX: fix for post-processing story-arc issues that were snatched via DDL from within the story arc pages
This commit is contained in:
parent
8f96431820
commit
f174eae716
|
@ -1420,11 +1420,14 @@ class PostProcessor(object):
|
||||||
if self.oneoffinlist is False:
|
if self.oneoffinlist is False:
|
||||||
self.oneoff = False
|
self.oneoff = False
|
||||||
if any([self.issueid is not None, self.issuearcid is not None]):
|
if any([self.issueid is not None, self.issuearcid is not None]):
|
||||||
if self.issueid is not None:
|
if self.issuearcid is not None:
|
||||||
s_id = self.issueid
|
|
||||||
else:
|
|
||||||
s_id = self.issuearcid
|
s_id = self.issuearcid
|
||||||
|
else:
|
||||||
|
s_id = self.issueid
|
||||||
nzbiss = myDB.selectone('SELECT * FROM nzblog WHERE IssueID=?', [s_id]).fetchone()
|
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:
|
else:
|
||||||
nzbname = self.nzb_name
|
nzbname = self.nzb_name
|
||||||
#remove extensions from nzb_name if they somehow got through (Experimental most likely)
|
#remove extensions from nzb_name if they somehow got through (Experimental most likely)
|
||||||
|
|
|
@ -2323,7 +2323,11 @@ def searcher(nzbprov, nzbname, comicinfo, link, IssueID, ComicID, tmpprov, direc
|
||||||
sent_to = None
|
sent_to = None
|
||||||
t_hash = None
|
t_hash = None
|
||||||
if mylar.CONFIG.ENABLE_DDL is True and nzbprov == 'ddl':
|
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)
|
sendsite = ggc.loadsite(nzbid, link)
|
||||||
ddl_it = ggc.parse_downloadresults(nzbid, link)
|
ddl_it = ggc.parse_downloadresults(nzbid, link)
|
||||||
if ddl_it['success'] is True:
|
if ddl_it['success'] is True:
|
||||||
|
|
Loading…
Reference in New Issue