Skip to content

Add --reverse-last option to downloads#9

Open
pakyjr wants to merge 1 commit intoclyang:masterfrom
pakyjr:feature-reverse-last
Open

Add --reverse-last option to downloads#9
pakyjr wants to merge 1 commit intoclyang:masterfrom
pakyjr:feature-reverse-last

Conversation

@pakyjr
Copy link

@pakyjr pakyjr commented Feb 1, 2026

Hello! Thanks for the script, I have added a feature since my SD card had some older photos and I only needed the most recent ones.

I added support for a --reverse-last (-R) flag to download the newest pictures first. The downloadPhotos() signature gains a reverse_last parameter and photoLists is reversed when download_last_n_pictures and reverse_last are set. I also refactored argument handling by calling parser.parse_args() once into args and replacing repeated parser.parse_args() calls.

Add support for a --reverse-last (-R) flag to download the newest pictures first. The downloadPhotos() signature gains a reverse_last parameter and photoLists is reversed when download_last_n_pictures and reverse_last are set. Also refactor argument handling by calling parser.parse_args() once into args and replacing repeated parser.parse_args() calls, update help text, and pass reverse_last through to downloadPhotos.
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