From dd47b7ae48bc945a2029402b6b884d67bf27f2aa Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 11 Apr 2015 09:39:22 -0400 Subject: [PATCH] Improve doc and remove useless config parameters --- docs/full-article-download.markdown | 14 +++++++++----- models/config.php | 2 -- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/full-article-download.markdown b/docs/full-article-download.markdown index 49aa7bd..cdae156 100644 --- a/docs/full-article-download.markdown +++ b/docs/full-article-download.markdown @@ -10,13 +10,11 @@ How the content grabber works? 2. Try to find the text content by using common attributes for class and id 3. Finally, if nothing is found, the feed content is displayed -The content downloader use a fake user agent, actually Google Chrome under Mac Os X. - However the content grabber doesn't work very well with all websites. +Especially websites that use a lot of Javascript to generate the content. **The best results are obtained with Xpath rules file.** - How to write a grabber rules file? ---------------------------------- @@ -48,9 +46,15 @@ return array( ); ``` -Actually, only `body`, `strip` and `test_url` are supported. +Actually, only the keys `body`, `strip` and `test_url` are supported. -Don't forget to send a pull request or a ticket to share your contribution with everybody. +Miniflux will try first to find the file in the [default bundled rules directory](https://github.com/miniflux/miniflux/tree/master/vendor/fguillot/picofeed/lib/PicoFeed/Rules), then it will try to load your custom rules. + +Sharing your custom rules with the community +-------------------------------------------- + +If you would like to share your custom rules with everybody, send a pull-request to the project [PicoFeed](https://github.com/fguillot/picofeed). +That will be merged in the Miniflux code base. List of content grabber rules ----------------------------- diff --git a/models/config.php b/models/config.php index 6b62ee2..16c6da0 100644 --- a/models/config.php +++ b/models/config.php @@ -23,8 +23,6 @@ function get_reader_config() $config->setClientUserAgent(HTTP_USER_AGENT); // Grabber - $config->setGrabberTimeout(HTTP_TIMEOUT); - $config->setGrabberUserAgent(HTTP_USER_AGENT); $config->setGrabberRulesFolder(RULES_DIRECTORY); // Proxy