[Bf-extensions-cvs] [8b6a5c9b] master: BlenderKit: fix wrong location of avatar pics storage.

Vilém Duha noreply at git.blender.org
Sun Jul 14 21:00:57 CEST 2019


Commit: 8b6a5c9b83f65350b69eb6389bf905737204811a
Author: Vilém Duha
Date:   Sun Jul 14 19:55:01 2019 +0200
Branches: master
https://developer.blender.org/rBA8b6a5c9b83f65350b69eb6389bf905737204811a

BlenderKit: fix wrong location of avatar pics storage.

===================================================================

M	blenderkit/search.py

===================================================================

diff --git a/blenderkit/search.py b/blenderkit/search.py
index 6c1cc955..7d388430 100644
--- a/blenderkit/search.py
+++ b/blenderkit/search.py
@@ -588,7 +588,7 @@ def fetch_author(a_id, api_key):
             # utils.p(adata)
             tasks_queue.add_task((write_author, (a_id, adata)))
             if adata.get('gravatarHash') is not None:
-                gravatar_path = paths.get_temp_dir(subdir=None) + adata['gravatarHash'] + '.jpg'
+                gravatar_path = paths.get_temp_dir(subdir='g/') + adata['gravatarHash'] + '.jpg'
                 url = "https://www.gravatar.com/avatar/" + adata['gravatarHash'] + '?d=404'
                 r = requests.get(url, stream=False)
                 if r.status_code == 200:



More information about the Bf-extensions-cvs mailing list