1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-29 11:00:10 +02:00

bridges: Cleanup occurrences of $item->thumbnailUri

This is a subsequent change to f3eefab
This commit is contained in:
logmanoriginal
2016-08-09 15:50:25 +02:00
parent e329a4c1b6
commit 42b6c82753
53 changed files with 104 additions and 183 deletions

View File

@@ -7,7 +7,7 @@ class T411Bridge extends BridgeAbstract {
$this->name = 'T411';
$this->uri = $this->getURI();
$this->description = 'Returns the 10 newest torrents with specified search terms <br /> Use url part after "?" mark when using their search engine.';
$this->update = '2016-08-06';
$this->update = '2016-08-09';
$this->parameters[] =
'[
@@ -63,15 +63,6 @@ class T411Bridge extends BridgeAbstract {
$item_desc = $item_html->find('div.description', 0);
$item_author = $item_html->find('a.profile', 0)->innertext;
//Retrieve image for thumbnail or generic logo fallback
$item_image = $this->getURI().'themes/blue/images/logo.png';
foreach ($item_desc->find('img') as $img) {
if (strpos($img->src, 'prez') === false && strpos($img->src, '/ad/') === false) {
$item_image = $img->src;
break;
}
}
//Cleanup advertisments
$divs = explode('<div class="align-center">', $item_desc->innertext);
$item_desc = '';
@@ -86,7 +77,6 @@ class T411Bridge extends BridgeAbstract {
$item->title = $item_title;
$item->author = $item_author;
$item->timestamp = $item_date;
$item->thumbnailUri = $item_image;
$item->content = $item_desc;
$this->items[] = $item;
$limit++;