Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sailing:bazarr [2023/12/05 12:46] – 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// umnask 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 | ||
- | </ | ||
- | |||
- | 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. | ||
- | |||
- | |||
- | |||
- | |||
- | Configuration | ||
- | And now fire up your browser and go to http:// | ||
- | |||
- | In the Bazarr configuration, | ||
- | |||
- | It's time to setup some providers: you can do so from the Providers configuration page. You will need at least one. | ||
- | |||
- | You are almost done: stop Bazarr from running (just hit CTRL+C in the shell where you started it) and the last step is to ensure that Bazarr is started automatically upon reboot. Create a file called / | ||
- | |||
- | #!/bin/bash | ||
- | cd / | ||
- | python bazarr.py 2>&1 > bazarr.log | ||
- | |||
- | And now create the actual autostart script by pasting this into / | ||
- | |||
- | #!/bin/bash | ||
- | start-stop-daemon -b -m -p / | ||
- | |||
- | and ensure both are executable, so type, as root: | ||
- | |||
- | > chmod +x / | ||
- | > chmod +x / | ||
- | > / | ||
- | |||
- | Done! At this time, if you properly edited the bind address and the Base URL, Bazarr will be accessible only on the server with the local address given before. | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | In my view, it also has some drawbacks: | ||
- | * Clumsy UI, doesn' | ||
- | * Diverge from the *Arr's looks& | ||
- | * It's more complex to setup properly | ||
- | |||
- | I have installed it to match the same collection as Readarr, and i am currently using it over Readarr since the latter is not working, but i plan to switch back to Readarr as soon as it will be again fully operative. | ||
- | |||
- | |||
- | ===== Reverse-Proxy configuration ===== | ||
- | |||
- | Before you proceed, you should make LazyLibrarian accessible via the reverse-proxy, | ||
- | <file txt lazylibrarian.conf> | ||
- | location / | ||
- | proxy_pass http:// | ||
- | proxy_set_header Host $host; | ||
- | proxy_set_header X-Real-IP $remote_addr; | ||
- | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
- | } | ||
- | </ | ||
- | |||
- | Add it to your **/ | ||
- | < | ||
- | include " | ||
- | </ | ||
- | |||
- | and restart nginx: | ||
- | <code bash> | ||
- | > / | ||
- | </ | ||
- | |||
- | ===== Startup ===== | ||
- | |||
- | There are some configuration that must be perform before actually starting the service. | ||
- | |||
- | Edit the file **/ | ||
- | < | ||
- | [GENERAL] | ||
- | ... | ||
- | file_perm = 0o664 | ||
- | dir_perm = 0o775 | ||
- | ebook_dir = /data/Books | ||
- | audio_dir = / | ||
- | download_dir = / | ||
- | ... | ||
- | [WEBSERVER] | ||
- | http_proxy = True | ||
- | http_root = / | ||
- | </ | ||
- | |||
- | A quick summary of the edits: | ||
- | * file_perm / dir_perm: changed to ensure all downloaded& | ||
- | * ebook_dir / audio_dir: match your media collection folders | ||
- | * download_dir: | ||
- | * http_proxy: tell LazyLibrarian you will use a reverse proxy | ||
- | * http_root: the Base URL of the reverse proxy | ||
- | |||
- | Now, start LazyLibrarian: | ||
- | <code bash> | ||
- | > / | ||
- | </ | ||
- | |||
- | All set! LazyLibrarial is running. | ||
- | |||
- | |||
- | ===== Prowlarr link ===== | ||
- | |||
- | In order for LazyLibrarian to benefit from Prowlarr automatic indexers management you need to open **http:// | ||
- | * server: http:// | ||
- | * API Key: grab it from Readarr-books // | ||
- | |||
- | Now add a second Readarr (you will need to specify a different name, like Readarr-audiobooks): | ||
- | * LazyLibrarian server: http:// | ||
- | * API Key: generate it from //config// -> // | ||
- | |||
- | Then go to the Prowlarr indexers page and click on the // | ||
- | |||
- | ===== Usage ===== | ||
- | |||
- | Configuring LazyLibrarian is quite complex and messy, compared to the *Arr's at least. I will give you some pointers here. | ||
- | * No pointers at the moment | ||
- | |||
- | |||
- | Please note that you will not yet be able to use LazyLibrarian fully as you have not yet installed any downloader. | ||
- | |||
- | |||
- | Now, head on to install the other services... | ||
- | |||
- | ---- | ||
- | Next to: [[sailing: | ||
- | |||
- | Prev to: [[sailing: |