Skip to content

Commit

Permalink
changed images to load only at full size
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaw committed Sep 18, 2019
1 parent cdb5d83 commit 0307a42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Contents/Code/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ def update_anime(type, metadata, media, force):
# Posters
if metadata.posters is None or force:
try:
thumbnail = Proxy.Preview(
thumbnail = Proxy.Media(
requests.get(
anime['coverImage']['medium'],
anime['coverImage']['extraLarge'],
verify=certifi.where()
).content
)
# //save file
metadata.posters[anime['coverImage']['extraLarge']] = thumbnail
except:
Log.Error('Error: Show has no posters: ' + metadata.id)
Expand Down Expand Up @@ -174,7 +175,7 @@ def update_anime(type, metadata, media, force):
# Banners
if metadata.banners is None or force:
try:
thumbnail = Proxy.Preview(
thumbnail = Proxy.Media(
requests.get(
anime['bannerImage'],
verify=certifi.where()
Expand Down

0 comments on commit 0307a42

Please sign in to comment.