From ccb132523a4ee740d5b576574e9f44668021fbe6 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 13 Oct 2024 15:28:45 +0200 Subject: New feed mode: HTML + XPath + JSON dot notation (JSON in HTML) (#6888) * New feed mode: HTML + XPath + JSON dot notation (JSON in HTML) Same as `JSON+DotNotation` but first extracting the JSON string from an HTML document thanks to an XPath expression. Example: `//script[@type='application/json']` fix https://github.com/FreshRSS/FreshRSS/discussions/6876 * JavaScript UI to show/hide new field * Casing xPathToJson * Slight renaming --- app/i18n/zh-cn/sub.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'app/i18n/zh-cn/sub.php') diff --git a/app/i18n/zh-cn/sub.php b/app/i18n/zh-cn/sub.php index 2ccd4bcf6..274ef677b 100644 --- a/app/i18n/zh-cn/sub.php +++ b/app/i18n/zh-cn/sub.php @@ -83,6 +83,13 @@ return array( 'keep_min' => '至少保存的文章数', 'kind' => array( '_' => '订阅源类型', + 'html_json' => array( + '_' => 'HTML + XPath + JSON dot notation (JSON in HTML)', // TODO + 'xpath' => array( + '_' => 'XPath for JSON in HTML', // TODO + 'help' => 'Example: //script[@type="application/json"]', // TODO + ), + ), 'html_xpath' => array( '_' => 'HTML + XPath (Web 抓取)', 'feed_title' => array( @@ -139,7 +146,7 @@ return array( 'help' => 'JSON 点表达式(JSON 路径)在对象之间使用点,在数组中使用中括号 (例如 data.items[0].title)', 'item' => array( '_' => '寻找新的 文章
(最重要的参数)', - 'help' => '包含文章数组的 JSON 路径, 例如 newsItems', + 'help' => '包含文章数组的 JSON 路径, 例如 $ or newsItems', // DIRTY ), 'item_author' => '文章作者', 'item_categories' => '文章标签', -- cgit v1.2.3