Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamp format does not preserve order for long (> 1 hour) videos #28

Open
pranavmarla opened this issue Jan 15, 2023 · 0 comments
Open

Comments

@pranavmarla
Copy link

Due to the way that timestamps are currently formatted in the screenshot names, the order of the screenshots is not preserved for videos greater than 1 hour.

For example, let's say I am watching a video called MyVideo, which is > 1 hour long. I take two screenshots:

  • Screenshot A is taken at the 5 min 41 sec mark
  • Screenshot B is taken at the 1 hour 3 min 16 sec mark

Ideally, the screenshots should be named in such a way that screenshot A is sorted before screenshot B. However, the opposite happens -- the later screenshot (B) is sorted before the earlier screenshot (A). This is because the screenshots are named like this:

  • Screenshot A: MyVideo ... 5-41 screenshot.png
  • Screenshot B: MyVideo ... 1-3-16 screenshot.png

Since 1 < 5, Windows incorrectly sorts screenshot B first.

Instead, if a video is > 1 hour long, there should be an extra 0- at the start of the timestamp (for screenshots taken before the 1 hour mark) to ensure the order is preserved.
In the above example, that means the new names would be:

  • Screenshot A: MyVideo ... 0-5-41 screenshot.png
  • Screenshot B: MyVideo ... 1-3-16 screenshot.png

Now, since 0 < 1, Windows would correctly sort screenshot A first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant