change 'extension-map' default
Replace all JPEG filename extensions with 'jpg'.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user