Browse Source

:tada: Write shifted time into file

DricomDragon 2 tháng trước cách đây
mục cha
commit
46e2e21ddd
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      exifScripts/exif_shift.py

+ 4 - 1
exifScripts/exif_shift.py

@@ -44,9 +44,12 @@ def shiftThisFile(filename: str):
         e[k] = targetDateTime.strftime(formatDate).encode()
 
     describeExif(e)
+    return m
 
 
 for filename in filenames:
     print(filename)
-    t = shiftThisFile(filename)
+    exifDict = shiftThisFile(filename)
+    exifBytes = x.dump(exifDict)
+    x.insert(exifBytes, filename)
     print()