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

Add script to update creation dates. #61

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ItsKaa
Copy link

@ItsKaa ItsKaa commented Nov 9, 2024

Maybe a bit specific to my personal preferences, so feel free to decline.

Added a script that updates the creation dates in the database since there's no API call for this. The media uploader writes a simple timestamp file, that way the upload process won't be affected if the database connection doesn't work. Had to forward some file-paths through because otherwise we only had access to the raw file-data.

To get the correct modified time in the files, you'd need to set "mtime": true in the gallery-dl config file, but it will first attempt to read the metadata file.

I'm running on Python 3.13 myself, so I also updated some packages to be compatible. It still runs fine in docker too.

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.

1 participant