diff --git a/douyin/core/fudai_modules/init_helpers.py b/douyin/core/fudai_modules/init_helpers.py index d94633c..0df5650 100644 --- a/douyin/core/fudai_modules/init_helpers.py +++ b/douyin/core/fudai_modules/init_helpers.py @@ -81,7 +81,7 @@ def apply_fudai_defaults(self: Any) -> None: self.fudai_detail_ocr_task_count_enabled = True self.fudai_detail_ocr_button_enabled = True self.fudai_detail_ocr_participants_enabled = False - self.fudai_detail_ocr_live_title_enabled = False + self.fudai_detail_ocr_live_title_enabled = True self.fudai_detail_task_ocr_in_critical_path_enabled = False self.fudai_detail_countdown_full_ocr_in_critical_path_enabled = False self.fudai_detail_info_line_ocr_in_critical_path_enabled = False diff --git a/douyin/fudai/douyin_fudai_core_pkg/ocr_switches.py b/douyin/fudai/douyin_fudai_core_pkg/ocr_switches.py index e0601ad..8abf942 100644 --- a/douyin/fudai/douyin_fudai_core_pkg/ocr_switches.py +++ b/douyin/fudai/douyin_fudai_core_pkg/ocr_switches.py @@ -12,7 +12,7 @@ OCR_SWITCH_DEFAULTS = { "task_count": True, "button": True, "participants": False, - "live_title": False, + "live_title": True, } OCR_SWITCH_CONFIG_KEYS = { @@ -36,7 +36,7 @@ class FudaiDetailOcrSwitches: task_count: bool = True button: bool = True participants: bool = False - live_title: bool = False + live_title: bool = True def enabled_fields(self) -> set[str]: return { diff --git a/douyin/utils/douyin_config.py b/douyin/utils/douyin_config.py index 1a34de1..0d8c4d6 100644 --- a/douyin/utils/douyin_config.py +++ b/douyin/utils/douyin_config.py @@ -411,7 +411,7 @@ class ConfigManager: "fudai_detail_ocr_task_count_enabled": True, "fudai_detail_ocr_button_enabled": True, "fudai_detail_ocr_participants_enabled": False, - "fudai_detail_ocr_live_title_enabled": False, + "fudai_detail_ocr_live_title_enabled": True, "fudai_detail_task_ocr_in_critical_path_enabled": False, "fudai_detail_countdown_full_ocr_in_critical_path_enabled": False, "fudai_detail_info_line_ocr_in_critical_path_enabled": False, diff --git a/tests/test_fudai_detail_ui_v2.py b/tests/test_fudai_detail_ui_v2.py index d36df30..a2c4b66 100644 --- a/tests/test_fudai_detail_ui_v2.py +++ b/tests/test_fudai_detail_ui_v2.py @@ -217,7 +217,7 @@ def test_ocr_switch_defaults_and_legacy_disable_compat(): task_count=True, button=True, participants=False, - live_title=False, + live_title=True, ) legacy = resolve_fudai_detail_ocr_switches( @@ -255,7 +255,7 @@ def test_code_defaults_include_v2_ocr_keys(): assert defaults.task_count is True assert defaults.button is True assert defaults.participants is False - assert defaults.live_title is False + assert defaults.live_title is True def test_task_list_ocr_is_not_in_detail_critical_path_by_default(monkeypatch):