feat: make maxres provide the best quality thumbnail available

This commit is contained in:
2025-10-02 12:42:12 +02:00
parent e7ae42f289
commit 7eb4452fec
3 changed files with 16 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ def genThumbs(videoId: str):
result = []
thumbnails = [
#{'height': 720, 'width': 1280, 'quality': "maxres", 'url': "maxres"}, # for the time being omit the buggy maxres quality
{'height': 720, 'width': 1280, 'quality': "maxres", 'url': "maxres"}, # will always attempt to return the best quality available
{'height': 720, 'width': 1280, 'quality': "maxresdefault", 'url': "maxresdefault"},
{'height': 480, 'width': 640, 'quality': "sddefault", 'url': "sddefault"},
{'height': 360, 'width': 480, 'quality': "high", 'url': "hqdefault"},