main2
Bob Mottram 2019-10-31 20:46:37 +00:00
parent 6bf78d35c4
commit e3df836d3b
1 changed files with 16 additions and 15 deletions

View File

@ -114,7 +114,8 @@ def getPersonAvatarUrl(baseDir: str,personUrl: str,personCache: {}) -> str:
"""Returns the avatar url for the person """Returns the avatar url for the person
""" """
personJson = getPersonFromCache(baseDir,personUrl,personCache) personJson = getPersonFromCache(baseDir,personUrl,personCache)
if personJson: if not personJson:
return None
# get from locally stored image # get from locally stored image
actorStr=personJson['id'].replace('/','-') actorStr=personJson['id'].replace('/','-')
avatarImagePath=baseDir+'/cache/avatars/'+actorStr avatarImagePath=baseDir+'/cache/avatars/'+actorStr