From 0663c9507f2a62a47ca46944bbcea834e6c489ba Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 8 Aug 2016 22:43:28 +0200 Subject: [PATCH 01/15] [AtomFormat] Remove enclosures This feature was implemented for AtomFormat only and implemented by no bridge other than DemoBridge. --- bridges/DemoBridge.php | 3 +-- formats/AtomFormat.php | 10 ---------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/bridges/DemoBridge.php b/bridges/DemoBridge.php index b1d8515e..3f713754 100644 --- a/bridges/DemoBridge.php +++ b/bridges/DemoBridge.php @@ -7,7 +7,7 @@ class DemoBridge extends BridgeAbstract{ $this->name = "DemoBridge"; $this->uri = "http://github.com/sebsauvage/rss-bridge"; $this->description = "Bridge used for demos"; - $this->update = "2015-11-03"; + $this->update = "2016-08-08"; $this->parameters['testCheckbox'] = '[ @@ -59,7 +59,6 @@ class DemoBridge extends BridgeAbstract{ $item->content = "Awesome content !"; $item->id = "Lalala"; $item->uri = "http://test.test/test"; - $item->enclosures[] = "http://www.ardmediathek.de/ard/servlet/image/00/32/68/18/38/1135274624/16x9/960"; $this->items[] = $item; diff --git a/formats/AtomFormat.php b/formats/AtomFormat.php index 303e3866..18f27b4d 100644 --- a/formats/AtomFormat.php +++ b/formats/AtomFormat.php @@ -36,15 +36,6 @@ class AtomFormat extends FormatAbstract{ // We prevent content from closing the CDATA too early. $entryContent = is_null($data->content) ? '' : 'sanitizeHtml(str_replace(']]>','',$data->content)) . ']]>'; - // We generate a list of the enclosure links - $entryEnclosures = ""; - - foreach($data->enclosures as $enclosure) { - - $entryEnclosures .= ""; - - } - $entries .= << @@ -57,7 +48,6 @@ class AtomFormat extends FormatAbstract{ {$entryUri} {$entryTimestamp} {$entryContent} - {$entryEnclosures} EOD; From 1af6008d65f4ec3ee4c4671a63aa38b52395f141 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 8 Aug 2016 22:57:43 +0200 Subject: [PATCH 02/15] [CREATE_BRIDGE] Fix typo --- CREATE_BRIDGE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CREATE_BRIDGE.md b/CREATE_BRIDGE.md index efe42865..791a28fb 100644 --- a/CREATE_BRIDGE.md +++ b/CREATE_BRIDGE.md @@ -138,7 +138,7 @@ The following list provides an overview of the parameters used by the other form Parameter | ATOM | HTML | (M)RSS ----------|------|------|------- `uri`|X|X|X -`thumbnailUri`||X +`thumbnailUri`|||X `title`|X|X|X `name`|X|| `timestamp`|X|X|X From f3eefab475ec49446ab49c9bf3224558852e1f4e Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 8 Aug 2016 23:28:50 +0200 Subject: [PATCH 03/15] [MrssFormat] Remove media:title and media:content Both items only make sense in combination with media:content. This subsequently eradicates $item->thumbnailUri. --- CREATE_BRIDGE.md | 2 -- formats/MrssFormat.php | 3 --- 2 files changed, 5 deletions(-) diff --git a/CREATE_BRIDGE.md b/CREATE_BRIDGE.md index 791a28fb..a7a0f455 100644 --- a/CREATE_BRIDGE.md +++ b/CREATE_BRIDGE.md @@ -112,7 +112,6 @@ The `Item` class is used to store parameter that are collected in the [`collectD ```PHP $item->uri // URI to reach the subject ("http://...") -$item->thumbnailUri // URI for the thumbnail ("http://...") $item->title // Title of the item $item->name // Name of the item $item->timestamp // Timestamp of the item in numeric format (use strtotime) @@ -138,7 +137,6 @@ The following list provides an overview of the parameters used by the other form Parameter | ATOM | HTML | (M)RSS ----------|------|------|------- `uri`|X|X|X -`thumbnailUri`|||X `title`|X|X|X `name`|X|| `timestamp`|X|X|X diff --git a/formats/MrssFormat.php b/formats/MrssFormat.php index a5e6cd20..d80b267f 100644 --- a/formats/MrssFormat.php +++ b/formats/MrssFormat.php @@ -25,7 +25,6 @@ class MrssFormat extends FormatAbstract{ $itemTitle = strip_tags(is_null($data->title) ? '' : $data->title); $itemUri = is_null($data->uri) ? '' : $data->uri; $itemAuthor = is_null($data->author) ? '' : $data->author; - $itemThumbnailUri = is_null($data->thumbnailUri) ? '' : $data->thumbnailUri; $itemTimestamp = is_null($data->timestamp) ? '' : date(DATE_RFC2822, $data->timestamp); // We prevent content from closing the CDATA too early. $itemContent = is_null($data->content) ? '' : htmlspecialchars($this->sanitizeHtml(str_replace(']]>','',$data->content))); @@ -39,8 +38,6 @@ class MrssFormat extends FormatAbstract{ {$itemTimestamp} {$itemContent} {$itemAuthor} - {$itemTitle} - EOD; From 8c21769078386e98610718c64e48edbd633fd594 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 8 Aug 2016 23:41:52 +0200 Subject: [PATCH 04/15] [AtomFormat] Use $item->author for author name $item->name was inteded as the author name and $item->author as the author uri. Bridges use $item->name and $item->author interchangably for author name, so $item->name can be removed. $item->author is now used for the author name! --- CREATE_BRIDGE.md | 2 -- formats/AtomFormat.php | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CREATE_BRIDGE.md b/CREATE_BRIDGE.md index a7a0f455..fded1770 100644 --- a/CREATE_BRIDGE.md +++ b/CREATE_BRIDGE.md @@ -113,7 +113,6 @@ The `Item` class is used to store parameter that are collected in the [`collectD ```PHP $item->uri // URI to reach the subject ("http://...") $item->title // Title of the item -$item->name // Name of the item $item->timestamp // Timestamp of the item in numeric format (use strtotime) $item->author // Name of the author $item->content // Content in HTML format @@ -138,7 +137,6 @@ Parameter | ATOM | HTML | (M)RSS ----------|------|------|------- `uri`|X|X|X `title`|X|X|X -`name`|X|| `timestamp`|X|X|X `author`|X|X|X `content`|X|X|X diff --git a/formats/AtomFormat.php b/formats/AtomFormat.php index 18f27b4d..680c3ced 100644 --- a/formats/AtomFormat.php +++ b/formats/AtomFormat.php @@ -28,7 +28,6 @@ class AtomFormat extends FormatAbstract{ $entries = ''; foreach($this->getDatas() as $data){ - $entryName = is_null($data->name) ? $title : xml_encode($data->name); $entryAuthor = is_null($data->author) ? $uri : xml_encode($data->author); $entryTitle = is_null($data->title) ? '' : xml_encode($data->title); $entryUri = is_null($data->uri) ? '' : xml_encode($data->uri); @@ -40,8 +39,7 @@ class AtomFormat extends FormatAbstract{ - {$entryName} - {$entryAuthor} + {$entryAuthor} <![CDATA[{$entryTitle}]]> From 4806092b9f27011f054cb105f226d040dc9e9b51 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 9 Aug 2016 14:29:44 +0200 Subject: [PATCH 05/15] [AtomFormat] Fix default value for author --- formats/AtomFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/AtomFormat.php b/formats/AtomFormat.php index 680c3ced..fac3e550 100644 --- a/formats/AtomFormat.php +++ b/formats/AtomFormat.php @@ -28,7 +28,7 @@ class AtomFormat extends FormatAbstract{ $entries = ''; foreach($this->getDatas() as $data){ - $entryAuthor = is_null($data->author) ? $uri : xml_encode($data->author); + $entryAuthor = is_null($data->author) ? $title : xml_encode($data->author); $entryTitle = is_null($data->title) ? '' : xml_encode($data->title); $entryUri = is_null($data->uri) ? '' : xml_encode($data->uri); $entryTimestamp = is_null($data->timestamp) ? '' : xml_encode(date(DATE_ATOM, $data->timestamp)); From e329a4c1b6a6c2ae266d05bb3777f78365113a7f Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 9 Aug 2016 14:54:44 +0200 Subject: [PATCH 06/15] bridges: Change ->name to ->author --- bridges/ABCTabsBridge.php | 4 ++-- bridges/BandcampBridge.php | 4 ++-- bridges/BlaguesDeMerdeBridge.php | 4 ++-- bridges/CpasbienBridge.php | 4 ++-- bridges/DemoBridge.php | 4 ++-- bridges/ElsevierBridge.php | 4 ++-- bridges/FootitoBridge.php | 4 ++-- bridges/Freenews.php | 4 ++-- bridges/Gawker.php | 4 ++-- bridges/GithubIssueBridge.php | 4 ++-- bridges/GitlabCommitsBridge.php | 4 ++-- bridges/LWNprevBridge.php | 8 ++++---- bridges/Les400Culs.php | 4 ++-- bridges/LesJoiesDuCodeBridge.php | 4 ++-- bridges/SensCritiqueBridge.php | 4 ++-- bridges/Sexactu.php | 4 ++-- bridges/SoundcloudBridge.php | 4 ++-- bridges/StripeAPIChangeLogBridge.php | 4 ++-- bridges/TheCodingLoveBridge.php | 4 ++-- bridges/TheOatMealBridge.php | 6 +++--- bridges/WhydBridge.php | 4 ++-- bridges/WorldOfTanks.php | 3 +-- 22 files changed, 46 insertions(+), 47 deletions(-) diff --git a/bridges/ABCTabsBridge.php b/bridges/ABCTabsBridge.php index 9ab3e9c8..29b41e02 100644 --- a/bridges/ABCTabsBridge.php +++ b/bridges/ABCTabsBridge.php @@ -9,7 +9,7 @@ class ABCTabsBridge extends BridgeAbstract{ $this->name = "ABC Tabs Bridge"; $this->uri = "http://www.abc-tabs.com/"; $this->description = "Returns 22 newest tabs"; - $this->update = "2016-08-06"; + $this->update = "2016-08-09"; } @@ -21,7 +21,7 @@ class ABCTabsBridge extends BridgeAbstract{ foreach ($table->find('tr') as $tab) { $item = new \Item(); - $item->name = $tab->find('td', 1)->plaintext . ' - ' . $tab->find('td', 2)->plaintext; + $item->author = $tab->find('td', 1)->plaintext . ' - ' . $tab->find('td', 2)->plaintext; $item->title = $tab->find('td', 1)->plaintext . ' - ' . $tab->find('td', 2)->plaintext; $item->content = 'Le ' . $tab->find('td', 0)->plaintext . '
Par: ' . $tab->find('td', 5)->plaintext . '
Type: ' . $tab->find('td', 3)->plaintext; $item->id = 'http://www.abc-tabs.com' . $tab->find('td', 2)->find('a', 0)->getAttribute('href'); diff --git a/bridges/BandcampBridge.php b/bridges/BandcampBridge.php index ce0c65cb..80e3deea 100644 --- a/bridges/BandcampBridge.php +++ b/bridges/BandcampBridge.php @@ -9,7 +9,7 @@ class BandcampBridge extends BridgeAbstract{ $this->name = "Bandcamp Tag"; $this->uri = "http://bandcamp.com/"; $this->description = "New bandcamp release by tag"; - $this->update = "2014-05-25"; + $this->update = "2016-08-09"; $this->parameters[] = '[ @@ -38,7 +38,7 @@ class BandcampBridge extends BridgeAbstract{ $uri = rtrim($uri, "')"); $item = new \Item(); - $item->name = $release->find('div.itemsubtext',0)->plaintext . ' - ' . $release->find('div.itemtext',0)->plaintext; + $item->author = $release->find('div.itemsubtext',0)->plaintext . ' - ' . $release->find('div.itemtext',0)->plaintext; $item->title = $release->find('div.itemsubtext',0)->plaintext . ' - ' . $release->find('div.itemtext',0)->plaintext; $item->content = '
' . $release->find('div.itemsubtext',0)->plaintext . ' - ' . $release->find('div.itemtext',0)->plaintext; $item->id = $release->find('a',0)->getAttribute('href'); diff --git a/bridges/BlaguesDeMerdeBridge.php b/bridges/BlaguesDeMerdeBridge.php index 126ca820..d977caef 100644 --- a/bridges/BlaguesDeMerdeBridge.php +++ b/bridges/BlaguesDeMerdeBridge.php @@ -7,7 +7,7 @@ class BlaguesDeMerdeBridge extends BridgeAbstract{ $this->name = "Blagues De Merde"; $this->uri = "http://www.blaguesdemerde.fr/"; $this->description = "Blagues De Merde"; - $this->update = "2016-08-06"; + $this->update = "2016-08-09"; } @@ -26,7 +26,7 @@ class BlaguesDeMerdeBridge extends BridgeAbstract{ $date = $element->find("li.bdm_date",0)->innertext; $time = mktime(0, 0, 0, substr($date, 3, 2), substr($date, 0, 2), substr($date, 6, 4)); $item->timestamp = $time; - $item->name = $element->find("li.bdm_pseudo",0)->innertext;; + $item->author = $element->find("li.bdm_pseudo",0)->innertext;; $this->items[] = $item; } } diff --git a/bridges/CpasbienBridge.php b/bridges/CpasbienBridge.php index 93649e6a..63cec4b9 100644 --- a/bridges/CpasbienBridge.php +++ b/bridges/CpasbienBridge.php @@ -24,7 +24,7 @@ class CpasbienBridge extends HttpCachingBridgeAbstract{ $this->name = "Cpasbien Bridge"; $this->uri = "http://www.cpasbien.io"; $this->description = "Returns latest torrents from a request query"; - $this->update = "2016-08-06"; + $this->update = "2016-08-09"; $this->parameters[] = '[ @@ -57,7 +57,7 @@ class CpasbienBridge extends HttpCachingBridgeAbstract{ $htmlepisode=content_get_html($this->get_cached($episode->find('a', 0)->getAttribute('href'))); $item = new \Item(); - $item->name = $episode->find('a', 0)->text(); + $item->author = $episode->find('a', 0)->text(); $item->title = $episode->find('a', 0)->text(); $item->timestamp = $this->get_cached_time($episode->find('a', 0)->getAttribute('href')); $textefiche=$htmlepisode->find('#textefiche', 0)->find('p',1); diff --git a/bridges/DemoBridge.php b/bridges/DemoBridge.php index 3f713754..2e576c62 100644 --- a/bridges/DemoBridge.php +++ b/bridges/DemoBridge.php @@ -7,7 +7,7 @@ class DemoBridge extends BridgeAbstract{ $this->name = "DemoBridge"; $this->uri = "http://github.com/sebsauvage/rss-bridge"; $this->description = "Bridge used for demos"; - $this->update = "2016-08-08"; + $this->update = "2016-08-09"; $this->parameters['testCheckbox'] = '[ @@ -54,7 +54,7 @@ class DemoBridge extends BridgeAbstract{ public function collectData(array $param){ $item = new \Item(); - $item->name = "TestElement"; + $item->author = "Me!"; $item->title = "Test"; $item->content = "Awesome content !"; $item->id = "Lalala"; diff --git a/bridges/ElsevierBridge.php b/bridges/ElsevierBridge.php index bd35925f..cca3d853 100644 --- a/bridges/ElsevierBridge.php +++ b/bridges/ElsevierBridge.php @@ -6,7 +6,7 @@ class ElsevierBridge extends BridgeAbstract{ $this->name = 'Elsevier journals recent articles'; $this->uri = 'http://www.journals.elsevier.com'; $this->description = 'Returns the recent articles published in Elsevier journals'; - $this->update = '2016-08-06'; + $this->update = '2016-08-09'; $this->parameters[] = '[ @@ -69,7 +69,7 @@ class ElsevierBridge extends BridgeAbstract{ $item = new \Item(); $item->uri = $article->find('.pod-listing-header>a',0)->getAttribute('href').'?np=y'; $item->title = $article->find('.pod-listing-header>a',0)->plaintext; - $item->name = $this->ExtractArticleName($article); + $item->author = $this->ExtractArticleName($article); $item->timestamp = $this->ExtractArticleTimestamp($article); $item->content = $this->ExtractArticleContent($article); $this->items[] = $item; diff --git a/bridges/FootitoBridge.php b/bridges/FootitoBridge.php index a66dd825..ffcba2f7 100644 --- a/bridges/FootitoBridge.php +++ b/bridges/FootitoBridge.php @@ -7,7 +7,7 @@ class FootitoBridge extends BridgeAbstract{ $this->name = "Footito"; $this->uri = "http://www.footito.fr/"; $this->description = "Footito"; - $this->update = "2016-08-06"; + $this->update = "2016-08-09"; } @@ -36,7 +36,7 @@ class FootitoBridge extends BridgeAbstract{ $info = $element->find('div.infos', 0); $item->timestamp = strtotime($info->find('time', 0)->datetime); - $item->name = $info->find('a.auteur', 0)->plaintext; + $item->author = $info->find('a.auteur', 0)->plaintext; $this->items[] = $item; } diff --git a/bridges/Freenews.php b/bridges/Freenews.php index b2e27c9c..9cc0bafd 100644 --- a/bridges/Freenews.php +++ b/bridges/Freenews.php @@ -8,7 +8,7 @@ class Freenews extends RssExpander { $this->name = "Freenews"; $this->uri = "http://freenews.fr"; $this->description = "Un site d'actualité pour les freenautes (mais ne parlant pas que de la freebox). Ne rentrez pas d'id si vous voulez accéder aux actualités générales."; - $this->update = "26/03/2014"; + $this->update = "2016-08-09"; $this->parameters[] = '[ @@ -38,7 +38,7 @@ class Freenews extends RssExpander { $content = $articlePage->find('.post-container', 0); $item->content = $content->innertext; - $item->name = $articlePage->find('a[rel=author]', 0)->innertext; + $item->author = $articlePage->find('a[rel=author]', 0)->innertext; // format should parse 2014-03-25T16:21:20Z. But, according to http://stackoverflow.com/a/10478469, it is not that simple $item->timestamp = $this->RSS_2_0_time_to_timestamp($newsItem); return $item; diff --git a/bridges/Gawker.php b/bridges/Gawker.php index 624e66db..71bba277 100644 --- a/bridges/Gawker.php +++ b/bridges/Gawker.php @@ -10,7 +10,7 @@ class Gawker extends RssExpander{ $this->name = "Gawker media"; $this->uri = "http://feeds.gawker.com/"; $this->description = "A bridge allowing access to any of the numerous Gawker media blogs (Lifehacker, deadspin, Kotaku, Jezebel, and so on. Notice you have to give its id to find the RSS stream in gawker maze"; - $this->update = "27/03/2014"; + $this->update = "2016-08-09"; $this->parameters[] = '[ @@ -53,7 +53,7 @@ class Gawker extends RssExpander{ $vcard = $articlePage->find('.vcard', 0); if(is_object($vcard)) { $authorLink = $vcard->find('a', 0); - $item->name = $authorLink->innertext; + $item->author = $authorLink->innertext; // TODO use author link href to fill the feed info } // $this->message("item quite loaded : ".var_export($item, true)); diff --git a/bridges/GithubIssueBridge.php b/bridges/GithubIssueBridge.php index 4c56cf0a..84b1f56c 100644 --- a/bridges/GithubIssueBridge.php +++ b/bridges/GithubIssueBridge.php @@ -12,7 +12,7 @@ class GithubIssueBridge extends BridgeAbstract{ $this->name = 'Github Issue'; $this->uri = ''; $this->description = 'Returns the comments of a github project issue'; - $this->update = '2016-06-25'; + $this->update = '2016-08-09'; $this->parameters[]= '[ @@ -40,7 +40,7 @@ class GithubIssueBridge extends BridgeAbstract{ foreach($html->find('.js-comment-container') as $comment){ $item = new \Item(); - $item->name=$comment->find('img',0)->getAttribute('alt'); + $item->author=$comment->find('img',0)->getAttribute('alt'); $comment=$comment->firstChild()->nextSibling(); diff --git a/bridges/GitlabCommitsBridge.php b/bridges/GitlabCommitsBridge.php index 030c74bc..ba1b0020 100644 --- a/bridges/GitlabCommitsBridge.php +++ b/bridges/GitlabCommitsBridge.php @@ -12,7 +12,7 @@ class GitlabCommitsBridge extends BridgeAbstract{ $this->name = 'Gitlab Commits'; $this->uri = ''; $this->description = 'Returns the commits of a project hosted on a gitlab instance'; - $this->update = '2016-08-06'; + $this->update = '2016-08-09'; $this->parameters[] = '[ @@ -64,7 +64,7 @@ class GitlabCommitsBridge extends BridgeAbstract{ $item->title=$a->plaintext; } if(in_array('commit-author-link',$classes)){ - $item->name=trim($a->plaintext); + $item->author=trim($a->plaintext); } } diff --git a/bridges/LWNprevBridge.php b/bridges/LWNprevBridge.php index 9772799f..15bc1f2e 100644 --- a/bridges/LWNprevBridge.php +++ b/bridges/LWNprevBridge.php @@ -12,7 +12,7 @@ class LWNprevBridge extends BridgeAbstract{ $this->name = 'LWN Free Weekly Edition'; $this->uri = 'https://lwn.net/free/bigpage'; $this->description = 'LWN Free Weekly Edition available one week late'; - $this->update = '2016-19-01'; + $this->update = '2016-08-09'; } @@ -88,14 +88,14 @@ class LWNprevBridge extends BridgeAbstract{ switch($h2NextSibling->getAttribute('class')){ case 'FeatureByline': - $item->name=$h2NextSibling->getElementsByTagName('b')->item(0)->textContent; + $item->author=$h2NextSibling->getElementsByTagName('b')->item(0)->textContent; break; case 'GAByline': $text=$h2NextSibling->textContent; - $item->name=substr($text,strpos($text,'by ')); + $item->author=substr($text,strpos($text,'by ')); break; default: - $item->name='LWN'; + $item->author='LWN'; break; }; diff --git a/bridges/Les400Culs.php b/bridges/Les400Culs.php index c8b89c8e..65bd5a61 100644 --- a/bridges/Les400Culs.php +++ b/bridges/Les400Culs.php @@ -10,7 +10,7 @@ class Les400Culs extends RssExpander{ $this->name = "Les 400 Culs"; $this->uri = "http://sexes.blogs.liberation.fr"; $this->description = "La planete sexe vue par Agnes Girard via rss-bridge"; - $this->update = "20/02/2014"; + $this->update = "2016-08-09"; } @@ -34,7 +34,7 @@ class Les400Culs extends RssExpander{ // $content = $articlePage->find('.post-container', 0); $item->content = (string) $newsItem->description; - $item->name = (string) $newsItem->author; + $item->author = (string) $newsItem->author; $item->timestamp = $this->RSS_2_0_time_to_timestamp($newsItem); return $item; } diff --git a/bridges/LesJoiesDuCodeBridge.php b/bridges/LesJoiesDuCodeBridge.php index ab759dd9..4ff8e2c1 100644 --- a/bridges/LesJoiesDuCodeBridge.php +++ b/bridges/LesJoiesDuCodeBridge.php @@ -7,7 +7,7 @@ class LesJoiesDuCodeBridge extends BridgeAbstract{ $this->name = "Les Joies Du Code"; $this->uri = "http://lesjoiesducode.fr/"; $this->description = "LesJoiesDuCode"; - $this->update = "2016-08-06"; + $this->update = "2016-08-09"; } @@ -36,7 +36,7 @@ class LesJoiesDuCodeBridge extends BridgeAbstract{ if($pos > 0) { $auteur = trim(str_replace("*/", "", substr($auteur->innertext, ($pos + 2)))); - $item->name = $auteur; + $item->author = $auteur; } diff --git a/bridges/SensCritiqueBridge.php b/bridges/SensCritiqueBridge.php index f471602c..fc209321 100644 --- a/bridges/SensCritiqueBridge.php +++ b/bridges/SensCritiqueBridge.php @@ -8,7 +8,7 @@ class SensCritiqueBridge extends BridgeAbstract { $this->name = "Sens Critique"; $this->uri = "http://www.senscritique.com"; $this->description = "Sens Critique news"; - $this->update = "2016-08-06"; + $this->update = "2016-08-09"; $this->parameters[] = '[ @@ -118,7 +118,7 @@ class SensCritiqueBridge extends BridgeAbstract { foreach ($list->find('li') as $movie) { $item = new \Item(); - $item->name = htmlspecialchars_decode($movie->find('.elco-title a', 0)->plaintext, ENT_QUOTES) . ' ' . $movie->find('.elco-date', 0)->plaintext; + $item->author = htmlspecialchars_decode($movie->find('.elco-title a', 0)->plaintext, ENT_QUOTES) . ' ' . $movie->find('.elco-date', 0)->plaintext; $item->title = $movie->find('.elco-title a', 0)->plaintext . ' ' . $movie->find('.elco-date', 0)->plaintext; $item->content = '' . $movie->find('.elco-original-title', 0)->plaintext . '

' . $movie->find('.elco-baseline', 0)->plaintext . '
' . diff --git a/bridges/Sexactu.php b/bridges/Sexactu.php index cfa97a70..c5480e4b 100644 --- a/bridges/Sexactu.php +++ b/bridges/Sexactu.php @@ -8,7 +8,7 @@ class Sexactu extends BridgeAbstract{ $this->name = "Sexactu"; $this->uri = "http://www.gqmagazine.fr"; $this->description = "Sexactu via rss-bridge"; - $this->update = "2016-08-06"; + $this->update = "2016-08-09"; } @@ -42,7 +42,7 @@ $replace = array('January', 'February', 'March', 'April', 'May', 'June', 'July', $date = strtotime($dateText); $item->timestamp = $date; - $item->name = "Maïa Mazaurette"; + $item->author = "Maïa Mazaurette"; $elementText = $element->find('.text-container', 0); // don't forget to replace images server url with gq one foreach($elementText->find('img') as $image) { diff --git a/bridges/SoundcloudBridge.php b/bridges/SoundcloudBridge.php index ebc3f8ea..40836d51 100644 --- a/bridges/SoundcloudBridge.php +++ b/bridges/SoundcloudBridge.php @@ -10,7 +10,7 @@ class SoundCloudBridge extends BridgeAbstract{ $this->name = "Soundcloud Bridge"; $this->uri = "http://www.soundcloud.com/"; $this->description = "Returns 10 newest music from user profile"; - $this->update = "2016-08-06"; + $this->update = "2016-08-09"; $this->parameters[] = '[ @@ -40,7 +40,7 @@ class SoundCloudBridge extends BridgeAbstract{ for ($i=0; $i < 10; $i++) { $item = new \Item(); - $item->name = $tracks[$i]->user->username .' - '. $tracks[$i]->title; + $item->author = $tracks[$i]->user->username .' - '. $tracks[$i]->title; $item->title = $tracks[$i]->user->username .' - '. $tracks[$i]->title; $item->content = '