change 'extension-map' default

Replace all JPEG filename extensions with 'jpg'.
This commit is contained in:
Mike Fährmann
2020-11-14 22:40:31 +01:00
parent e5438b8a29
commit 9b1bd09454
4 changed files with 12 additions and 6 deletions

View File

@@ -717,6 +717,13 @@ class Formatter():
class PathFormat():
EXTENSION_MAP = {
"jpeg": "jpg",
"jpe" : "jpg",
"jfif": "jpg",
"jif" : "jpg",
"jfi" : "jpg",
}
def __init__(self, extractor):
filename_fmt = extractor.config("filename", extractor.filename_fmt)
@@ -725,8 +732,7 @@ class PathFormat():
extension_map = extractor.config("extension-map")
if extension_map is None:
# TODO: better default value in 1.16.0
extension_map = {}
extension_map = self.EXTENSION_MAP
self.extension_map = extension_map.get
try:

View File

@@ -6,4 +6,4 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.15.3"
__version__ = "1.16.0-dev"