1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-02 12:31:44 +00:00

FIX: forgot None statements

This commit is contained in:
evilhero 2014-06-09 04:03:10 -04:00
parent 1c35ba48fb
commit 89f2d3a5f6
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ def pulldetails(comicid,type,issueid=None,offset=1):
#import easy to use xml parser called minidom:
from xml.dom.minidom import parseString
if mylar.COMICVINE_API == 'None' or mylar.COMICVINE_API == mylar.DEFAULT_CVAPI:
if mylar.COMICVINE_API == 'None' or mylar.COMICVINE_API is None or mylar.COMICVINE_API == mylar.DEFAULT_CVAPI:
logger.warn('You have not specified your own ComicVine API key - alot of things will be limited. Get your own @ http://api.comicvine.com.')
comicapi = mylar.DEFAULT_CVAPI
else:

View file

@ -88,7 +88,7 @@ def findComic(name, mode, issue, limityear=None, explicit=None):
explicit = 'all'
if mylar.COMICVINE_API == 'None' or mylar.COMICVINE_API == mylar.DEFAULT_CVAPI:
if mylar.COMICVINE_API == 'None' or mylar.COMICVINE_API is None or mylar.COMICVINE_API == mylar.DEFAULT_CVAPI:
logger.warn('You have not specified your own ComicVine API key - alot of things will be limited. Get your own @ http://api.comicvine.com.')
comicapi = mylar.DEFAULT_CVAPI
else: