Fix post limit for FS, GuruMed, OpenTheory

This commit is contained in:
Mitsukarenai 2014-05-30 14:07:34 +02:00
parent 913a2ffc2d
commit e816b2aa80
3 changed files with 8 additions and 8 deletions

View file

@ -4,7 +4,7 @@
* Returns the 5 newest posts from http://www.futura-sciences.com (full text) * Returns the 5 newest posts from http://www.futura-sciences.com (full text)
* *
* @name Futurasciences * @name Futurasciences
* @description Returns the 20 newest posts from FS (full text) * @description Returns the 5 newest posts from FS (full text)
*@maintainer qwertygc *@maintainer qwertygc
*/ */
class FSBridge extends BridgeAbstract{ class FSBridge extends BridgeAbstract{
@ -30,7 +30,7 @@ class FSBridge extends BridgeAbstract{
$limit = 0; $limit = 0;
foreach($html->find('item') as $element) { foreach($html->find('item') as $element) {
if($limit < 20) { if($limit < 5) {
$item = new \Item(); $item = new \Item();
$item->title = FS_StripCDATA($element->find('title', 0)->innertext); $item->title = FS_StripCDATA($element->find('title', 0)->innertext);
$item->uri = FS_StripCDATA($element->find('guid', 0)->plaintext); $item->uri = FS_StripCDATA($element->find('guid', 0)->plaintext);

View file

@ -1,10 +1,10 @@
<?php <?php
/** /**
* RssBridgeGuruMed * RssBridgeGuruMed
* Returns the 10 newest posts from http://www.gurumed.org (full text) * Returns the 5 newest posts from http://www.gurumed.org (full text)
* *
* @name GuruMed * @name GuruMed
* @description Returns the 20 newest posts from Gurumed (full text) * @description Returns the 5 newest posts from Gurumed (full text)
*@maintainer qwertygc *@maintainer qwertygc
*/ */
class GuruMedBridge extends BridgeAbstract{ class GuruMedBridge extends BridgeAbstract{
@ -29,7 +29,7 @@ class GuruMedBridge extends BridgeAbstract{
$limit = 0; $limit = 0;
foreach($html->find('item') as $element) { foreach($html->find('item') as $element) {
if($limit < 10) { if($limit < 5) {
$item = new \Item(); $item = new \Item();
$item->title = GurumedStripCDATA($element->find('title', 0)->innertext); $item->title = GurumedStripCDATA($element->find('title', 0)->innertext);
$item->uri = GurumedStripCDATA($element->find('guid', 0)->plaintext); $item->uri = GurumedStripCDATA($element->find('guid', 0)->plaintext);

View file

@ -1,10 +1,10 @@
<?php <?php
/** /**
* RssBridgeOpenTheory * RssBridgeOpenTheory
* Returns the 10 newest posts from http://open1theory.com (full text) * Returns the 5 newest posts from http://open1theory.com (full text)
* *
* @name Opentheory * @name Opentheory
* @description Returns the 20 newest posts from OpenTheory (full text) * @description Returns the 5 newest posts from OpenTheory (full text)
*@maintainer qwertygc *@maintainer qwertygc
*/ */
class OpenTheoryBridge extends BridgeAbstract{ class OpenTheoryBridge extends BridgeAbstract{
@ -30,7 +30,7 @@ class OpenTheoryBridge extends BridgeAbstract{
$limit = 0; $limit = 0;
foreach($html->find('item') as $element) { foreach($html->find('item') as $element) {
if($limit < 10) { if($limit < 5) {
$item = new \Item(); $item = new \Item();
$item->title = StripCDATA($element->find('title', 0)->innertext); $item->title = StripCDATA($element->find('title', 0)->innertext);
$item->uri = StripCDATA($element->find('guid', 0)->plaintext); $item->uri = StripCDATA($element->find('guid', 0)->plaintext);