mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Implement #4272 (Ignore underscores in metadata import)
This commit is contained in:
parent
136c485114
commit
17dff5c9bd
@ -121,6 +121,7 @@ def metadata_from_filename(name, pat=None):
|
||||
mi = MetaInformation(None, None)
|
||||
if pat is None:
|
||||
pat = re.compile(prefs.get('filename_pattern'))
|
||||
name = name.replace('_', ' ')
|
||||
match = pat.search(name)
|
||||
if match:
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user