mirror of
https://github.com/evilhero/mylar
synced 2024-12-23 16:22:45 +00:00
IMP: CVInfo will get updated if CV_ONLY enabled and CV_ONETIMER
This commit is contained in:
parent
4653fea4c7
commit
c6e9d94614
1 changed files with 4 additions and 4 deletions
|
@ -579,10 +579,10 @@ def addComictoDB(comicid,mismatch=None,pullupd=None,imported=None,ogcname=None):
|
|||
|
||||
myDB.upsert("comics", newValueStat, controlValueStat)
|
||||
|
||||
if mylar.CVINFO:
|
||||
if not os.path.exists(comlocation + "/cvinfo"):
|
||||
with open(comlocation + "/cvinfo","w") as text_file:
|
||||
text_file.write("http://www.comicvine.com/volume/49-" + str(comicid))
|
||||
if mylar.CVINFO or (mylar.CV_ONLY and mylar.CVINFO):
|
||||
if not os.path.exists(os.path.join(comlocation,"cvinfo")) or mylar.CV_ONETIMER:
|
||||
with open(os.path.join(comlocation,"cvinfo"),"w") as text_file:
|
||||
text_file.write(str(comic['ComicURL']))
|
||||
|
||||
logger.info(u"Updating complete for: " + comic['ComicName'])
|
||||
|
||||
|
|
Loading…
Reference in a new issue