Fix albums
This commit is contained in:
parent
f2ce155d90
commit
25d9251208
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue