Skip to content

Commit

Permalink
Pleasing Pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed Aug 17, 2021
1 parent 5e6a36a commit 3e26499
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion image_preview_thumbnailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def artstation_download_img(match, config=PluginConfig()):
return out_filepath

def behance_download_img(match, config=PluginConfig()):
artwork_url = 'https://www.behance.net/v2/projects/{}?api_key=NdTKNWys9AdBhxMhXnKuxgfzmqvwkg55'.format(match.group(1)) # API key from https://github.com/djheru/js-behance-api
# API key from https://github.com/djheru/js-behance-api
artwork_url = 'https://www.behance.net/v2/projects/{}?api_key=NdTKNWys9AdBhxMhXnKuxgfzmqvwkg55'.format(match.group(1))
resp = http_get(artwork_url, config)
img_url = resp.json()['project']['covers']['404']
out_filepath = download_img(img_url, config)
Expand Down

0 comments on commit 3e26499

Please sign in to comment.