Skip to content

Parse All Galleries for date#507

Merged
DogmaDragon merged 5 commits intostashapp:mainfrom
dynamosTopspin:main
Mar 1, 2025
Merged

Parse All Galleries for date#507
DogmaDragon merged 5 commits intostashapp:mainfrom
dynamosTopspin:main

Conversation

@dynamosTopspin
Copy link
Contributor

  • Break out the date parsing to a separate function.
  • Expand gallery search to more than single file zip galleries.
  • Also scan the gallery's folder path if available.

The final valid parsed date of the files, then the gallery folder will be taken as the gallery's date. This will preserve the previous behavior of single file zip galleries, as there will be only one path to ever consider.

- Break out the date parsing to a separate function.
- Expand gallery search to more than single file zip galleries.
- Also scan the gallery's folder path if available.

The final valid parsed date of the files, then the gallery folder will be taken as the gallery's date. This will preserve the previous behavior of single file zip galleries, as there will be only one path to ever consider.
Previous logic returned the last possible valid date string in the path string, which is the more correct approach when a parent directory might also have a date string.
@DogmaDragon DogmaDragon merged commit 49e4156 into stashapp:main Mar 1, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants