1
0
Fork 0
forked from blallo/rss-bridge

TPB: (oops wrong td)

This commit is contained in:
Mitsukarenai 2014-12-04 19:13:17 +01:00
parent f566981470
commit 529c1817f5

View file

@ -29,8 +29,8 @@ class ThePirateBayBridge extends BridgeAbstract{
$item->id = $item->uri; $item->id = $item->uri;
$item->timestamp = time(); $item->timestamp = time();
$item->title = $element->find('a.detLink',0)->plaintext; $item->title = $element->find('a.detLink',0)->plaintext;
$item->seeders = (int)$element->find('td',3)->plaintext; $item->seeders = (int)$element->find('td',2)->plaintext;
$item->leechers = (int)$element->find('td',4)->plaintext; $item->leechers = (int)$element->find('td',3)->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>'; $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)) if(!empty($item->title))
$this->items[] = $item; $this->items[] = $item;