config.ini 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. [Settings]
  2. # 开启浏览器运行,若更新无数据可开启此模式,较消耗性能; 可选值: True, False | Enable browser execution, If there are no updates, this mode can be enabled, which consumes more performance; Optional values: True, False
  3. open_driver = False
  4. # 开启无结果频道分类,自动归类至底部; 可选值: True, False | Enable empty category, automatically classified to the bottom; Optional values: True, False
  5. open_empty_category = False
  6. # 开启分辨率过滤,低于最小分辨率(min_resolution)的接口将会被过滤,GUI用户需要手动安装FFmpeg,程序会自动调用FFmpeg获取接口分辨率,推荐开启,虽然会增加测速阶段耗时,但能更有效地区分是否可播放的接口,可选值:True, False | Enable resolution filtering, interfaces below the minimum resolution (min_resolution) will be filtered, GUI users need to manually install FFmpeg, the program will automatically call FFmpeg to obtain the interface resolution, it is recommended to enable, although it will increase the time-consuming of the speed measurement stage, but it can more effectively distinguish whether the interface can be played, optional values: True, False
  7. open_filter_resolution = True
  8. # 开启速率过滤,低于最小速率(min_speed)的接口将会被过滤; 可选值: True, False | Enable rate filtering, interfaces below the minimum rate (min_speed) will be filtered; Optional values: True, False
  9. open_filter_speed = True
  10. # 开启酒店源功能,关闭后所有酒店源工作模式都将关闭; 可选值: True, False | Enable hotel source function, after closing, all hotel source working modes will be closed; Optional values: True, False
  11. open_hotel = True
  12. # 开启 Foodie 酒店源工作模式; 可选值: True, False | Enable Foodie hotel source working mode; Optional values: True, False
  13. open_hotel_foodie = True
  14. # 开启 FOFA、ZoomEye 酒店源工作模式; 可选值: True, False | Enable FOFA, ZoomEye hotel source working mode; Optional values: True, False
  15. open_hotel_fofa = True
  16. # 开启保留所有检索结果,会保留非模板频道名称的结果,推荐手动维护时开启; 可选值: True, False | Enable to keep all search results, will keep the results of non-template channel names, it is recommended to enable when manually maintaining; Optional values: True, False
  17. open_keep_all = False
  18. # 开启本地源功能,将使用模板文件与本地源文件(local.txt)中的数据;可选值: True, False | Enable local source function, will use the data in the template file and the local source file (local.txt); Optional values: True, False
  19. open_local = True
  20. # 开启转换生成 m3u 文件类型结果链接,支持显示频道图标; 可选值: True, False | Enable to convert and generate m3u file type result links, support display channel icons; Optional values: True, False
  21. open_m3u_result = True
  22. # 开启组播源功能,关闭后所有组播源工作模式都将关闭; 可选值: True, False | Enable multicast source function, after closing, all multicast source working modes will be closed; Optional values: True, False
  23. open_multicast = True
  24. # 开启 Foodie 组播源工作模式; 可选值: True, False | Enable Foodie multicast source working mode; Optional values: True, False
  25. open_multicast_foodie = True
  26. # 开启 FOFA 组播源工作模式; 可选值: True, False | Enable FOFA multicast source working mode; Optional values: True, False
  27. open_multicast_fofa = True
  28. # 开启关键字搜索源功能; 可选值: True, False | Enable keyword search source function; Optional values: True, False
  29. open_online_search = False
  30. # 开启代理,自动获取免费可用代理,若更新无数据可开启此模式; 可选值: True, False | Enable proxy, automatically obtain free available proxy, If there are no updates, this mode can be enabled; Optional values: True, False
  31. open_proxy = False
  32. # 开启查询请求,数据来源于网络(仅针对酒店源与组播源); 可选值: True, False | Enable query request, data comes from the network (only for hotel source and multicast source); Optional values: True, False
  33. open_request = False
  34. # 开启页面服务,用于控制是否启动结果页面服务;如果使用青龙等平台部署,有专门设定的定时任务,需要更新完成后停止运行,可以关闭该功能; 可选值: True, False | Enable page service, used to control whether to start the result page service; If you use platforms such as Qinglong for deployment, there are special scheduled tasks, you need to stop running after the update is completed, you can turn off this function; Optional values: True, False
  35. open_service = True
  36. # 开启排序功能(响应速度、日期、分辨率); 可选值: True, False | Enable sorting function (response speed, date, resolution); Optional values: True, False
  37. open_sort = True
  38. # 开启订阅源功能; 可选值: True, False | Enable subscription source function; Optional values: True, False
  39. open_subscribe = True
  40. # 开启补偿机制模式,用于控制当频道接口数量不足时,自动将不满足条件(例如低于最小速率)但可能可用的接口添加至结果中,从而避免结果为空的情况; 可选值: True, False | Enable compensation mechanism mode, used to control when the number of channel interfaces is insufficient, automatically add interfaces that do not meet the conditions (such as lower than the minimum rate) but may be available to the result, thereby avoiding the result being empty; Optional values: True, False
  41. open_supply = True
  42. # 开启更新,用于控制是否更新接口,若关闭则所有工作模式(获取接口和测速)均停止; 可选值: True, False | Enable update, used to control whether to update the interface, if closed, all working modes (get interface and speed measurement) will stop; Optional values: True, False
  43. open_update = True
  44. # 开启显示更新时间; 可选值: True, False | Enable display update time; Optional values: True, False
  45. open_update_time = True
  46. # 开启显示接口说明信息,用于控制是否显示接口来源、分辨率、协议类型等信息,为$符号后的内容,播放软件使用该信息对接口进行描述,若部分播放器(如PotPlayer)不支持解析导致无法播放可关闭; 可选值: True, False | Enable to display interface description information, used to control whether to display interface source, resolution, protocol type and other information, the content after the $ symbol, the playback software uses this information to describe the interface, if some players (such as PotPlayer) do not support parsing and cannot play, you can turn it off; Optional values: True, False
  47. open_url_info = False
  48. # 开启使用本地缓存数据,适用于查询请求失败场景(仅针对酒店源与组播源); 可选值: True, False | Enable to use local cached data, suitable for query request failure scenarios (only for hotel source and multicast source); Optional values: True, False
  49. open_use_cache = True
  50. # 开启使用历史更新结果(包含模板与结果文件的接口),合并至本次更新中; 可选值: True, False | Enable to use historical update results (including interfaces of templates and result files), merged into this update; Optional values: True, False
  51. open_history = True
  52. # 页面服务端口,用于控制页面服务的端口号; 默认值: 8000 | Page service port, used to control the port number of the page service; Default value: 8000
  53. app_port = 8000
  54. # 生成结果文件路径; 默认值: output/result.txt | Generate result file path; Default value: output/result.txt
  55. final_file = output/result.txt
  56. # 结果中偏好的酒店源接口数量 | Preferred number of hotel source interfaces in the result
  57. hotel_num = 10
  58. # 酒店地区获取分页数量 | Number of hotel region acquisition pages
  59. hotel_page_num = 1
  60. # 酒店源地区列表,"全部"表示所有地区 | Hotel source region list, "all" means all regions
  61. hotel_region_list = 全部
  62. # 结果中偏好的 IPv4 接口数量 | Preferred number of IPv4 interfaces in the result
  63. ipv4_num =
  64. # 结果中偏好的 IPv6 接口数量 | Preferred number of IPv6 interfaces in the result
  65. ipv6_num =
  66. # 强制认为当前网络支持IPv6,跳过检测 | Force to consider that the current network supports IPv6, skip detection
  67. ipv6_support = False
  68. # 生成结果中接口的协议类型,可选值:ipv4、ipv6、全部、all | Protocol type of the interface in the generated result, optional values: ipv4, ipv6, 全部, all
  69. ipv_type = 全部
  70. # 接口协议类型偏好,优先将该类型的接口排在结果前面,可选值:ipv4、ipv6、自动、auto | Interface protocol type preference, prefer to put this type of interface in front of the result, optional values: ipv4, ipv6, 自动, auto
  71. ipv_type_prefer = ipv6,ipv4
  72. # 本地源文件路径,默认值: config/local.txt | Local source file path, Default value: config/local.txt
  73. local_file = config/local.txt
  74. # 结果中偏好的本地源接口数量 | Preferred number of local source interfaces in the result
  75. local_num = 10
  76. # 接口最小分辨率,需要开启 open_filter_resolution 才能生效 | Minimum resolution of the interface, need to enable open_filter_resolution to take effect
  77. min_resolution = 1920x1080
  78. # 接口最小速率(单位M/s),需要开启 open_filter_speed 才能生效 | Minimum rate of the interface (unit M/s), need to enable open_filter_speed to take effect
  79. min_speed = 0.2
  80. # 结果中偏好的组播源接口数量 | Preferred number of multicast source interfaces in the result
  81. multicast_num = 10
  82. # 组播地区获取分页数量 | Number of multicast region acquisition pages
  83. multicast_page_num = 1
  84. # 组播源地区列表,"全部"表示所有地区 | Multicast source region list, "all" means all regions
  85. multicast_region_list = 全部
  86. # 结果中偏好的关键字搜索接口数量 | Preferred number of keyword search interfaces in the result
  87. online_search_num = 0
  88. # 关键字搜索频道获取分页数量 | Number of keyword search channel acquisition pages
  89. online_search_page_num = 1
  90. # 结果偏好的接口来源,结果优先按该顺序进行排序,逗号分隔,例如:local,hotel,multicast,subscribe,online_search;local:本地源,hotel:酒店源,multicast:组播源,subscribe:订阅源,online_search:关键字搜索;不填写则表示不指定来源,按照接口速率排序 | Preferred interface source of the result, the result is sorted according to this order, separated by commas, for example: local, hotel, multicast, subscribe, online_search; local: local source, hotel: hotel source, multicast: multicast source, subscribe: subscription source, online_search: keyword search; If not filled in, it means that the source is not specified, and it is sorted according to the interface rate
  91. origin_type_prefer =
  92. # 获取最近时间范围内更新的接口(单位天),适当减小可避免出现匹配问题 | Get the interface updated within the recent time range (unit day), appropriately reducing can avoid matching problems
  93. recent_days = 30
  94. # 查询请求超时时长,单位秒(s),用于控制查询接口文本链接的超时时长以及重试时长,调整此值能优化更新时间 | Query request timeout duration, unit seconds (s), used to control the timeout duration and retry duration of querying the interface text link, adjusting this value can optimize the update time
  95. request_timeout = 10
  96. # 单个接口测速超时时长,单位秒(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
  97. sort_timeout = 10
  98. # 相同域名接口允许重复执行次数,用于控制执行测速、获取分辨率时的重复次数,数值越大结果越准确,但耗时会增加 | 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
  99. sort_duplicate_limit = 3
  100. # 模板文件路径, 默认值: config/demo.txt | Template file path, Default value: config/demo.txt
  101. source_file = config/demo.txt
  102. # 结果中偏好的订阅源接口数量 | Preferred number of subscription source interfaces in the result
  103. subscribe_num = 10
  104. # 时区,可用于控制更新时间显示的时区,可选值:Asia/Shanghai 或其它时区编码 | Time zone, can be used to control the time zone displayed by the update time, optional values: Asia/Shanghai or other time zone codes
  105. time_zone = Asia/Shanghai
  106. # 单个频道接口数量 | Number of interfaces per channel
  107. urls_limit = 10
  108. # 更新时间显示位置,需要开启 open_update_time 才能生效,可选值:top、bottom,top: 显示于结果顶部,bottom: 显示于结果底部 | Update time display position, need to enable open_update_time to take effect, optional values: top, bottom, top: display at the top of the result, bottom: display at the bottom of the result
  109. update_time_position = top