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

@@ -19,8 +19,9 @@ DRY_RUN = False
fileidx = defaultdict(int)
CAMERAS = ("GoPro Hero", "DJI Mini 2", "Ricoh Theta V", "Ricoh Theta S", "Sony a5100", "Sony a65", "Sony a68", "Sony TRV-25E", "Fuji Finepix Real 3D W3", "DJI Mini 2", "Samsung Galaxy A40", "Samsung Galaxy A41")
CAMERAS = ("GoPro Hero", "DJI Mini 2", "Ricoh Theta V", "Ricoh Theta S", "Sony a5100", "Sony a65", "Sony a68",
"Sony TRV-25E", "Fuji Finepix Real 3D W3", "DJI Mini 2", "Samsung Galaxy A40", "Samsung Galaxy A41",
'Realme 7 5G', 'Realme GT Neo 2')
def recurse(dir, md, camera=None):
for fp in dir.iterdir():
@@ -65,9 +66,9 @@ def recurse(dir, md, camera=None):
use_ts = False
if model in ('FinePix S602 ZOOM', 'Canon EOS 6D', 'NIKON D5100'):
author = "nn"
if model == 'PULP 4G':
if model == 'PULP 4G' or camera == 'Realme 7 5G':
author = "jb"
if model == 'ASUS_Z00ED':
if model == 'ASUS_Z00ED' or camera == 'Realme GT Neo 2':
author = "sb"
if model == 'SM-A405FN':
author = "ab"

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