Merge branch 'fixIndividualBridges' of https://framagit.org/peetah/rss-bridge

This commit is contained in:
logmanoriginal 2016-09-17 20:17:58 +02:00
commit c5e7a18c5e
3 changed files with 5 additions and 4 deletions

View file

@ -12,7 +12,7 @@ class FierPandaBridge extends BridgeAbstract {
foreach($html->find('div.container-content article') as $element) {
$item = array();
$item['uri'] = $this->getURI().$element->find('a', 0)->href;
$item['title'] = trim($element->find('h2 a', 0)->innertext);
$item['title'] = trim($element->find('h1 a', 0)->innertext);
// Remove the link at the end of the article
$element->find('p a', 0)->outertext = '';
$item['content'] = $element->find('p', 0)->innertext;

View file

@ -1,9 +1,10 @@
<?php
class Sexactu extends BridgeAbstract{
class SexactuBridge extends BridgeAbstract{
const MAINTAINER = "Riduidel";
const NAME = "Sexactu";
const URI = "http://www.gqmagazine.fr";
const URI = "https://www.gqmagazine.fr";
const HTTPS_STATUS = HTTPS_STATUS_VALID;
const DESCRIPTION = "Sexactu via rss-bridge";
public function collectData(){

View file

@ -18,7 +18,7 @@ class ZoneTelechargementBridge extends BridgeAbstract {
return $string;
}
$url = $this->getURI().$this->getInput('category').'rss.xml';
$url = $this->getURI().$this->getInput('category').'/rss.xml';
$html = $this->getSimpleHTMLDOM($url) or $this->returnServerError('Could not request Zone Telechargement: '.$url);
foreach($html->find('item') as $element) {