Please note that! This article is outdated and is only for deployment reference. It is only applicable to the deployment introduction of AutoBangumi 2.6 and earlier versions, and will not be updated.

The following is Yiquhui DSM 7.1-42661 Update 1 For example, the system uses the Docker suite to install AutoBangumi.

Install qBittorrent

To facilitate debugging and subsequent use, it is recommended to install a separate qBittorrent for AutoBangumi.

Search "johngong/qbittorrent" in the "registry" to download the latest latest edition.

After downloading the image, double-click the image to install it.

Select "bridge" for network settings, or select "Use the same network as the Docker Host", so that the default eight thousand nine hundred and eighty-nine Port.

Rename the container name, such as "qb"; Check "Enable automatic restart" to automatically start qb after restarting the nas; Check "Use high permissions", which will enable the container to have DSM root identity permissions and all functions in the execution phase, so as to avoid the failure to download.

Then click Advanced Settings

If you want to Custom Port , need to be modified here QB_WEBUI_PORT The value of is consistent with the port number you want. If Unable to download (no read/write permission), you can UID and GID All changed to zero

Others can be left as default.

Only one port can be reserved eight thousand nine hundred and eighty-nine , just expose the web UI.

In storage space setting, mapping is required config and Downloads folder. The former stores the qBittorent configuration information, and the latter is the download folder. Remember to map the downloaded folder, or the downloaded file will not be found.

Follow up to configure the AB_DOWNLOAD_PATH For one item, value Please fill in the form of Mount Path

Then enable it. Then test the connection. The address is: ip: 8989

Installing AutoBangumi

The installation steps are basically the same as those in the previous section.

Search the Registry for "estrellaxd/auto_bangumi". If you can't find it, you can try to use "estrellaxd" or "auto_bangumi" instead, Do not copy and paste directly , manually enter the search instead.

Download the latest latest Version, which will be enabled after downloading. Select "bridge" for network settings, check "Enable automatic restart", and then click "Advanced settings".

Click the Add button to fill in new variables in turn, Please choose according to the actual situation

variable value
AB_DOWNLOADER_HOST Please fill in your own qbit torrent link, such as 192.168.123.1:8989
AB_DOWNLOADER_USERNAME Your qbittorrent user name, such as admin
AB_DOWNLOADER_PASSWORD Your qbittorrent password, such as adminadmin
AB_INTERVAL_TIME one thousand and eight hundred
AB_METHOD Advance
AB_GROUP_TAG True
AB_NOT_CONTAIN seven hundred and twenty
AB_DOWNLOAD_PATH Please fill in the download path you set, such as /Downloads/Bangumi , or /Downloads
AB_RSS Fill in your mandarin RSS subscription link
AB_DEBUG_MODE False
AB_WEBUI_PORT seven thousand eight hundred and ninety-two
AB_EP_COMPLETE True
AB_RENAME True
AB_ENABLE_TMDB True
AB_LANGUAGE zh
AB_HTTP_PROXY such as 127.0.0.1:2333 Please don't fill in this line if you don't know what it is
AB_RENAME_FREQ twenty

Please refer to the official wiki " environment variable "Section.

For the storage space setting, refer to the steps in the previous section qBittorrent, mapping /config folder.

Note that the loading path should not be written incorrectly /autobangumi

Then enable it. If all goes well, select the AutoBangumi container and click Details.

Click Log, and the following log output should be available:

If you want to test, environment Under the item, each environment variable should not be left blank, and unused variables should be deleted completely. In general, it means deleting a whole line, = The following cannot be empty.

Take a chestnut, if you don't want to use it AB_NOT_CONTAIN , you can add one at the beginning # notes one Drop this line.

 AutoBangumi: image: estrellaxd/auto_bangumi:latest - TZ=Asia/Shanghai Omit here #- AB_NOT_CONTAIN=720 | Traditional | CHT | JPTC | Traditional | BIG5 restart: unless-stopped

Update qBittorrent/AutoBangumi

If the container image is updated, first download the latest latest edition.

Stop Container Right click the container → Operation → Reset → Select Yes. After resetting, start the container again to complete the update.

