mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Correctly sort PhotoSizeProgressive thumb size
This commit is contained in:
@@ -740,6 +740,8 @@ class DownloadMethods:
|
|||||||
return 1, len(thumb.bytes)
|
return 1, len(thumb.bytes)
|
||||||
if isinstance(thumb, types.PhotoSize):
|
if isinstance(thumb, types.PhotoSize):
|
||||||
return 1, thumb.size
|
return 1, thumb.size
|
||||||
|
if isinstance(thumb, types.PhotoSizeProgressive):
|
||||||
|
return 1, max(thumb.sizes)
|
||||||
if isinstance(thumb, types.VideoSize):
|
if isinstance(thumb, types.VideoSize):
|
||||||
return 2, thumb.size
|
return 2, thumb.size
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user