updated author

This commit is contained in:
2020-11-29 17:42:08 +01:00
parent 18ab2e60cc
commit 167d42c19d
2 changed files with 11 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ def recurse(dir, md, camera=None):
# defaults
use_ts = True
use_camera = True
author = "th"
author = "ab"
mtime = fp.stat().st_mtime
rawdt = dt.datetime.fromtimestamp(mtime)
if fp.suffix.lower() == ".jpg":
@@ -112,10 +112,8 @@ def rename(old, new):
for daydir in Path(SRC).iterdir():
if not daydir.is_dir():
continue
if daydir.name != "iPhone":
continue
print(f"[{daydir.name}] -------------------------------------------------")
mo = re.match("(?P<dt>\S*)\s?(?P<title>.*)", daydir.name)
mo = re.match(r"(?P<dt>\S*)\s?(?P<title>.*)", daydir.name)
md = mo.groupdict()
title = md['title']
recurse(daydir, md)