forked from blallo/rss-bridge
TPB: add seeders-leechers count
This commit is contained in:
parent
950b3297e0
commit
f566981470
1 changed files with 3 additions and 1 deletions
|
@ -29,7 +29,9 @@ class ThePirateBayBridge extends BridgeAbstract{
|
|||
$item->id = $item->uri;
|
||||
$item->timestamp = time();
|
||||
$item->title = $element->find('a.detLink',0)->plaintext;
|
||||
$item->content = $element->find('font',0)->plaintext.'<br><a href="'.$element->find('a',3)->href.'">download</a>';
|
||||
$item->seeders = (int)$element->find('td',3)->plaintext;
|
||||
$item->leechers = (int)$element->find('td',4)->plaintext;
|
||||
$item->content = $element->find('font',0)->plaintext.'<br>seeders: '.$item->seeders.' | leechers: '.$item->leechers.'<br><a href="'.$element->find('a',3)->href.'">download</a>';
|
||||
if(!empty($item->title))
|
||||
$this->items[] = $item;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue