Fix albums

This commit is contained in:
blank X 2021-10-23 11:24:44 +07:00
parent f2ce155d90
commit 25d9251208
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 5 additions and 1 deletions

View File

@ -207,7 +207,11 @@ async def main():
j = j[0] j = j[0]
k = k[0] k = k[0]
attributes = [] attributes = []
try:
mimetype = (await _get_file_mimetype(k)) if k else '' mimetype = (await _get_file_mimetype(k)) if k else ''
except TypeError:
# (for now) telethon doesn't easily support attributes for grouped media
mimetype = ''
if mimetype.startswith('video/'): if mimetype.startswith('video/'):
try: try:
data = await _get_video_data(k) data = await _get_video_data(k)