printfuck / xextension-readable Goto Github PK
View Code? Open in Web Editor NEWA FreshRSS extension to fetch article content with Readability or Mercury
License: GNU Affero General Public License v3.0
A FreshRSS extension to fetch article content with Readability or Mercury
License: GNU Affero General Public License v3.0
I cant seem to get the extension to work i get "Unexpected token" here is an output of running curl -XPOST http://read:3000/ -H "Content-Type: application/json" -d'("url": "https://www.androidcentral.com/accessories/audio/amazon-echo-frames-carrera-eyewear-reveal")'
`
<title>Error</title>SyntaxError: Unexpected token ( in JSON at position 0`
at JSON.parse (<anonymous>)
at createStrictSyntaxError (/application/node_modules/body-parser/lib/types/json.js:169:10)
at parse (/application/node_modules/body-parser/lib/types/json.js:86:15)
at /application/node_modules/body-parser/lib/read.js:128:18
at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
at invokeCallback (/application/node_modules/raw-body/index.js:238:16)
at done (/application/node_modules/raw-body/index.js:227:7)
at IncomingMessage.onEnd (/application/node_modules/raw-body/index.js:287:7)
at IncomingMessage.emit (node:events:514:28)
at endReadableNT (node:internal/streams/readable:1359:12)
I have both the Readable and LaTeX extensions installed and they work perfectly each on their own. However, if I fetch the full text of a feed using Readable, the formulas therein no longer get rendered as math by LaTeX. For an example, please see this post. Is this something more easily resolved on the Readable side or the LaTeX one? Thanks!
There is a bug that prevents FreshRSS from updating feeds when Readable is enabled:
PHP Fatal error: Uncaught Error: Call to undefined method FreshRSS_Entry::feedId() in /var/www/FreshRSS/extensions/xExtension-Readable/extension.php:22\nStack trace:\n#0 /var/www/FreshRSS/lib/Minz/ExtensionManager.php(337): ReadableExtension->fetchStuff()\n#1 /var/www/FreshRSS/lib/Minz/ExtensionManager.php(308): Minz_ExtensionManager::callOneToOne()\n#2 /var/www/FreshRSS/app/Controllers/feedController.php(424): Minz_ExtensionManager::callHook()\n#3 /var/www/FreshRSS/app/Controllers/feedController.php(769): FreshRSS_feed_Controller::actualizeFeed()\n#4 /var/www/FreshRSS/lib/Minz/Dispatcher.php(119): FreshRSS_feed_Controller->reloadAction()\n#5 /var/www/FreshRSS/lib/Minz/Dispatcher.php(48): Minz_Dispatcher->launchAction()\n#6 /var/www/FreshRSS/lib/Minz/FrontController.php(76): Minz_Dispatcher->run()\n#7 /var/www/FreshRSS/p/i/index.php(57): Minz_FrontController->run()\n#8 {main}\n thrown in /var/www/FreshRSS/extensions/xExtension-Readable/extension.php on line 22
Thanks for creating this extension!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.