Article link is the magnet link

It is usefull for some BitTorrent clients if the main link of an article is pointing directly on a torrent file or magnet link. With this difference, you can use the feed to automatically download new files based on a particular PB pattern.
This commit is contained in:
GregThib 2015-07-23 16:09:19 +02:00
parent 6456d145a0
commit c184f9f307

View File

@ -63,8 +63,8 @@ class ThePirateBayBridge extends BridgeAbstract{
foreach($html->find('tr') as $element) {
$item = new \Item();
$item->uri = 'https://thepiratebay.vg/'.$element->find('a.detLink',0)->href;
$item->id = $item->uri;
$item->id = 'https://thepiratebay.vg'.$element->find('a.detLink',0)->href;
$item->uri = $element->find('a',3)->href;
$item->timestamp = parseDateTimestamp($element);
$item->title = $element->find('a.detLink',0)->plaintext;
$item->seeders = (int)$element->find('td',2)->plaintext;