ChandimaPrabath commited on
Commit
96e3d15
·
1 Parent(s): ca6954c

replace image with thumbnail

Browse files
Files changed (1) hide show
  1. tvdb.py +1 -1
tvdb.py CHANGED
@@ -139,7 +139,7 @@ async def fetch_and_cache_json(original_title, title, media_type, year=None):
139
  if cleaned_data['data'].get('artworks'):
140
  for artwork in cleaned_data['data']['artworks']:
141
  if artwork['type'] in [15, 3]:
142
- image_link = artwork.get('image')
143
  break
144
  print(f"Image link extracted: {image_link}")
145
 
 
139
  if cleaned_data['data'].get('artworks'):
140
  for artwork in cleaned_data['data']['artworks']:
141
  if artwork['type'] in [15, 3]:
142
+ image_link = artwork.get('thumbnail')
143
  break
144
  print(f"Image link extracted: {image_link}")
145