forked from blallo/rss-bridge
[FDroid] minor fixes for Travis CI
This commit is contained in:
parent
3c9860de43
commit
208fff801d
1 changed files with 6 additions and 3 deletions
|
@ -4,7 +4,7 @@ class FDroidBridge extends BridgeAbstract {
|
|||
const MAINTAINER = 'Mitsukarenai';
|
||||
const NAME = 'F-Droid Bridge';
|
||||
const URI = 'https://f-droid.org/';
|
||||
const CACHE_TIMEOUT = 60*60*2; // 2 hours
|
||||
const CACHE_TIMEOUT = 60 * 60 * 2; // 2 hours
|
||||
const DESCRIPTION = 'Returns latest added/updated apps on the open-source Android apps repository F-Droid';
|
||||
|
||||
const PARAMETERS = array( array(
|
||||
|
@ -25,7 +25,7 @@ class FDroidBridge extends BridgeAbstract {
|
|||
or returnServerError('Could not request F-Droid.');
|
||||
|
||||
// targetting the corresponding widget based on user selection
|
||||
// "updated" is the 4th widget on the page, "added" is the 5th ← this is pretty sensitive to them adding/shuffling around website widgets
|
||||
// "updated" is the 4th widget on the page, "added" is the 5th
|
||||
|
||||
switch($this->getInput('u')) {
|
||||
case 'updated':
|
||||
|
@ -44,7 +44,10 @@ class FDroidBridge extends BridgeAbstract {
|
|||
$item['title'] = $element->find('h4', 0)->plaintext;
|
||||
$item['icon'] = $element->find('img', 0)->src;
|
||||
$item['summary'] = $element->find('span.package-summary', 0)->plaintext;
|
||||
$item['content'] = '<a href="'.$item['uri'].'"><img alt="" style="max-height:128px" src="'.$item['icon'].'"></a><br>'.$item['summary'];
|
||||
$item['content'] = '
|
||||
<a href="'.$item['uri'].'">
|
||||
<img alt="" style="max-height:128px" src="'.$item['icon'].'">
|
||||
</a><br>'.$item['summary'];
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue