From 9c97d8ca729e3cfb067445c0d3c9ad8284132aeb Mon Sep 17 00:00:00 2001 From: eta-orionis <3466670+eta-orionis@users.noreply.github.com> Date: Wed, 10 Jan 2024 08:23:45 +0100 Subject: JSONFeeds, JSON scraping, and POST requests for feeds (#5662) * allow POST requests for feeds * added json dotpath and jsonfeed subscriptions. No translation strings yet * debug and fix jsonfeed parser * bugfix params saved when editing feed * added translations for JSON features * Update docs for web scraping * make fix-all and revert unrelated changes, plus a few manual fixes, but there are still several type errors * Fix some i18n * refactor json parsing for both feed types * cleanup unnecessary comment * refactored generation of SimplePie for XPath and JSON feeds * Fix merge error * Update to newer FreshRSS code * A bit of refactoring * doc, whitespace * JSON Feed is in two words * Add support for array syntax * Whitespace * Add OPML export/import * Work on i18n * Accept application/feed+json * Rework POST * Fix update * OPML for cURL options * Fix types * Fix Typos --------- Co-authored-by: Erion Elmasllari Co-authored-by: Alexandre Alapetite --- app/i18n/es/sub.php | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) (limited to 'app/i18n/es/sub.php') diff --git a/app/i18n/es/sub.php b/app/i18n/es/sub.php index 6fc8031fb..e466472ca 100644 --- a/app/i18n/es/sub.php +++ b/app/i18n/es/sub.php @@ -26,7 +26,7 @@ return array( 'archiving' => 'Archivo', 'dynamic_opml' => array( '_' => 'OPML dinámico', - 'help' => 'Provee la URL a un archivo OPML para llenar dinámicamente esta categoría con feeds', + 'help' => 'Provee la URL a un archivo OPML para llenar dinámicamente esta categoría con feeds', ), 'empty' => 'Vaciar categoría', 'information' => 'Información', @@ -121,6 +121,45 @@ return array( 'relative' => 'XPath (relativo al elemento) para:', 'xpath' => 'XPath para:', ), + 'json_dotpath' => array( + '_' => 'JSON (Dotted paths)', // TODO + 'feed_title' => array( + '_' => 'feed title', // TODO + 'help' => 'Example: meta.title or a static string: "My custom feed"', // TODO + ), + 'help' => 'A JSON dotted path uses dots between objects and brackets for arrays (e.g. data.items[0].title)', // TODO + 'item' => array( + '_' => 'finding news items
(most important)', // TODO + 'help' => 'JSON path to the array containing the items, e.g. newsItems', // TODO + ), + 'item_author' => 'item author', // TODO + 'item_categories' => 'item tags', // TODO + 'item_content' => array( + '_' => 'item content', // TODO + 'help' => 'Key under which the content is found, e.g. content', // TODO + ), + 'item_thumbnail' => array( + '_' => 'item thumbnail', // TODO + 'help' => 'Example: image', // TODO + ), + 'item_timeFormat' => array( + '_' => 'Custom date/time format', // TODO + 'help' => 'Optional. A format supported by DateTime::createFromFormat() such as d-m-Y H:i:s', // TODO + ), + 'item_timestamp' => array( + '_' => 'item date', // TODO + 'help' => 'The result will be parsed by strtotime()', // TODO + ), + 'item_title' => 'item title', // TODO + 'item_uid' => 'item unique ID', // TODO + 'item_uri' => array( + '_' => 'item link (URL)', // TODO + 'help' => 'Example: permalink', // TODO + ), + 'json' => 'Dotted Path for:', // TODO + 'relative' => 'Dotted Path (relative to item) for:', // TODO + ), + 'jsonfeed' => 'JSON Feed', // TODO 'rss' => 'RSS / Atom (por defecto)', 'xml_xpath' => 'XML + XPath', // IGNORE ), @@ -133,6 +172,11 @@ return array( ), 'max_http_redir' => 'Máximas redirecciones HTTP', 'max_http_redir_help' => 'Escribir 0 o dejarlo en blanco para deshabilitarlo, -1 para redirecciones ilimitadas', + 'method' => array( + '_' => 'HTTP Method', // TODO + ), + 'method_help' => 'The POST payload has automatic support for application/x-www-form-urlencoded and application/json', // TODO + 'method_postparams' => 'Payload for POST', // TODO 'moved_category_deleted' => 'Al borrar una categoría todas sus fuentes pasan automáticamente a la categoría %s.', 'mute' => 'silenciar', 'no_selected' => 'No hay funentes seleccionadas.', -- cgit v1.2.3