Fix albums
This commit is contained in:
parent
f2ce155d90
commit
25d9251208
|
@ -207,7 +207,11 @@ async def main():
|
|||
j = j[0]
|
||||
k = k[0]
|
||||
attributes = []
|
||||
mimetype = (await _get_file_mimetype(k)) if k else ''
|
||||
try:
|
||||
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/'):
|
||||
try:
|
||||
data = await _get_video_data(k)
|
||||
|
|
Loading…
Reference in New Issue