Skip to content

Commit

Permalink
fixed aspect ratio log reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
sb0y committed Nov 3, 2024
1 parent 63580df commit a82840d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warp_beacon/scraper/youtube/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def download_thumbnail(self, video_id: str, timeout: int) -> Optional[io.BytesIO
with requests.get(url, timeout=(timeout, timeout)) as response:
if response.status_code == 200:
image = Image.open(io.BytesIO(response.content))
image = self.crop_black_edges_pil(image)
ratio = self.aspect_ratio(image.size)
image = self.crop_black_edges_pil(image)
logging.info("thumb ratio: '%s'", ratio)
new_image = self.resize_aspect_ratio(image)
logging.info("thumb size: '%s'", new_image.size)
Expand Down

0 comments on commit a82840d

Please sign in to comment.