mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Correctly sort PhotoSizeProgressive thumb size
This commit is contained in:
parent
b0158b3f65
commit
73b9de2085
|
@ -740,6 +740,8 @@ class DownloadMethods:
|
|||
return 1, len(thumb.bytes)
|
||||
if isinstance(thumb, types.PhotoSize):
|
||||
return 1, thumb.size
|
||||
if isinstance(thumb, types.PhotoSizeProgressive):
|
||||
return 1, max(thumb.sizes)
|
||||
if isinstance(thumb, types.VideoSize):
|
||||
return 2, thumb.size
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user