intermediate checkin

This commit is contained in:
2020-01-22 19:24:07 +01:00
parent b75a865a7c
commit 304f0d3eda
5 changed files with 136 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
#!python3
#!python
# https://github.com/hMatoba/Piexif
# http://ce3wiki.theturninggate.net/doku.php?id=file_name_convention
@@ -112,10 +112,10 @@ def rename(old, new):
for daydir in Path(SRC).iterdir():
if not daydir.is_dir():
continue
if daydir.name != "Aquaris U Plus":
if daydir.name != "Sony a5100":
continue
print(f"[{daydir.name}] -------------------------------------------------")
mo = re.match("(?P<dt>\S*)\s?(?P<title>.*)", daydir.name)
md = mo.groupdict()
title = md['title']
recurse(daydir, md, camera="Aquaris U Plus")
recurse(daydir, md)