KonradIT / mmt

Media Management Tool - make importing videos/photos from GoPro and other action cameras/drones a little bit more bearable.
http://mmt.camera
Apache License 2.0
109 stars 12 forks source link

Only check date range when defined #112

Open inode64 opened 1 year ago

inode64 commented 1 year ago

It can happen and it has happened to me, that the date of the videos recorded by the gopro is in the future and now they are not imported

I have created a function to group the check of date ranges and it only checks the dates in case they contain any value

Type:

Camera:

Component:

Checklist before approval:

inode64 commented 1 year ago

By the way, I have seen https://github.com/markusmobius/go-dateparser which may be interesting for date management, which is a more advanced function, If you want you can modify the code to add it How about?

KonradIT commented 1 year ago

Go's date parser is already pretty good.

KonradIT commented 1 year ago

I have to test this extensively before merging.

inode64 commented 1 year ago

For now, it did not include more changes. I propose the markusmobius/go-dateparser library for another pull request.