From 5c13b806a094f3605e2da70e133551848ad8d9a9 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Thu, 9 Oct 2025 23:19:14 -0600 Subject: [PATCH] Add authentication options for various extractors in gallery.py --- src/download/classes/gallery.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/download/classes/gallery.py b/src/download/classes/gallery.py index 7ff64a3..422ea0a 100644 --- a/src/download/classes/gallery.py +++ b/src/download/classes/gallery.py @@ -33,6 +33,18 @@ class Gallery: command += f" --dest {directory}" if self.dest or is_comic else "" command += f" --download-archive {database}" if self.archive else "" command += self.opt_args if self.opt_args else "" + + # Add authentication options from environment variables + command += ' -o "extractor.pixiv.refresh-token=${GALLERY_DL_PIXIV_REFRESH_TOKEN}"' + command += ' -o "extractor.bluesky.password=${GALLERY_DL_BLUESKY_PASSWORD}"' + command += ' -o "extractor.deviantart.refresh-token=${GALLERY_DL_DEVIANTART_REFRESH_TOKEN}"' + command += ' -o "extractor.flickr.access-token=${GALLERY_DL_FLICKR_ACCESS_TOKEN}"' + command += ' -o "extractor.flickr.access-token-secret=${GALLERY_DL_FLICKR_ACCESS_TOKEN_SECRET}"' + command += ' -o "extractor.reddit.refresh-token=${GALLERY_DL_REDDIT_REFRESH_TOKEN}"' + command += ' -o "extractor.tumblr.access-token=${GALLERY_DL_TUMBLR_ACCESS_TOKEN}"' + command += ' -o "extractor.tumblr.access-token-secret=${GALLERY_DL_TUMBLR_ACCESS_TOKEN_SECRET}"' + command += ' -o "extractor.tumblr.api-key=${GALLERY_DL_TUMBLR_API_KEY}"' + command += ' -o "extractor.tumblr.api-secret=${GALLERY_DL_TUMBLR_API_SECRET}"' if self.link and not self.list: command += f" {quote(self.link)}"