plugin XEP-0054: use .jpg instead of .jpe for jpeg files
This commit is contained in:
parent
7bc5b99ea1
commit
97b3929405
1 changed files with 2 additions and 0 deletions
|
|
@ -226,6 +226,8 @@ class XEP_0054(object):
|
|||
|
||||
ext = mimetypes.guess_extension(mime_type, strict=False)
|
||||
assert ext is not None
|
||||
if ext == u'.jpe':
|
||||
ext = u'.jpg'
|
||||
log.debug(u'photo of type {type} with extension {ext} found [{jid}]'.format(
|
||||
type=mime_type, ext=ext, jid=entity_jid.full()))
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue