Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何通过 URL Pattern 实现文件分类下载和存储 (How to Use "Download Location" and "URL Pattern" efficiently) #76

Closed
alexhua opened this issue Aug 24, 2021 · 0 comments
Labels

Comments

@alexhua
Copy link
Owner

alexhua commented Aug 24, 2021

rpc

image

  • Download Location

Download location is used to tell the RPC server the save location of download resources. The location is the absolute path of the system where the RPC server is located

As shown in the figure above, multiple RPC entries can be set for the same RPC URL. Each entry is set with a different download location to facilitate selecting different save location when export download via context menu.

Note: The download location will be not verified for validity. If an incorrect or invalid address is filled in, the downloaded file will be saved at Aria2 binary path or failed if there is no privilege.

  • URL Pattern

URL pattern can automatically select RPC server by setting regular expression and matching resource download URL, so as to realize default RPC server switching or automatic archiving of download resources.

Examples:

  1. Set default Aria2 server. Just fill * in the URL pattern column to determine which RPC server is default.

  2. Sort downloaded files by file type. As shown in the above figure, the extension will automatically download the MKV MP4 torrent file to E:\Videos.


  • 关于下载目录

下载目录用来告诉 RPC Server 下载资源的保存地址,地址格式为 RPC Server 所在系统的绝对路径

如上图,同一个 RPC 地址可以设置多个 RPC 条目,每个条目设置不同的下载目录来方便右键导出时,选择不同的保存地址。

注意:下载目录没有做合法性校验,如果填入了错误或无效的地址,下载文件将会保存到Aria2所在目录。

  • 关于 URL Pattern

URL Pattern 能够通过设置正则表达式,匹配资源下载地址来自动选择 RPC Server,从而实现默认 RPC Server 切换或者下载资源自动归档。

两个例子:

  1. 设置默认 RPC Server,需要设置哪个 RPC Server 为默认 Server,只需在其 URL Pattern 栏填入*
  2. 按文件类型分类下载文件,扩展会自动将 mkv mp4 torrent 文件下载到设置好的 E:\Videos

补充说明:#107

@alexhua alexhua closed this as completed Aug 24, 2021
@alexhua alexhua pinned this issue Aug 24, 2021
@alexhua alexhua added the FAQ label Aug 24, 2021
@alexhua alexhua changed the title [Tips] How to Use "Download Location" and "URL Pattern" efficiently. How to Use "Download Location" and "URL Pattern" Aug 24, 2021
@alexhua alexhua changed the title How to Use "Download Location" and "URL Pattern" How to Use "Download Location" and "URL Pattern" efficiently Aug 24, 2021
@alexhua alexhua changed the title How to Use "Download Location" and "URL Pattern" efficiently 如何通过 URL Pattern 实现文件分类下载和存储 (How to Use "Download Location" and "URL Pattern" efficiently) Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant