Skip to content

Commit

Permalink
feat:ipv_type and origin_type prefer
Browse files Browse the repository at this point in the history
  • Loading branch information
Guovin committed Oct 18, 2024
1 parent a56c19d commit 30d4924
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 41 deletions.
10 changes: 9 additions & 1 deletion config/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ response_time_weight = 0.5
resolution_weight = 0.5
recent_days = 30
ipv_type = 全部
ipv_type_prefer = IPv4
ipv4_num = 15
ipv6_num = 15
domain_blacklist = epg.pw,skype.serv00.net,iptv.yjxfz.com,live-hls-web-ajb.getaj.net,live.goodiptv.club,hc73k3dhwo5gfkt.wcetv.com
open_m3u_result = True
url_keywords_blacklist =
Expand All @@ -35,4 +38,9 @@ open_hotel_fofa = True
hotel_region_list = 全部
hotel_page_num = 3
open_update_time = True
request_timeout = 10
request_timeout = 10
origin_type_prefer = hotel,multicast,subscribe,online_search
hotel_num = 10
multicast_num = 10
subscribe_num = 10
online_search_num = 10
10 changes: 9 additions & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
| response_time_weight | 0.5 | 响应时间权重值(所有权重值总和应为 1) |
| resolution_weight | 0.5 | 分辨率权重值 (所有权重值总和应为 1) |
| recent_days | 30 | 获取最近时间范围内更新的接口(单位天),适当减小可避免出现匹配问题 |
| ipv_type | ipv4 | 生成结果中接口的类型,可选值:ipv4、ipv6、全部 |
| ipv_type | ipv4 | 生成结果中接口的协议类型,可选值:ipv4、ipv6、全部 |
| ipv_type_prefer | IPv4 | 接口协议类型偏好,优先将该类型的接口排在结果前面,可选值:IPv4、IPv6 |
| ipv4_num | 15 | 结果中偏好的 IPv4 接口数量 |
| ipv6_num | 15 | 结果中偏好的 IPv6 接口数量 |
| domain_blacklist | epg.pw | 接口域名黑名单,用于过滤低质量含广告类域名的接口 |
| url_keywords_blacklist | | 接口关键字黑名单,用于过滤含特定字符的接口 |
| open_subscribe | False | 开启订阅源功能 |
Expand All @@ -36,3 +39,8 @@
| hotel_region_list | 全部 | 酒店源地区列表,[更多地区](../updates/fofa/fofa_map.py),"全部"表示所有地区 |
| hotel_page_num | 3 | 酒店地区获取分页数量 |
| request_timeout | 10 | 查询请求超时时长,单位秒(s),用于控制查询接口文本链接的超时时长以及重试时长,调整此值能优化更新时间 |
| origin_type_prefer | hotel,multicast,subscribe,online_search | 结果偏好的接口来源,结果优先按该顺序进行排序,hotel:酒店源,multicast:组播源,subscribe:订阅源,online_search:在线搜索 |
| hotel_num | 10 | 结果中偏好的酒店源接口数量 |
| multicast_num | 10 | 结果中偏好的组播源接口数量 |
| subscribe_num | 10 | 结果中偏好的订阅源接口数量 |
| online_search_num | 10 | 结果中偏好的在线搜索接口数量 |
Loading

0 comments on commit 30d4924

Please sign in to comment.