mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-18 22:31:42 +02:00
[bridges] Change all bridges to use BridgeAbstract with getSimpleHTMLDOMCached
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
class WorldOfTanksBridge extends HttpCachingBridgeAbstract{
|
||||
class WorldOfTanksBridge extends BridgeAbstract {
|
||||
|
||||
const MAINTAINER = "mitsukarenai";
|
||||
const NAME = "World of Tanks";
|
||||
@@ -57,7 +57,7 @@ class WorldOfTanksBridge extends HttpCachingBridgeAbstract{
|
||||
$item['uri'] = self::URI.$infoLink->href;
|
||||
// now load that uri from cache
|
||||
$this->debugMessage("loading page ".$item['uri']);
|
||||
$articlePage = $this->get_cached($item['uri']);
|
||||
$articlePage = $this->getSimpleHTMLDOMCached($item['uri']);
|
||||
$content = $articlePage->find('.l-content', 0);
|
||||
HTMLSanitizer::defaultImageSrcTo($content, self::URI);
|
||||
$item['title'] = $content->find('h1', 0)->innertext;
|
||||
|
Reference in New Issue
Block a user