Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
sailing:bazarr [2023/12/14 16:02] – willy | sailing:bazarr [2024/02/27 12:25] (current) – removed willy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Prev to: [[sailing: | ||
- | Next to: [[sailing: | ||
- | ---- | ||
- | ====== Bazarr: subtitles downloader & finder ====== | ||
- | |||
- | [[https:// | ||
- | |||
- | ===== Installation ===== | ||
- | |||
- | Bazarr must be installed manually since there is no Gentoo ebuild for it, but it's pretty easy with **pip**. | ||
- | |||
- | As usual, you need to create a specific user and set it's home folder to **/ | ||
- | <code bash> | ||
- | > useradd -d / | ||
- | </ | ||
- | |||
- | Using pip directly is discouraged on Gentoo because it can severely break your system. To use pip on Gentoo you need to explicitly enable it for the //bazarr// user by creating the file **/ | ||
- | <file txt pip.conf> | ||
- | [global] | ||
- | break-system-packages = true | ||
- | user = true | ||
- | </ | ||
- | |||
- | Now adapt the //bazarr// umask so that any files moved by it will be accessible by the other tools (where needed). Add the following line at the end of **/ | ||
- | <code bash> | ||
- | umask 0002 | ||
- | </ | ||
- | |||
- | You can now become the //bazarr// user and proceed with the installation: | ||
- | <code bash> | ||
- | > su - bazar | ||
- | > wget https:// | ||
- | > unzip bazarr.zip | ||
- | > rm bazarr.zip | ||
- | > python -m pip install -r requirements.txt | ||
- | </ | ||
- | |||
- | As last step, you need a startup script called **/ | ||
- | <file txt lazylibrarian.sh> | ||
- | #!/bin/bash | ||
- | cd / | ||
- | python bazarr.py > bazarr_out.log 2> bazarr_err.log | ||
- | </ | ||
- | |||
- | You also want a script to automatically start it at boot, so create the file **/ | ||
- | <file txt bazarr.start> | ||
- | #!/bin/bash | ||
- | |||
- | start-stop-daemon -b -m -p / | ||
- | </ | ||
- | |||
- | and make them both executable: | ||
- | <code bash> | ||
- | > chmod +x / | ||
- | > chmod +x / | ||
- | </ | ||
- | |||
- | That's it, Bazarr is installed, but you will need to configure it before starting. | ||
- | |||
- | ===== Reverse-Proxy configuration ===== | ||
- | |||
- | Before you proceed, you should make Bazarr accessible via the reverse-proxy, | ||
- | <file txt bazarr.conf> | ||
- | location /bazarr/ { | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | # Allow the Bazarr API through if you enable Auth on the block above | ||
- | | ||
- | | ||
- | | ||
- | } | ||
- | } | ||
- | </ | ||
- | |||
- | Add it to your **/ | ||
- | < | ||
- | include " | ||
- | </ | ||
- | |||
- | and restart nginx: | ||
- | <code bash> | ||
- | > / | ||
- | </ | ||
- | |||
- | ===== Startup ===== | ||
- | |||
- | Before starting Bazarr you need to fine-tune the default **/ | ||
- | < | ||
- | ... | ||
- | base_url: /bazarr | ||
- | chmod: ' | ||
- | ip: 127.0.0.1 | ||
- | ... | ||
- | </ | ||
- | |||
- | You need to set the base_url to match the reverse proxy setting and you want to ensure new files by Bazarr are created as readable and writable by the media group (so, 0664) for them to be accessible in your media collection. You also want to bind to IP 127.0.0.1 for security reasons. | ||
- | |||
- | Now you can head to the Bazarr URL (http:// | ||
- | |||
- | Then it's time to setup some providers: you can do so from the Providers configuration page. You will need at least one. | ||
- | |||
- | Go ahead and continue configuring anything else you might want to setup. | ||
- | |||
- | All set! Bazarr is running. | ||
- | |||
- | |||
- | Now, head on to figuring out how to find something to download in your media collection... | ||
- | |||
- | ---- | ||
- | Next to: [[sailing: | ||
- | |||
- | Prev to: [[sailing: |