Began work on refactoring the YTSM application.

This commit is contained in:
2019-12-16 22:19:50 +02:00
parent 794b9bd42d
commit fd5d05232f
23 changed files with 475 additions and 347 deletions

View File

@ -46,4 +46,4 @@ def best_thumbnail(resource: Resource) -> Optional[Thumbnail]:
if thumbs is None or len(thumbs) <= 0:
return None
return max(thumbs, key=lambda t: t.width * t.height)
return max(thumbs, key=lambda t: t.width * t.height)