mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-13 09:32:27 +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)
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user