forked from friendica/friendica-addons
Merge https://github.com/friendica/friendica-addons into apull
This commit is contained in:
commit
f77d002237
|
@ -277,10 +277,8 @@ function retriever_item_completed($retriever_item_id, $resource) {
|
||||||
if (!$retriever_item) {
|
if (!$retriever_item) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Note: the retriever might be null. Doesn't matter.
|
||||||
$retriever = get_retriever($retriever_item['contact-id'], $retriever_item['item-uid']);
|
$retriever = get_retriever($retriever_item['contact-id'], $retriever_item['item-uid']);
|
||||||
if (!$retriever) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$item = retriever_get_item($retriever_item);
|
$item = retriever_get_item($retriever_item);
|
||||||
if (!$item) {
|
if (!$item) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -23,7 +23,7 @@ connectivity.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
However, setting up retriever can be quite tricky since it depends on
|
However, setting up retriever can be quite tricky since it depends on
|
||||||
the internal design of the website. This was designed to make life
|
the internal design of the website. That was designed to make life
|
||||||
easy for the website's developers, not for you. You'll need to have
|
easy for the website's developers, not for you. You'll need to have
|
||||||
some familiarity with HTML, and be willing to adapt when the website
|
some familiarity with HTML, and be willing to adapt when the website
|
||||||
suddenly changes everything without notice.
|
suddenly changes everything without notice.
|
||||||
|
@ -48,7 +48,7 @@ A simple case is when the article is wrapped in a "div" element:
|
||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
...
|
...
|
||||||
<div class="main-content">
|
<div class="ArticleWrapper">
|
||||||
<h2>Man Bites Dog</h2>
|
<h2>Man Bites Dog</h2>
|
||||||
<img src="mbd.jpg">
|
<img src="mbd.jpg">
|
||||||
<p>
|
<p>
|
||||||
|
@ -63,7 +63,7 @@ A simple case is when the article is wrapped in a "div" element:
|
||||||
</pre>
|
</pre>
|
||||||
<p>
|
<p>
|
||||||
You then specify the tag "div", attribute "class", and value
|
You then specify the tag "div", attribute "class", and value
|
||||||
"main-content". Everything else in the page, such as navigation
|
"ArticleWrapper". Everything else in the page, such as navigation
|
||||||
panels and menus and footers and so on, will be discarded. If there
|
panels and menus and footers and so on, will be discarded. If there
|
||||||
is more than one section of the page you want to include, specify each
|
is more than one section of the page you want to include, specify each
|
||||||
one on a separate row. If the matching section contains some sections
|
one on a separate row. If the matching section contains some sections
|
||||||
|
@ -81,7 +81,7 @@ articles should be available.
|
||||||
<p>
|
<p>
|
||||||
You can leave the attribute and value blank to include all the
|
You can leave the attribute and value blank to include all the
|
||||||
corresponding elements with the specified tag name. You can also use
|
corresponding elements with the specified tag name. You can also use
|
||||||
a tag name of "*", which will match any element type with the
|
a tag name of just an asterisk ("*"), which will match any element type with the
|
||||||
specified attribute regardless of the tag.
|
specified attribute regardless of the tag.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
@ -125,7 +125,7 @@ To change the URL used to retrieve the page, use the "URL Pattern" and
|
||||||
"URL Replace" fields. The pattern is a regular expression matching
|
"URL Replace" fields. The pattern is a regular expression matching
|
||||||
part of the URL to replace. In this case, you might use a pattern of
|
part of the URL to replace. In this case, you might use a pattern of
|
||||||
"/article" and a replace string of "/print/article". A common pattern
|
"/article" and a replace string of "/print/article". A common pattern
|
||||||
is simply "$", used to add the replace string to the end of the URL.
|
is simply a dollar sign ("$"), used to add the replace string to the end of the URL.
|
||||||
</p>
|
</p>
|
||||||
<h3>Background Processing</h3>
|
<h3>Background Processing</h3>
|
||||||
<p>
|
<p>
|
||||||
|
@ -142,12 +142,12 @@ Retriever can also optionally download images and store them in the
|
||||||
local Friendica instance. Just check the "Download Images" box. You
|
local Friendica instance. Just check the "Download Images" box. You
|
||||||
can also download images in every item from your network, whether it's
|
can also download images in every item from your network, whether it's
|
||||||
an RSS feed or not. Go to the "Settings" page and
|
an RSS feed or not. Go to the "Settings" page and
|
||||||
click <a href="{{$config}}">"Plugin settings"</a>. Then check the "All
|
click <a href="$config">"Plugin settings"</a>. Then check the "All
|
||||||
Photos" box in the "Retriever Settings" section and click "Submit".
|
Photos" box in the "Retriever Settings" section and click "Submit".
|
||||||
</p>
|
</p>
|
||||||
<h2>Configure Feeds:</h2>
|
<h2>Configure Feeds:</h2>
|
||||||
<div>
|
<div>
|
||||||
{{foreach $feeds as $feed}}
|
{{ for $feeds as $feed }}
|
||||||
{{include file="contact_template.tpl" contact=$feed}}
|
{{ inc contact_template.tpl with $contact=$feed }}{{ endinc }}
|
||||||
{{/foreach}}
|
{{ endfor }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue