Rework logic for insert_url

Add "prepend" option to control where to add insert_url.
This commit is contained in:
Tindy X committed 2020-05-02 10:37:13 +08:00
1 parent f6f2ced3c7
commit 5b692c800b
3 files changed
+41 -17

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ common:
api_access_token: password
default_url: []
insert_url: []
prepend_insert_url: true
exclude_remarks: ["(到期|剩余流量|时间|官网|产品)"]
include_remarks: []
default_external_config: "" # config/example_external_config.yml
+2
View File
@@ -10,6 +10,8 @@ default_url=
;URLs to insert before subscription links, can be used to add node(s) to all exported subscriptions, use "|" to separate multiple subscription links, supports local files/URL
insert_url=
;Prepend inserted URLs to the node list. Nodes in insert_url will be added to groups first with non-group-specific match pattern.
prepend_insert_url=true
;Exclude nodes which remarks match the following patterns. Supports regular expression.
exclude_remarks=(到期|剩余流量|时间|官网|产品)