added new camera

This commit is contained in:
Andreas Balogh
2024-02-11 14:34:35 +01:00
parent d55f341b1a
commit a7e0132658
2 changed files with 8 additions and 7 deletions

View File

@@ -24,11 +24,11 @@ def rename(old, new):
# src = Path(r'D:\Videos')
# src = Path(r"D:\MediaLibrary\Pictures\2023\20230819 Urlaub Nordkapp")
src = Path(r"U:\shared\Nordkapp\Processed")
src = Path(r"U:\shared\Nordkapp\FullHD\Samsung Galaxy A41")
for raw in src.glob("*.mp4"):
mo = re.match("(?P<author>[^-]*)-(?P<dt>\S{8}-\S{6})-(?P<model>[^-]*)(-\S+)?.mp4", raw.name)
for raw in src.glob("*.jpg"):
mo = re.match("(?P<author>[^-]*)-(?P<dt>\S{8}-\S{6})-?(?P<model>[^-]*)(-\S+)?.jpg", raw.name)
if mo is None:
print(f"skipped {raw.name}, no match")
continue