BAZARR BULK CLI
A CLI tool for performing actions in bulk on Bazarr movies and TV shows. The tool maintains a local database to track processed subtitles, allowing you to skip previously processed items using the --skip-processed flag.
SQLite database locations on the host machine:
- Linux:
~/.local/share/bazarr-bulk/database.db - Windows:
C:\Users\<username>\AppData\Local\mateoradman\bazarr-bulk\database.db - macOS:
~/Library/Application Support/com.mateoradman.bazarr-bulk/database.db
List of supported actions:
- sync
- ocr-fixes
- common-fixes
- remove-hearing-impaired
- remove-style-tags
- reverse-rtl
Installation
Install with cargo
bazarr-bulk is published on crates.io.
In order to install a Rust crate from crates.io, it is required to have Rust and cargo installed on your system.
Manual installation from an archive
Latest release page provides an option to manually install the bb binary from an archive. The archive is available for Linux, MacOS, and Windows.
Download, extract and move the binary to the desired directory, and set execution permissions.
Linux
- Download the Linux tar.gz archive from the latest release
- Extract the archive
- Move the binary
- Set execution permissions
- Run bb
MacOS
- Download the MacOS (apple-darwin) ZIP archive from the latest release
- Extract the archive
- Move the binary
- Set execution permissions
- Run bb
Windows
- Download the Windows ZIP archive from the latest release
- Extract the archive
- Run bb.exe
Configuration File
The configuration file contains various fields to set up and communicate with Bazarr. Below is a breakdown of each field and its purpose:
-
host:
Defines Bazarr's IP address.- Default:
"0.0.0.0"
- Default:
-
port(optional):
Defines Bazarr's port. Can be omitted if Bazarr is accessible through ports 80 (HTTP) or 443 (HTTPS).- Default:
"6767"(You can change this to any available port on your server).
- Default:
-
protocol:
Specifies the protocol to be used by the service (HTTP or HTTPS). Note: Bazarr must be available using the specified protocol.- Default:
"http".
- Default:
-
apiKey:
The API key used to authenticate Bazarr requests.- Replace
<YOUR_API_KEY>with the actual Bazarr API key.
- Replace
-
baseUrl(optional):
The base URL or path at which the service will be accessible.- Default:
""(You can modify this based on your application's routing needs).
Example:
http://MY-IP:MY-PORT/baseUrl should be an empty string or omitted.http://MY-IP:MY-PORT/bazarr/- baseUrl should be"bazarr".
- Default:
Usage
- Create a JSON config file based on the template file.
- Run
bb --config your-config.json[movies|tv-shows] [ACTION]
CLI Manual
# Performs bulk operations on subtitles of movies and TV shows using Bazarr's API
)
Movies
# Perform operations on movies
)
)
)
)
)
TV Shows
# Perform operations on TV shows
)
)
)
)
)
Sync Options
# Customize TV show/movie subtitle sync options
))