Gallery-dl-server

Latest version: v0.8.0

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.7.3

Changes
- Add `UMASK` environment variable for setting umask property inside the container, default `UMASK=002`
- Add `PROXY_HEADERS` (bool, default: true) and `FORWARDED_ALLOW_IPS` (default: *) environment variables to control the server response to HTTPS headers forwarded by a proxy
- Add `Content-Security-Policy` for all server requests
- Allow cross-origin `GET` and `POST` requests
- Use relative resource paths to ensure there is no mixed content when accessing the server through a HTTPS proxy

Docker Image: [GitHub Container Registry](https://github.com/users/qx6ghqkz/packages/container/gallery-dl-server/360797057?tag=0.7.3) / [Docker Hub](https://hub.docker.com/r/qx6ghqkz/gallery-dl-server/tags?name=0.7.3)

**Full Changelog**: https://github.com/qx6ghqkz/gallery-dl-server/compare/v0.7.2...v0.7.3

0.7.2

Changes

General
- Now tested and confirmed working on Python 3.13
- Do not auto-scroll the logs box during download progress updates
- Catch `KeyboardInterrupt` exception during downloads so that the server can be cleanly terminated with `Ctrl + C` mid-download

Performance
- Use a memory-mapped file for log file progress updates to efficiently access and update the last line of the log file directly in place instead of reading the entire file into memory and writing it back after modifying the last line. This improves performance, especially for larger log files, by reducing memory usage and I/O operations
- Only send updates to the log file over the WebSocket connection, not the entire file each time, and handle download progress updates on the client side
- Ensure logging handlers are properly closed to free up resources and implement a manager for closure of handlers on shutdown

Docker Image: [GitHub Container Registry](https://github.com/users/qx6ghqkz/packages/container/gallery-dl-server/352208997?tag=0.7.2) / [Docker Hub](https://hub.docker.com/r/qx6ghqkz/gallery-dl-server/tags?name=0.7.2)

**Full Changelog**: https://github.com/qx6ghqkz/gallery-dl-server/compare/v0.7.1...v0.7.2

0.7.1

Changes

General
- Show download progress in logs after 3 seconds
- Use [`watchfiles`](https://github.com/samuelcolvin/watchfiles) to monitor changes in the log file using system events instead of polling every second
- Leverage the built-in stop event support of `watchfiles` to stop checking the log file for changes and avoid momentary hanging on `Waiting for background tasks to complete` message during server shutdown
- Although already included in `uvicorn[standard]`, add `watchfiles` as a required dependency for all platforms
- Update README with a working [bookmarklet](https://github.com/qx6ghqkz/gallery-dl-server#bookmarklet) for sending a request containing the current page URL to the server that does not get blocked for mixed content when sending the request from a HTTPS site to a HTTP server
- Add success message instead of the `* ` prefix for completed downloads on Windows
- Show the name of the package instead of `__main__.py` in the `--help` output when run with Python directly

Web UI
- Increase the hitbox of the home button
- Change the default border colour of the submit button to match the rest of the submission form
- Fix logs box border colour transition on focus and adjust the white level of the text

Docker
- Drop support for `linux/arm/v6` Docker images
- Use [`tini`](https://github.com/krallin/tini) as an init system to automatically reap zombie processes left behind by child processes executed by the main application
- Start the server process in a pseudo-TTY for ANSI support (for coloured and progress log messages)

Docker Image: [GitHub Container Registry](https://github.com/users/qx6ghqkz/packages/container/gallery-dl-server/348712852?tag=0.7.1) / [Docker Hub](https://hub.docker.com/r/qx6ghqkz/gallery-dl-server/tags?name=0.7.1)

**Full Changelog**: https://github.com/qx6ghqkz/gallery-dl-server/compare/v0.7.0...v0.7.1

0.7.0

Changes

Packaging
- Package is now on [**PyPI**](https://pypi.org/project/gallery-dl-server/0.7.0/) and is installable via `pip install gallery-dl-server` or `pip install gallery-dl-server[full]` for installation with optional dependencies
- Support command-line arguments as well as environment variables when run as a package from the command line
- When the package is installed and not in the current working directory, create the log file in the user's home directory
- When not installed, create the logs directory in the current working directory instead of the parent directory of the package

Dependencies
- New optional dependencies: `brotli` for Brotli content encoding support, `mkvmerge` for accurate Ugoira frame timecodes, `mutagen` for embedding metadata and thumbnails in certain formats, and `pycryptodomex` to decrypt AES-128 HLS streams and other forms of data
- Update requirements.txt and add relevant environment markers: add `AMD64` platform marker to ensure that Uvicorn's Cython-based dependencies are installed on 64-bit Windows systems, add `brotlicffi` as an optional dependency and add `cpython` implementation markers to improve compatibility with PyPy and other non-CPython implementations
- Add `toml` as a dependency for Python <= 3.10 to ensure compatibility with Python 3.10
- `PyYAML` and `toml` are now optional dependencies that will only be imported when a YAML or TOML configuration file is found

Configuration and Logging
- Attempt to load configuration file only if the file exists at the given path and capture OSError log messages during loading
- Add log messages in case of missing imports when loading configuration files
- Strip whitespace from log messages in more places to avoid logging empty lines

Web UI
- Style improvements, fixes and enhancements
- Colour correction: make colours appear lighter and slightly more vibrant while preserving colour harmony
- Update icons with corrected colour and slightly larger font
- Change main page title from `gallery-dl` to `gallery-dl-server`
- Add navigation bar and a new page for viewing logs with links to view the plain text or save as a file
- Scroll page automatically when increasing the vertical height of the embedded logs box

Connectivity and Backend
- Use a WebSocket connection to stream logs after an initial HTTP fetch to avoid constant fetch requests
- Override Uvicorn's `SIGINT` and `SIGTERM` signal handlers on startup to enable WebSocket connections to be closed before Uvicorn initiates its own exit procedure for a graceful shutdown
- Exception handling for functions that read the log file to prevent the application from crashing when the log file is deleted

Docker Image: [GitHub Container Registry](https://github.com/users/qx6ghqkz/packages/container/gallery-dl-server/345458040?tag=0.7.0) / [Docker Hub](https://hub.docker.com/r/qx6ghqkz/gallery-dl-server/tags?name=0.7.0)

**Full Changelog**: https://github.com/qx6ghqkz/gallery-dl-server/compare/v0.6.1...v0.7.0

0.6.1

Changes
- Remember the selected download option across page reloads using browser local storage
- Add new supported configuration files to the startup check to ensure the default configuration file is only moved into the directory mounted to `/config` if none of those files are present

Docker Image: [GitHub Container Registry](https://github.com/users/qx6ghqkz/packages/container/gallery-dl-server/339203630?tag=0.6.1) / [Docker Hub](https://hub.docker.com/r/qx6ghqkz/gallery-dl-server/tags?name=0.6.1)

**Full Changelog**: https://github.com/qx6ghqkz/gallery-dl-server/compare/v0.6.0...v0.6.1

0.6.0

Changes
- Load configuration files from the current directory when run as an executable
- Add support for YAML and TOML configuration files and convert default configuration file into those formats - see [**docs**](https://github.com/qx6ghqkz/gallery-dl-server/tree/main/docs)
- Generate new configuration file locations for files with `.yaml`, `.yml` and `.toml` extensions - see [**README**](https://github.com/qx6ghqkz/gallery-dl-server/tree/main/docs)
- Log more verbose error messages for exceptions that occur when loading configuration files
- If no configuration file can be loaded, exit the download process immediately and return exit code 1
- Log Windows paths without escaped backslashes
- Add checks for both Docker and Kubernetes container environments
- Bump minimum supported Python version to 3.12
- Display gallery-dl-server version number in web UI
- Open all web UI links in a new tab

Docker Image: [GitHub Container Registry](https://github.com/users/qx6ghqkz/packages/container/gallery-dl-server/338427075?tag=0.6.0) / [Docker Hub](https://hub.docker.com/r/qx6ghqkz/gallery-dl-server/tags?name=0.6.0)

**Full Changelog**: https://github.com/qx6ghqkz/gallery-dl-server/compare/v0.5.2...v0.6.0

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.