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/de/sub.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'app/i18n/de') diff --git a/app/i18n/de/sub.php b/app/i18n/de/sub.php index e9be33cf6..b8fba0a7e 100644 --- a/app/i18n/de/sub.php +++ b/app/i18n/de/sub.php @@ -83,6 +83,13 @@ return array( 'keep_min' => 'Minimale Anzahl an Artikeln, die behalten wird', 'kind' => array( '_' => 'Art der Feed-Quelle', + '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 (Webseite scannen)', 'feed_title' => array( @@ -139,7 +146,7 @@ return array( 'help' => 'JSON punktnotiert nutzt Punkte zwischen den Objekten und eckige Klammern für Arrays (e.g. data.items[0].title)', 'item' => array( '_' => 'News Items finden
(sehr wichtig)', - 'help' => 'JSON-Pfad zum Array, das die Items enthält, z.B. newsItems', + 'help' => 'JSON-Pfad zum Array, das die Items enthält, z.B. $ or newsItems', // DIRTY ), 'item_author' => 'Item Autor', 'item_categories' => 'Item Hashtags', -- cgit v1.2.3