Installing with Docker Cli

If you want to reinstall so many environment variables, it is a troublesome process to fill in them repeatedly. So you can try to use Docker Cli to install them.

First, you need to open the ssh Function, setting root Users. Please search and learn by yourself. I won't repeat it here.

Open Windows terminal, use ssh to connect to nas, and enter sudo -i Switch to root User, fill in the following command:

 docker run -d \ --name=AB \ -e TZ=Asia/Shanghai \ -e AB_DOWNLOADER_HOST=192.168.0.46:8979 \ -e AB_DOWNLOADER_USERNAME=mikusa \ -e AB_DOWNLOADER_PASSWORD=mikusa \ -e AB_INTERVAL_TIME=7200 \ -e AB_RENAME_FREQ=20 \ -e AB_METHOD=Advance \ -e AB_GROUP_TAG=True \ -E AB_NOT_CONTAIN=720  | Traditional Chinese  | CHT  | JPTC  | Traditional Days  |  d+-  d+ | BIG5\ -e AB_DOWNLOAD_PATH=/Downloads/Bangumi \ -e AB_RSS= https://mikanani.me/RSS/MyBangumi?token=xxx%3d%3d  \ -e AB_DEBUG_MODE=False \ -e AB_EP_COMPLETE=False \ -e AB_WEBUI_PORT=7892 \ -e AB_RENAME=True \ -e AB_ENABLE_TMDB=True \ -e AB_HTTP_PROXY=xxx \ -e AB_LANGUAGE=zh \ -v /volume1/docker/AB:/config \ -p 7892:7892 \ --dns=8.8.8.8 \ --restart unless-stopped \ estrellaxd/auto_bangumi:latest

Briefly introduce:

  • initial --name=AB Is the container name, please set AB Change it to the name you want
  • -e Is the environment variable, and the following \ It means line break. This character is required for every line except the last line. Please ensure \ Space between and variable name
  • AB_NOT_CONTAIN A result of | The symbol cannot be used. You need to add a backslash before it \ , i.e \|
  • -v To mount a directory, please create a folder to mount to nas in advance, /volume1/docker/AB It is a folder in the nas, which can be set at will; /config It is a folder in the ab container and cannot be customized

Please choose the specific environment variables by yourself. If you need to add other variables, you can modify them by referring to the existing variables.

How do I "map" paths/folders?

For students who are not clear about Docker, "mapping" is a rather obscure thing.

Here is a brief explanation based on my own understanding. It may not be 100% correct, but I'm sure I can understand it.

Because each Docker container is an independent virtual machine, and virtual machines cannot access each other. Therefore, if you want the Docker container to access External data , you need to set the external folder or file mount Into the container.

If two containers need to access a folder that has been mounted locally, the environment variable should also be filled in Inside the container The file path of. You can put the local /Media/Anime Mounted inside the container /Downloads/Bangumi , or any other name.

Take a gravel.

In the glow, on the left Files/Folders refer to Local path , right Mount Path refer to Path inside the container

Therefore, the path filled in AutoBangumi should be Inside the container Of /Downloads/Bangumi

Webui cannot be used

Only older users of earlier versions may experience this problem.

Recently AutoBangumi added an API function for bug testing, which needs to be released seven thousand eight hundred and ninety-two Port. But I can't use it. Execute the test command on the computer terminal according to the instructions of the official wiki curl hostip:7892/api/v1/log , such as:

curl http://192.168.0.46:7892/api/v1/log

Normally, the following contents should be returned:

 $ curl  http://192.168.0.46:7892/api/v1/log [2022-07-16 19:30:32,456] INFO:                     _        ____                                    _ [2022-07-16 19:30:32,456] INFO:          /\        | |      |  _ \                                  (_) [2022-07-16 19:30:32,456] INFO:         /  \  _   _| |_ ___ | |_) | __ _ _ __   __ _ _   _ _ __ ___  _ [2022-07-16 19:30:32,456] INFO:        / /\ \| | | | __/ _ \|  _ < / _` | '_ \ / _` | | | | '_ ` _ \| | [2022-07-16 19:30:32,456] INFO:       / ____ \ |_| | || (_) | |_) | (_| | | | | (_| | |_| | | | | | | | [2022-07-16 19:30:32,456] INFO:      /_/    \_\__,_|\__\___/|____/ \__,_|_| |_|\__, |\__,_|_| |_| |_|_| [2022-07-16 19:30:32,457] INFO:                                                 __/ | [2022-07-16 19:30:32,457] INFO:                                                |___/ [2022-07-16 19:30:32,457] INFO:     Version 2.5.11  Author: EstrellaXD Twitter:  https://twitter.com/Estrella_Pan [2022-07-16 19:30:32,457] INFO:     GitHub:  https://github.com/EstrellaXD/Auto_Bangumi/ [2022-07-16 19:30:32,457] INFO:     Starting AutoBangumi... [2022-07-16 19:30:33,169] INFO:     Remove RSS Feed successfully. [2022-07-16 19:30:33,176] INFO:     Add RSS Feed successfully. [2022-07-16 19:30:33,193] INFO:     Start collecting RSS info. [2022-07-16 19:30:33679] ERROR ERROR match [2022-07-16 19:30:33,679] INFO:     Finished [2022-07-16 19:30:33,679] INFO:     Running....

But what I return is:

 $ curl  http://192.168.0.46:7892/api/v1/log curl: (7) Failed to connect to 192.168.0.46 port 7892 after 2041 ms: Connection refused

At first, I thought that the port was not released, and even tried to scan the port. Finally, it is found that the author modified the AutoBangumi startup command

This is an overview of AutoBangumi in the early Qunhui container:

 Desktop Shortcut: Disabled CPU priority: Medium Memory limit: automatic Execute the command: python3 app.py

Here is an overview of the latest version:

 Desktop Shortcut: Disabled CPU priority: Medium Memory limit: automatic Execute command:/ run.sh

See the clue.

The solution is simple: Delete the container completely and recreate it Remember to add relevant configurations in the environment variables and release the corresponding ports.

use

For details, please refer to the official wiki " environment variable "Section is no longer available here.

Deployment related

  • AB_DOWNLOADER_HOST : You need to fill in the webui link of qBittorent. Fill in if it is on the intranet Localhost: port or 127.0.0.1: port If there is an Internet/public network, you can bind the domain name and fill in the domain name address directly
  • AB_DOWNLOADER_USERNAME : is the webui user name of qBittorrent. The default is admin
  • AB_DOWNLOADER_PASSWORD It is the webui password of qBittorrent. The default is adminadmin
  • If there is a need to change the qBittorrent user name and password, the AutoBangumi settings must be modified at the same time after modification
  • AB_DOWNLOAD_PATH : You need to fill in the path in qBittorent, not the real path. as /Downloads or /Downloads/Bangumi
  • AB_RSS : You need to fill in your own mandarin plan RSS subscription link
  • AB_NOT_CONTAIN : This is an option to set the qBittorrent subscription rules. It supports the use of regular rules. I won't be regular, but | It means "and". If advanced subscription is not enabled in the mandarin plan AB_NOT_CONTAIN=720 | Traditional | CHT | JPTC | Traditional It can basically eliminate most traditional subtitles.
  • AB_GROUP_TAG : Whether to add the group name in the download rule for easy viewing. The RSS subscription rule is [Group Name] Rule Name , closed [Rule Name]

The series number does not correspond to the TMDB

For example, this July's new "Rented Girlfriend 2" is officially named after the previous season, but TMDB distinguishes it from the first season - which is true. In a word, the problem that the 13th statement corresponds to the 1st statement in the second quarter arises.

This is also the problem for Gu Jian, a classmate of last quarter.

Then, before the formal solution is introduced by ab, here is a laborious temporary solution: modify the seed name directly.

Because the ab renaming file is to read the seed file name, you can start in this area.

Right click the seed and select Rename thirteen Change to 01 OK.

Do the same for others. Don't rename them incorrectly. Then wait for ab to rename the file for you.


  1. It can be understood as disabling