change line length
This commit is contained in:
parent
68aacc1926
commit
7115cacbcb
1 changed files with 4 additions and 2 deletions
|
@ -131,8 +131,10 @@ class image_classifier:
|
||||||
self._log.error(f"Failed to convert EXIF information about date '{original_date}'.")
|
self._log.error(f"Failed to convert EXIF information about date '{original_date}'.")
|
||||||
folder_date = 'unknown-time'
|
folder_date = 'unknown-time'
|
||||||
if folder_date == 'unknown-time':
|
if folder_date == 'unknown-time':
|
||||||
match = re.search(r'(?P<year>20[0-9]{2})[\-/\._]?\
|
match = re.search(
|
||||||
(?P<month>[0-1]?[0-9])[\-/\._]?(?P<day>[0-3]?[0-9])', filename)
|
r'(?P<year>20[0-9]{2})[\-/\._]?(?P<month>[0-1]?[0-9])[\-/\._]?(?P<day>[0-3]?[0-9])',
|
||||||
|
filename
|
||||||
|
)
|
||||||
if match:
|
if match:
|
||||||
folder_date = f"{match.group('year')}.{match.group('month')}.\
|
folder_date = f"{match.group('year')}.{match.group('month')}.\
|
||||||
{match.group('day')}"
|
{match.group('day')}"
|
||||||
|
|
Loading…
Reference in a new issue