forked from blallo/rss-bridge
Remove empty entries
This commit is contained in:
parent
9cd174ceab
commit
4b04a77b00
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
* @homepage http://www.paruvendu.fr/immobilier/
|
||||
* @description Returns the N most recent documents.
|
||||
* @maintainer polo2ro
|
||||
* @use1(minarea="Min area",maxprice="Max price",pa="Country code",lo="department number")
|
||||
* @use1(minarea="Min area",maxprice="Max price",pa="Country code",lo="department numbers, comma-separated")
|
||||
*/
|
||||
class ParuVenduImmoBridge extends BridgeAbstract
|
||||
{
|
||||
|
@ -44,6 +44,10 @@ class ParuVenduImmoBridge extends BridgeAbstract
|
|||
|
||||
foreach($html->find('div.annonce a') as $element) {
|
||||
|
||||
if (!$element->title) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$img ='';
|
||||
foreach($element->find('span.img img') as $img) {
|
||||
if ($img->original) {
|
||||
|
|
Loading…
Reference in a new issue