parent
06c8055fb2
commit
fc617a2c67
1 changed files with 2 additions and 2 deletions
|
@ -134,8 +134,8 @@ def new_media(room_id, msg):
|
|||
dl.raise_for_status()
|
||||
with magic.Magic(flags=magic.MAGIC_MIME_TYPE) as m:
|
||||
info['mimetype'] = m.id_buffer(dl.content)
|
||||
info['size'] = dl.content
|
||||
ul = matrix_api.media_upload(dl.content, mtype)
|
||||
info['size'] = len(dl.content)
|
||||
ul = matrix_api.media_upload(dl.content, info['mimetype'])
|
||||
|
||||
if 'title' in oembed:
|
||||
title = oembed.title
|
||||
|
|
Loading…
Reference in a new issue