# HG changeset patch # User Goffi # Date 1520009021 -3600 # Node ID 4001aa395a04712444e6d89fa1e10fac658045e7 # Parent d485e941649310e956fbd89670d01e6ac1c46964 plugin XEP-0054: use .jpg instead of .jpe for jpeg files diff -r d485e9416493 -r 4001aa395a04 src/plugins/plugin_xep_0054.py --- a/src/plugins/plugin_xep_0054.py Fri Mar 02 17:40:09 2018 +0100 +++ b/src/plugins/plugin_xep_0054.py Fri Mar 02 17:43:41 2018 +0100 @@ -226,6 +226,8 @@ 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: