Made a few small edits

This commit is contained in:
Clayton Wilson 2017-11-06 14:17:30 -05:00
parent c129cbd417
commit 9aab258350
2 changed files with 2 additions and 3 deletions

View File

@ -98,8 +98,6 @@ def searchImages(idNum, keyType, authHeaders): # This is getting a list of file
quit()
def downloadImages(imageType, respObj, idNum): # TODO some images arent grabbed through the api. save the image number and make a try catch to get any missing images
clearFolders()
parsed_respObj = json.loads(respObj.content)
saveNameList = download(imageType, parsed_respObj)

View File

@ -7,7 +7,7 @@ import urllib.parse
from actions import wait
# TODO Move this to actions
def searchRemainder(imageType, saveNameList, idNum):#Finds any images missing from the api call in getImages
numbers = []
print("Checking for missing images...") # TODO implement this method
@ -135,6 +135,7 @@ def search():
poster = searchImages(idNum, POS_KEY_TYPE, authHeaders)
banner = searchImages(idNum, BAN_KEY_TYPE, authHeaders)
clearFolders()
downloadImages("fanart", fanart, idNum) # TODO find a better way to pass these variables. Constructor?
downloadImages("poster", poster, idNum)
downloadImages("banner", banner, idNum)