mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-24 23:37:18 +00:00
[HentaiHavenBridge] domain and content retrieval update (#2402)
This commit is contained in:
parent
799c93a3c6
commit
590fdd9f9b
@ -3,7 +3,7 @@ class HentaiHavenBridge extends BridgeAbstract {
|
|||||||
|
|
||||||
const MAINTAINER = 'albirew';
|
const MAINTAINER = 'albirew';
|
||||||
const NAME = 'Hentai Haven';
|
const NAME = 'Hentai Haven';
|
||||||
const URI = 'https://hentaihaven.org/';
|
const URI = 'https://hentaihaven.com/';
|
||||||
const CACHE_TIMEOUT = 21600; // 6h
|
const CACHE_TIMEOUT = 21600; // 6h
|
||||||
const DESCRIPTION = 'Returns releases from Hentai Haven';
|
const DESCRIPTION = 'Returns releases from Hentai Haven';
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ class HentaiHavenBridge extends BridgeAbstract {
|
|||||||
foreach($html->find('div.zoe-grid') as $element) {
|
foreach($html->find('div.zoe-grid') as $element) {
|
||||||
$item = array();
|
$item = array();
|
||||||
$item['uri'] = $element->find('div.brick-content h3 a', 0)->href;
|
$item['uri'] = $element->find('div.brick-content h3 a', 0)->href;
|
||||||
$thumbnailUri = $element->find('a.thumbnail-image img', 0)->getAttribute('data-src');
|
$thumbnailUri = $element->find('a.thumbnail-image img', 0)->getAttribute('src');
|
||||||
$item['title'] = mb_convert_encoding(
|
$item['title'] = mb_convert_encoding(
|
||||||
trim($element->find('div.brick-content h3 a', 0)->innertext),
|
trim($element->find('div.brick-content h3 a', 0)->innertext),
|
||||||
'UTF-8',
|
'UTF-8',
|
||||||
|
Loading…
Reference in New Issue
Block a user