plugin XEP-0054: use .jpg instead of .jpe for jpeg files

This commit is contained in:
Goffi 2018-03-02 17:43:41 +01:00
commit 97b3929405

View file

@ -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: