The whole process of Synology deploying nastools

Preparation:

  • First of all, you need to have a Synology NAS, whether it’s black or white, it doesn’t matter.
  • Please explain, the directory on your Synology hard drive cannot span drives, cannot span drives, and cannot span drives. The important thing must be said three times. That is to say, which drive you downloaded the movie on, the hard link drive of your nastools must be together. You cannot say that the movie you downloaded is on drive A, and your nastools hard link folder is on drive B. This will not work.
  • Okay, so get ready to start.

Table of contents:

  1. Add package source
  2. Deploy nastools
  3. Deploy nastools supporting software
  4. Establish a directory hierarchy and grant corresponding permissions (key points)
  5. Settings in nastools

1. Add package source

First of all, I would like to thank Mine God SPK for packaging nastools.

If your Synology is a 6.+ system, your location should be filled in:

https://spk.imnks.com/

If you are using Synology 7.+ system, your location should be filled in:

https://spk7.imnks.com/

These two are different because Synology’s systems, 6.+ and 7.+, have different installation package formats.点击打开套件中心Click to open Package Center

点击设置Click settings

选择套件来源,点击新增,按照图片的内容输入,在位置那输入https://spk7.imnks.comSelect the package source, click Add, enter according to the content of the picture, and enter https://spk7.imnks.com in the location.

保存后,你就能在这里看到一个社群的选项,点击进去就能看到矿神整合的套件了After saving, you will be able to see a community option here. Click on it to see the integrated suite of Mine God.

2. Deploy nastools

Okay, the package source has been added above, and you can already see it in the community.群晖部署nastools全过程Haha, are you excited? Do you want to click to install right away?

Congratulations, you are overly excited. Before clicking to install, you need to install python3.8.在搜索栏,输入python,出来了好几个,找到python 3.8的点击安装In the search bar, enter python, and several will come up. Find python 3.8 and click to install it.Well, after installation, you can happily install nastools.

3. Deploy supporting software

  • Download software deployment

至于选择哪个下载软件,看你自己喜欢了,我习惯使用qbittorrent,当然你也可以选择transmission,当然你还可以选择Aria2了。这个真的是你随意了。 As for which download software to choose, it depends on what you like. I am used to using qbittorrent. Of course, you can also choose transmission. Of course, you can also choose Aria2. This is really up to you.

1. Install qBittorrent

Open the package center, select qb add, and install the package群晖部署nastools全过程

Enter IP:8080 in the browser to open the browser page. Default username: admin Password: adminadmin群晖部署nastools全过程

The following are the settings in qb:

Change the download settings inside to the following picture:

群晖部署nastools全过程

群晖部署nastools全过程 

Now let’s talk about the indexer. The author of the new version of the indexer has added a “built-in indexer”. I think this is easier to use than others. As long as I maintain my site information in site management. It can be used directly. There is no need to deploy other indexers. There is just a small flaw, that is, you cannot choose to download only free resources.

2. Media server deployment

At this point, you have two choices

  1. It is to deploy jellyfin that has been packaged by Mine God
  2. It is to use docker to deploy N large jellyfin

You can deploy however you want here. I won’t go into details. I assume that you choose the lazy version by default and directly use the packaged version of Mine God to install and deploy.群晖部署nastools全过程

3. Deployment of indexer

At this point, because the author has developed a built-in indexer, you only need to maintain the site well before it can be used. So it’s the same. If you use the built-in one, you don’t need to deploy it separately. If you don’t use it, just search for jackett in the package center and install it.

The author of jackett has also optimized it. There is no need to copy the site URLs you set one by one like before. When you enter the jackett page, set the password below, and then directly use the web address + API + password.

Jackett has two purposes: one is to search directly in Jackett, and the other is to provide information sources for other tools.

Install

Search for jackett in the registry, select the first linuxserver/jackett, and select latest for version.

下载容器Download container

In the docker folder, create a new folder and name it jackett , then create two new folders inside the jackett folder: config and **downloads ** .

映射文件mapping file

File mapping is set as follows

/docker/jackett/config:/config (directory where configuration files are saved)

/docker/jackett/downloads:/downloads (download directory, used to save torrent files)

设置set up

As long as there is no conflict in the port, the local port is arbitrary and the container port is 9117.

设置端口Run container

Enter http://Synology IP or domain name:9117 in the browser, and you will see the main interface.

Add indexer

Select Add Indexer

索引器Indexer

Select as needed. If the type is private or Semi-Private, you need to log in to use it.列表
After adding the index, click search. It is the same from both places, and you can search for the resources you want.搜索 

To generate an RSS subscription, you only need to copy the RSS Feed. If you want to generate an RSS subscription with a query, you only need to modify the parameters q (search string) and cat (category).群晖部署nastools全过程

4. Chinesesubfinder (Chinese subtitles) installation and usage tutorial

1. Open the Docker registry, search for chinesesubfinder, and download allanpk716/chinesesubfinder

群晖部署nastools全过程

2. Create a docker folder, create a new chinesesubfinder folder, and then create three folders: browser, cache, and config.

群晖部署nastools全过程

3. Double click allanpk716/chinesesubfinder from the docker image

群晖部署nastools全过程

4. Configure the container, first customize the container name

群晖部署nastools全过程

5. Set the storage space and fill in the loading path as usual.

群晖部署nastools全过程

6. After setting the port and environment, apply this docker

群晖部署nastools全过程
群晖部署nastools全过程

7. Enter in the browser192.168.xx.xx:19035, set username and password

群晖部署nastools全过程

8. Enter the movie and series directory

群晖部署nastools全过程

9. Select emby as the media server and enter the address and API.

群晖部署nastools全过程
群晖部署nastools全过程

10.Enter the username and password to enter the interface

群晖部署nastools全过程

11.Basic configuration and advanced configuration can be adjusted appropriately

群晖部署nastools全过程
群晖部署nastools全过程
群晖部署nastools全过程

12. After the settings are completed, return to the overview and start running.

群晖部署nastools全过程

Attachment 1. Manually download subtitles

  • First refresh the cache and select the movie you want to download subtitles for. Download the subtitles and click OK to jump in line.
群晖部署nastools全过程
群晖部署nastools全过程

Attached is 2. Subtitle settings in nas-tools

  • Select chinesesubfinder in the subtitle service, enter information based on the picture, and add your own CSF API
群晖部署nastools全过程
群晖部署nastools全过程

4. Establish a directory hierarchy and grant access permissions

群晖部署nastools全过程If you don’t understand the picture above, just copy and build it according to my instructions. Let me reiterate, you can’t cross the market, you can’t cross the market.右键点击media,选择属性Right click on media and select properties

这里给everyone权限的目的是怕大家看不懂。如果你了解群晖的权限设置的话,可以单独给nastools、下载软件、媒体服务器开通读写权限。The purpose of giving everyone permission here is to prevent everyone from understanding it. If you understand Synology’s permission settings, you can individually enable read and write permissions for nastools, download software, and media servers.After this setting, the packages you install and the containers deployed by docker can access this folder. Many people have failed in Synology’s deployment without setting access permissions, resulting in inability to access even if the deployment is successful.

Okay, now, the directory hierarchy and permissions have been completed. The next step is the settings in nastools.

5. nastools settings

First, go to the official file structure diagram:这是官方的文件层级的说明,这是最容易犯错的地方,一定要重点注意,很多人就是在这一步做错了,导致后续的不能自动识别硬链接转移。This is the official file level description. This is the most common place to make mistakes. You must pay special attention to it. Many people make mistakes in this step, resulting in the subsequent inability to automatically recognize hard link transfers.Look carefully at the picture above. It doesn’t matter if you don’t understand it. Just follow my example:首先,在media文件夹里面建立两个文件夹分别是:video和linksFirst, create two folders in the media folder: video and links.

Description of these two folders:

video is used to store the videos you downloaded

在links文件夹下面建立3个文件夹(这个根据实际来建立)Create 3 folders under the links folder (this is created based on actual conditions)

在video文件夹下面建立3个文件夹(这个根据实际来建立)Create 3 folders under the video folder (this is created based on actual conditions)video/movie is used to install downloaded movies. The corresponding hard link path is links/movie

video/tv is used to install downloaded TV series. The corresponding hard link path is links/tv

video/dongman is used to install downloaded animations. The corresponding hard link path is links/dongman

Because we have mapped unraid’s media folder directly to media to nas-tools when installing the container.

Here is the corresponding relationship:

unraid /media/video/movie corresponding to nas-tools is /media/video/movie

unraid /media/video/tv corresponding to nas-tools is /media/video/tv

unraid /media/video/dongman corresponding to nas-tools is /media/video/dongman

Everyone should be able to understand it if I write it this way.

Briefly explain the directory hierarchy correspondence:

/media is a first-level directory, no matter how many levels it is in unraid, for nas-tools, it is the first-level directory

/video and /links are secondary directories. No matter what level it is in unraid, for nas-tools, it is the secondary directory.

Then the folders created in /video and /links are all third-level directories.

In the settings of nas-tools, this file hierarchical relationship is very important. If you don’t understand it yet, just copy mine. If you understand, you don’t need to copy mine, you can customize it. You can write anything, but the directory hierarchy must correspond one to one. I was stuck here for half a month. After replacing the nas system (the nas system on the market [Qunhui,OVM, turenas, freenas, unraid and other systems], basically installed them all except those that were closed and unusable). Finally, when I looked at the official directory hierarchy description, I suddenly realized that these articles came out.

Okay, the above text and pictures must be understood carefully, carefully understood, carefully understood, otherwise the configuration will fail.

Detailed settings in nas-tools

Enter IP:3000 in the browser address bar to open the login page. The default account is admin, and the default password is password.

I would like to give the author a thumbs up here. The updates are very positive and the feedback issues are dealt with in a timely manner. Now, new features are being improved and updated almost every day. Click 10,000 likes for this project that uses love to generate electricity??. For those who don’t like this project, please don’t discredit it if you don’t use it. We won’t discredit it if we don’t use it.默认账号admin,默认密码:password。The default account is admin, and the default password is password.

这个完全配置完的首页This fully configured homepage

按照图中的进行设置Set up as shown in the picture

这个目录和下面jellyfin里面设置的目录是一致的This directory is consistent with the directory set in jellyfin below.

nas-tools的详细设置说明

这个是重点,再次强调,必须遵守目录层级的规则,否则无法成功This is the key point. Once again, you must abide by the rules of the directory level, otherwise you will not succeed.

nas-tools的详细设置说明

nas-tools的详细设置说明

nas-tools的详细设置说明

这是消息通知里面配置成功的效果图This is the rendering of the successful configuration in the message notification.

nas-tools的详细设置说明

nas-tools的详细设置说明

这个API KEY填入到上面图中的位置去Fill in this API KEY to the position in the picture above

nas-tools的详细设置说明

这个是规则,就是说,你在微信发消息过来,系统进行检索的时候,会依照这个规则自动进行筛选,符合条件的就进行下载。因为我是广东人,所以你知道的拉,很多港剧都喜欢听原声粤语。所以。。。This is a rule, that is to say, when you send a message on WeChat, when the system searches, it will automatically filter according to this rule, and those that meet the conditions will be downloaded. Because I am Cantonese, so as you know, many Hong Kong dramas like to listen to the original Cantonese version. so. . .

nas-tools的详细设置说明

nas-tools的详细设置说明

nas-tools的详细设置说明

nas-tools的详细设置说明

nas-tools的详细设置说明

nas-tools的详细设置说明

这里要注意,媒体的路径不是video的是links的。因为links里面是经过nas-tools处理过的,所以用jellyfin刮削起来基本上不会出错。It should be noted here that the media path is not for video but for links. Because the links have been processed by nas-tools, there is basically no error when scraping with jellyfin.

nas-tools的详细设置说明

nas-tools的详细设置说明

nas-tools的详细设置说明

nas-tools的详细设置说明

nas-tools的详细设置说明

把这个API复制粘贴到下面图中API Key的位置去Copy and paste this API into the API Key location in the picture below.

nas-tools的详细设置说明

这里两种方式下载字幕,第一种简单,直接注册账号,输入账号密码即可。但是第二种比较强大,它集合了目前常用的字幕网站,全面进行检索,但是可惜。我还没理解里面的配置,后面有时间研究了再写一篇吧。There are two ways to download subtitles. The first one is simple. Just register an account and enter your account password. But the second type is more powerful. It collects currently commonly used subtitle websites and conducts comprehensive searches, but it is a pity. I haven’t understood the configuration yet. I’ll write an article later when I have time to study it.

nas-tools的详细设置说明

这里是豆瓣的,如何获取,看之前的文章吧。This is from Douban. How to get it? Please read the previous article.After the above configuration, there is basically no problem.

6.TMDB API application

alright. In the previous articles, all containers involved in nas-tools have been deployed. So now the preparations begin. There are several things that must be prepared.

  1. TMDB API.
  2. Enterprise WeChat app creation
  3. Douban ID and COOKIE
  4. OpenSubtitles account

1. TMDB API application

First clickhereOpen the official website of TMDB via the link below, register an account, log in, and click My–Edit Information–API to apply. Above:nas-tools设置前的准备工作

我是已经申请好了,如果还不会的话,就参考下的教程I have already applied.At this point, the API of TMDB is obtained.

2. Creation of enterprise WeChat APP

First, download Enterprise WeChat and create a business. So far, individuals can still create businesses, and then log in to your Enterprise WeChat.Web pageend

Configure WeChat menu/Telegram robot (I don’t have that kind of environment in tg, so I won’t talk about it here)

After configuring the WeChat or Telegram robot, you can directly send the name through the WeChat/Telegram robot to realize automatic retrieval and download, and control the operation of the program.

  • WeChat message menu

Configure the WeChat message receiving service: Go to the enterprise WeChat self-built application management page – “API to receive messages” to enable the message receiving service:

1. Generate Token and EncodingAESKey on the WeChat page, fill in the corresponding input items in NASTool Settings->Message Notification->WeChat and save.

2. Restart NASTool.

3. Fill in the WeChat page address URL: http(s)://IP:PORT/wechat, and click OK to authenticate.

Configure WeChat menu control: there are two ways,

One is to enter commands directly in the chat window;

Second, inhttps://work.weixin.qq.com/wework_admin/frame#appsApply the custom menu page to maintain the menu as shown in the figure below (the order of entries needs to be exactly the same, if it is different, you need to modify the WECHAT_MENU menu number definition defined in config.py). The menu content is to send a message, and the message content is a command.nas-tools设置前的准备工作

Correspondence between commands and functions:

Command function

/rssRSSsubscription

/ptt PT download transfer

/ptr PT delete seed

/pts PT station check-in

/rst directory synchronization

/db Douban wants to see

The specific settings are as follows:注册好企业微信,并登陆后台,点击应用管理,找到下面的创建应用点击它Register for Enterprise WeChat, log in to the backend, click on Application Management, find the Create Application below and click on it

nas-tools设置前的准备工作

点击图上的位置创建菜单Click on a location on the image to create a menu

按照我上面的方式,配置好菜单,命令怎么配置看下图Configure the menu according to my method above. See the picture below for how to configure the command.

自己认真看,努力理解,举一反三,对应的功能和命令在上面已经给出来了。对应输入即可。Read it carefully, try to understand it, and draw inferences from one example. The corresponding functions and commands have been given above. Just enter it accordingly.The configuration of the menu ends here. The next step is to configure the automatic retrieval and download by sending the name directly through the WeChat robot, and control the operation of the program.nas-tools设置前的准备工作

这个实测是可以通过域名进行回调的,但是域名必须是一级域名,不能是某些公司旗下的某些域名。比如花生壳的域名是不行的。This actual measurement can be called back through domain names, but the domain names must be first-level domain names and cannot be certain domain names owned by certain companies. For example, a peanut shell domain name will not work.

nas-tools设置前的准备工作

nas-tools设置前的准备工作

nas-tools设置前的准备工作Now the WeChat application is set up.

3. Douban ID and COOKIE

The purpose of setting up Douban is:

1. Enhance search accuracy

2. Mark it in Douban and automatically search it in the background. If it is not complete, it will automatically be added to the subscription and updated.nas-tools设置前的准备工作

4. OpenSubtitles account

First open the website,https://www.opensubtitles.org/enRegister your account and password and remember the account and password. No VIP required.

Newsletter Updates

Enter your email address below and subscribe to our newsletter