vikas5914 / google-photos-backup

Backup photos from Google Photos using Playwright.
MIT License
204 stars 20 forks source link

Files going into `NaN/NaN` folder. #15

Open jaikathuria opened 5 months ago

jaikathuria commented 5 months ago

A lot of the files are going in NaN/NaN folder because of missing metadata.DateTimeOriginal?.year and metadata.DateTimeOriginal?.month

It's not even able to pick the right date and time from HTML as well.

vikas5914 commented 5 months ago

Can you share the image that has the date but is going to the NaN folder? I will check them again,

jaikathuria commented 5 months ago

https://photos.app.goo.gl/7pFyEtrYigivQSLb9

This is a WhatsApp downloaded image which eventually got uploaded to google photos

jaikathuria commented 5 months ago

Figured out the issue. It was with the way we were parsing the date from the HTML.

jaikathuria commented 5 months ago

Here is a small fix for the same.

fix: invalid date when parsing it from html