forked from blallo/rss-bridge
Merge pull request #114 from clempar/lesjoiesducode
[Lesjoiesducode] fix jpg→gif
This commit is contained in:
commit
ea5f91f394
2 changed files with 19 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
||||||
* @name Les Joies Du Code
|
* @name Les Joies Du Code
|
||||||
* @homepage http://lesjoiesducode.fr/
|
* @homepage http://lesjoiesducode.fr/
|
||||||
* @description LesJoiesDuCode
|
* @description LesJoiesDuCode
|
||||||
* @update 30/01/2014
|
* @update 04/02/2015
|
||||||
* initial maintainer: superbaillot.net
|
* initial maintainer: superbaillot.net
|
||||||
*/
|
*/
|
||||||
class LesJoiesDuCodeBridge extends BridgeAbstract{
|
class LesJoiesDuCodeBridge extends BridgeAbstract{
|
||||||
|
@ -20,9 +20,16 @@ class LesJoiesDuCodeBridge extends BridgeAbstract{
|
||||||
$url = $temp->href;
|
$url = $temp->href;
|
||||||
|
|
||||||
$temp = $element->find('div.bodytype', 0);
|
$temp = $element->find('div.bodytype', 0);
|
||||||
|
|
||||||
|
// retrieve .gif instead of static .jpg
|
||||||
|
$images = $temp->find('p.e img');
|
||||||
|
foreach($images as $image){
|
||||||
|
$img_src = str_replace(".jpg",".gif",$image->src);
|
||||||
|
$image->src = $img_src;
|
||||||
|
}
|
||||||
$content = $temp->innertext;
|
$content = $temp->innertext;
|
||||||
|
|
||||||
$auteur = $temp->find('.c1 em', 0);
|
$auteur = $temp->find('i', 0);
|
||||||
$pos = strpos($auteur->innertext, "by");
|
$pos = strpos($auteur->innertext, "by");
|
||||||
|
|
||||||
if($pos > 0)
|
if($pos > 0)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* @name The Coding Love
|
* @name The Coding Love
|
||||||
* @homepage http://thecodinglove.com/
|
* @homepage http://thecodinglove.com/
|
||||||
* @description The Coding Love
|
* @description The Coding Love
|
||||||
* @update 30/01/2014
|
* @update 04/02/2015
|
||||||
* initial maintainer: superbaillot.net
|
* initial maintainer: superbaillot.net
|
||||||
*/
|
*/
|
||||||
class TheCodingLoveBridge extends BridgeAbstract{
|
class TheCodingLoveBridge extends BridgeAbstract{
|
||||||
|
@ -20,9 +20,16 @@ class TheCodingLoveBridge extends BridgeAbstract{
|
||||||
$url = $temp->href;
|
$url = $temp->href;
|
||||||
|
|
||||||
$temp = $element->find('div.bodytype', 0);
|
$temp = $element->find('div.bodytype', 0);
|
||||||
$content = $temp->innertext;
|
|
||||||
|
|
||||||
$auteur = $temp->find('.c1 em', 0);
|
// retrieve .gif instead of static .jpg
|
||||||
|
$images = $temp->find('p.e img');
|
||||||
|
foreach($images as $image){
|
||||||
|
$img_src = str_replace(".jpg",".gif",$image->src);
|
||||||
|
$image->src = $img_src;
|
||||||
|
}
|
||||||
|
$content = $temp->innertext;
|
||||||
|
|
||||||
|
$auteur = $temp->find('i', 0);
|
||||||
$pos = strpos($auteur->innertext, "by");
|
$pos = strpos($auteur->innertext, "by");
|
||||||
|
|
||||||
if($pos > 0)
|
if($pos > 0)
|
||||||
|
|
Loading…
Reference in a new issue