mirror of https://github.com/evilhero/mylar
FIX:(#821) Additional fixes for one-off's on the weekly pull-list - will finish searching/matching/sending to client (updating the status on weeklypull list will be forthcoming)
This commit is contained in:
parent
4552ecc27f
commit
44f35de4f2
|
@ -68,7 +68,7 @@
|
|||
<td class="status">${weekly['STATUS']}
|
||||
%if weekly['STATUS'] == 'Skipped':
|
||||
<a href="searchit?name=${weekly['COMIC'] | u}&issue=${weekly['ISSUE']}&mode=pullseries"><span class="ui-icon ui-icon-plus"></span>add series</a>
|
||||
<a href="queueissue?ComicName=${weekly['COMIC'] | u}&ComicIssue=${weekly['ISSUE']}&mode=pullwant"><span class="ui-icon ui-icon-plus"></span>one off</a>
|
||||
<a href="queueissue?ComicName=${weekly['COMIC'] | u}&ComicIssue=${weekly['ISSUE']}&mode=pullwant&Publisher=${weekly['PUBLISHER']}"><span class="ui-icon ui-icon-plus"></span>one off</a>
|
||||
%endif
|
||||
</td>
|
||||
%endif
|
||||
|
|
|
@ -213,8 +213,8 @@ class FailedProcessor(object):
|
|||
|
||||
|
||||
def failed_check(self):
|
||||
issueid = self.issueid
|
||||
comicid = self.comicid
|
||||
#issueid = self.issueid
|
||||
#comicid = self.comicid
|
||||
|
||||
# ID = ID passed by search upon a match upon preparing to send it to client to download.
|
||||
# ID is provider dependent, so the same file should be different for every provider.
|
||||
|
|
|
@ -943,7 +943,7 @@ class WebInterface(object):
|
|||
threading.Thread(target=self.queueissue, kwargs=kwargs).start()
|
||||
queueit.exposed = True
|
||||
|
||||
def queueissue(self, mode, ComicName=None, ComicID=None, ComicYear=None, ComicIssue=None, IssueID=None, new=False, redirect=None, SeriesYear=None, SARC=None, IssueArcID=None, manualsearch=None):
|
||||
def queueissue(self, mode, ComicName=None, ComicID=None, ComicYear=None, ComicIssue=None, IssueID=None, new=False, redirect=None, SeriesYear=None, SARC=None, IssueArcID=None, manualsearch=None, Publisher=None):
|
||||
logger.fdebug('ComicID:' + str(ComicID))
|
||||
logger.fdebug('mode:' + str(mode))
|
||||
now = datetime.datetime.now()
|
||||
|
@ -984,9 +984,10 @@ class WebInterface(object):
|
|||
#better to set both to some generic #, and then filter out later...
|
||||
cyear = myDB.selectone("SELECT SHIPDATE FROM weekly").fetchone()
|
||||
ComicYear = str(cyear['SHIPDATE'])[:4]
|
||||
if Publisher == 'COMICS': Publisher = None
|
||||
if ComicYear == '': ComicYear = now.year
|
||||
logger.info(u"Marking " + ComicName + " " + ComicIssue + " as wanted...")
|
||||
foundcom, prov = search.search_init(ComicName=ComicName, IssueNumber=ComicIssue, ComicYear=ComicYear, SeriesYear=None, Publisher=None, IssueDate=cyear['SHIPDATE'], StoreDate=cyear['SHIPDATE'], IssueID=None, AlternateSearch=None, UseFuzzy=None, ComicVersion=None)
|
||||
foundcom, prov = search.search_init(ComicName=ComicName, IssueNumber=ComicIssue, ComicYear=ComicYear, SeriesYear=None, Publisher=Publisher, IssueDate=cyear['SHIPDATE'], StoreDate=cyear['SHIPDATE'], IssueID=None, AlternateSearch=None, UseFuzzy=None, ComicVersion=None)
|
||||
if foundcom == "yes":
|
||||
logger.info(u"Downloaded " + ComicName + " " + ComicIssue )
|
||||
raise cherrypy.HTTPRedirect("pullist")
|
||||
|
|
Loading…
Reference in New Issue