chore:sort_duplicate_limit default

This commit is contained in:
guorong.zheng 2025-01-21 15:51:44 +08:00
parent c268d1ac12
commit 229bbefe20
6 changed files with 7 additions and 7 deletions

@ -154,7 +154,7 @@ https://cdn.jsdelivr.net/gh/Guovin/iptv-api@gd/source.json
| recent_days | 获取最近时间范围内更新的接口(单位天),适当减小可避免出现匹配问题 | 30 |
| request_timeout | 查询请求超时时长,单位秒(s),用于控制查询接口文本链接的超时时长以及重试时长,调整此值能优化更新时间 | 10 |
| sort_timeout | 单个接口测速超时时长,单位秒(s);数值越大测速所属时间越长,能提高获取接口数量,但质量会有所下降;数值越小测速所需时间越短,能获取低延时的接口,质量较好;调整此值能优化更新时间 | 10 |
| sort_duplicate_limit | 相同域名接口允许重复执行次数,用于控制执行测速、获取分辨率时的重复次数,数值越大结果越准确,但耗时会成倍增加 | 2 |
| sort_duplicate_limit | 相同域名接口允许重复执行次数,用于控制执行测速、获取分辨率时的重复次数,数值越大结果越准确,但耗时会增加 | 3 |
| source_file | 模板文件路径 | config/demo.txt |
| subscribe_num | 结果中偏好的订阅源接口数量 | 10 |
| time_zone | 时区可用于控制更新时间显示的时区可选值Asia/Shanghai 或其它时区编码 | Asia/Shanghai |

@ -155,7 +155,7 @@ https://cdn.jsdelivr.net/gh/Guovin/iptv-api@gd/source.json
| recent_days | Retrieve interfaces updated within a recent time range (in days), reducing appropriately can avoid matching issues | 30 |
| request_timeout | Query request timeout duration, in seconds (s), used to control the timeout and retry duration for querying interface text links. Adjusting this value can optimize update time. | 10 |
| sort_timeout | The timeout duration for speed testing of a single interface, in seconds (s). A larger value means a longer testing period, which can increase the number of interfaces obtained but may decrease their quality. A smaller value means a shorter testing time, which can obtain low-latency interfaces with better quality. Adjusting this value can optimize the update time. | 10 |
| sort_duplicate_limit | Number of allowed repetitions for the same domain interface, used to control the number of repetitions when performing speed tests and obtaining resolutions. The larger the value, the more accurate the results, but the time consumption will increase exponentially | 2 |
| sort_duplicate_limit | Number of allowed repetitions for the same domain interface, used to control the number of repetitions when performing speed tests and obtaining resolutions. The larger the value, the more accurate the results, but the time consumption will increase | 3 |
| source_file | Template file path | config/demo.txt |
| subscribe_num | The number of preferred subscribe source interfaces in the results | 10 |
| time_zone | Time zone, can be used to control the time zone displayed by the update time, optional values: Asia/Shanghai or other time zone codes | Asia/Shanghai |

@ -95,8 +95,8 @@ recent_days = 30
request_timeout = 10
# 单个接口测速超时时长,单位秒(s);数值越大测速所属时间越长,能提高获取接口数量,但质量会有所下降;数值越小测速所需时间越短,能获取低延时的接口,质量较好;调整此值能优化更新时间 | Single interface speed measurement timeout duration, unit seconds (s); The larger the value, the longer the speed measurement time, which can increase the number of interfaces obtained, but the quality will decrease; The smaller the value, the shorter the speed measurement time, which can obtain interfaces with low latency and better quality; Adjusting this value can optimize the update time
sort_timeout = 10
# 相同域名接口允许重复执行次数,用于控制执行测速、获取分辨率时的重复次数,数值越大结果越准确,但耗时会成倍增加 | Number of allowed repetitions for the same domain interface, used to control the number of repetitions when performing speed tests and obtaining resolutions. The larger the value, the more accurate the results, but the time consumption will increase exponentially
sort_duplicate_limit = 2
# 相同域名接口允许重复执行次数,用于控制执行测速、获取分辨率时的重复次数,数值越大结果越准确,但耗时会增加 | Number of allowed repetitions for the same domain interface, used to control the number of repetitions when performing speed tests and obtaining resolutions. The larger the value, the more accurate the results, but the time consumption will increase
sort_duplicate_limit = 3
# 模板文件路径, 默认值: config/demo.txt | Template file path, Default value: config/demo.txt
source_file = config/demo.txt
# 结果中偏好的订阅源接口数量 | Preferred number of subscription source interfaces in the result

@ -47,7 +47,7 @@
| recent_days | 获取最近时间范围内更新的接口(单位天),适当减小可避免出现匹配问题 | 30 |
| request_timeout | 查询请求超时时长,单位秒(s),用于控制查询接口文本链接的超时时长以及重试时长,调整此值能优化更新时间 | 10 |
| sort_timeout | 单个接口测速超时时长,单位秒(s);数值越大测速所属时间越长,能提高获取接口数量,但质量会有所下降;数值越小测速所需时间越短,能获取低延时的接口,质量较好;调整此值能优化更新时间 | 10 |
| sort_duplicate_limit | 相同域名接口允许重复执行次数,用于控制执行测速、获取分辨率时的重复次数,数值越大结果越准确,但耗时会成倍增加 | 2 |
| sort_duplicate_limit | 相同域名接口允许重复执行次数,用于控制执行测速、获取分辨率时的重复次数,数值越大结果越准确,但耗时会增加 | 3 |
| source_file | 模板文件路径 | config/demo.txt |
| subscribe_num | 结果中偏好的订阅源接口数量 | 10 |
| time_zone | 时区可用于控制更新时间显示的时区可选值Asia/Shanghai 或其它时区编码 | Asia/Shanghai |

@ -47,7 +47,7 @@
| recent_days | Retrieve interfaces updated within a recent time range (in days), reducing appropriately can avoid matching issues | 30 |
| request_timeout | Query request timeout duration, in seconds (s), used to control the timeout and retry duration for querying interface text links. Adjusting this value can optimize update time. | 10 |
| sort_timeout | The timeout duration for speed testing of a single interface, in seconds (s). A larger value means a longer testing period, which can increase the number of interfaces obtained but may decrease their quality. A smaller value means a shorter testing time, which can obtain low-latency interfaces with better quality. Adjusting this value can optimize the update time. | 10 |
| sort_duplicate_limit | Number of allowed repetitions for the same domain interface, used to control the number of repetitions when performing speed tests and obtaining resolutions. The larger the value, the more accurate the results, but the time consumption will increase exponentially | 2 |
| sort_duplicate_limit | Number of allowed repetitions for the same domain interface, used to control the number of repetitions when performing speed tests and obtaining resolutions. The larger the value, the more accurate the results, but the time consumption will increase | 3 |
| source_file | Template file path | config/demo.txt |
| subscribe_num | The number of preferred subscribe source interfaces in the results | 10 |
| time_zone | Time zone, can be used to control the time zone displayed by the update time, optional values: Asia/Shanghai or other time zone codes | Asia/Shanghai |

@ -338,7 +338,7 @@ class ConfigManager:
@property
def sort_duplicate_limit(self):
return self.config.getint("Settings", "sort_duplicate_limit", fallback=2)
return self.config.getint("Settings", "sort_duplicate_limit", fallback=3)
def load(self):
"""