Zaczero / google-photos-takeout.sh

🔧 Fixes Google Photos Takeout metadata
GNU Affero General Public License v3.0
11 stars 4 forks source link

Add Subscript Handling #3

Closed RobLaw0304 closed 9 months ago

RobLaw0304 commented 1 year ago

Added handling for automatically generated subscripts when files were uploaded to Google Photos with identical names. This handles files in this format: IMG_1234(1).jpg <-> IMG_1234.jpg(1).json

Zaczero commented 9 months ago

The reason it's hanging is that I want to analyze the issue closely and ensure that this is indeed a reliable way of handling such cases.

Zaczero commented 9 months ago

Awesome! I love it!

https://github.com/Zaczero/google-photos-takeout.sh/commit/d6dd8cc78f8cf8fbee6abf8629ffda7faec7017c

I simplified the nested code and added an extra check for \.json$.