From b15cd5753c7e4473212068c5830b1e33baed6b8d Mon Sep 17 00:00:00 2001 From: dawidsowa Date: Fri, 2 Oct 2020 01:57:49 +0200 Subject: [PATCH] [Rule34pahealBridge] Use full size image --- bridges/Rule34pahealBridge.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bridges/Rule34pahealBridge.php b/bridges/Rule34pahealBridge.php index 0e13ed033d5..c12dfe00fe4 100644 --- a/bridges/Rule34pahealBridge.php +++ b/bridges/Rule34pahealBridge.php @@ -8,12 +8,14 @@ class Rule34pahealBridge extends Shimmie2Bridge { const URI = 'https://rule34.paheal.net/'; const DESCRIPTION = 'Returns images from given page'; + const PATHTODATA = '.shm-thumb'; + protected function getItemFromElement($element){ $item = array(); - $item['uri'] = $this->getURI() . $element->href; + $item['uri'] = rtrim($this->getURI(), '/') . $element->find('.shm-thumb-link', 0)->href; $item['id'] = (int)preg_replace('/[^0-9]/', '', $element->getAttribute(static::IDATTRIBUTE)); $item['timestamp'] = time(); - $thumbnailUri = $element->find('img', 0)->src; + $thumbnailUri = $element->find('a', 1)->href; $item['tags'] = $element->getAttribute('data-tags'); $item['title'] = $this->getName() . ' | ' . $item['id']; $item['content'] = '