added new camera
This commit is contained in:
@@ -19,8 +19,9 @@ DRY_RUN = False
|
|||||||
|
|
||||||
fileidx = defaultdict(int)
|
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):
|
def recurse(dir, md, camera=None):
|
||||||
for fp in dir.iterdir():
|
for fp in dir.iterdir():
|
||||||
@@ -65,9 +66,9 @@ def recurse(dir, md, camera=None):
|
|||||||
use_ts = False
|
use_ts = False
|
||||||
if model in ('FinePix S602 ZOOM', 'Canon EOS 6D', 'NIKON D5100'):
|
if model in ('FinePix S602 ZOOM', 'Canon EOS 6D', 'NIKON D5100'):
|
||||||
author = "nn"
|
author = "nn"
|
||||||
if model == 'PULP 4G':
|
if model == 'PULP 4G' or camera == 'Realme 7 5G':
|
||||||
author = "jb"
|
author = "jb"
|
||||||
if model == 'ASUS_Z00ED':
|
if model == 'ASUS_Z00ED' or camera == 'Realme GT Neo 2':
|
||||||
author = "sb"
|
author = "sb"
|
||||||
if model == 'SM-A405FN':
|
if model == 'SM-A405FN':
|
||||||
author = "ab"
|
author = "ab"
|
||||||
|
|||||||
@@ -24,11 +24,11 @@ def rename(old, new):
|
|||||||
|
|
||||||
# src = Path(r'D:\Videos')
|
# src = Path(r'D:\Videos')
|
||||||
# src = Path(r"D:\MediaLibrary\Pictures\2023\20230819 Urlaub Nordkapp")
|
# 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"):
|
for raw in src.glob("*.jpg"):
|
||||||
mo = re.match("(?P<author>[^-]*)-(?P<dt>\S{8}-\S{6})-(?P<model>[^-]*)(-\S+)?.mp4", raw.name)
|
mo = re.match("(?P<author>[^-]*)-(?P<dt>\S{8}-\S{6})-?(?P<model>[^-]*)(-\S+)?.jpg", raw.name)
|
||||||
if mo is None:
|
if mo is None:
|
||||||
print(f"skipped {raw.name}, no match")
|
print(f"skipped {raw.name}, no match")
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user